why when set static ip cannot ping?Forum: Networking Topic: why when set static ip cannot ping? started by: yss Posted by yss on April 20 2005,17:56
Why when static ip is set to the machine using ifconfig, cannot ping the other machine? The network card that i am using are build in and confirm connected and able to ping before using DSL. Could anyone out there provide any guide why my machine cannot ping and solution?
Posted by Grim on April 21 2005,11:50
That's not really enough information for someone to help you, but let me try anyways.
ifconfig -v eth0 192.168.1.100 route add default gw 192.168.1.1 Did you set your machines ip to an acceptable range that will match the rest of your network? Does your netmask match the networks? Did you specify the correct gateway? Can you ping google.com? How about 216.239.39.99? What about your own ip (not the loopback, the other one)?
I need a little bit more information, but I would guess one of three things happened... 1.) You've incorrectly configured your ethernet card 2.) The driver your ethernet card requires isn't built into the kernel that comes with DSL 3.) your resolv.conf needs tweaking I'd try dmesg first to see if the kernel barked at your ethernet card, then I'd make sure that all of the settings you've specified in ifconfig is correct and as a last ditch effort append
to /etc/resolv.conf Hope this helps. |