Re: Standard way to change IP?
On Sat, Jan 08, 2000 at 09:17:05PM +0100, Robert Waldner wrote:
> >I find that sometimes I cannot use that interface after the network
> >is changed.... I get something like "network unreachable" when
> >I try to ping some hosts on that network. The NIC is fine after
> >a reboot. Most of the time I was using slink with kernel 2.2.13.
> >Are there any other things that I need to do? Or was it driver
> >dependent?
>
> sounds like a missing route, route -n will show you the actual routing table, which should be something like
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 193.154.142.0 0.0.0.0 255.255.255.0 U 0 0 116 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 4 lo
> 0.0.0.0 193.154.142.1 0.0.0.0 UG 1 0 46 eth0
>
> the kernel needs to know which ip-address of its default-gateway and over which interface that can be reached.
>
> /etc/init.d/network should add the appropriate routes when invoked via /etc/rcS.d/S40network.
>
> if that doesn´t help, do a ping -v to see where the unreachables come from, could be your host or some router on the way...
>
But the routes are there. At least the routes for the local
network are there. (2.2 kernels add them automatically, don't
they?) I even tried to manually bring down all ethX, remove all
routes and start them up again. Still doesn't work until I reboot
in frustration. Can't even ping other hosts in the same network.
Perhaps I overlooked something....
To Lindsay: I tried manually using ifconfig already :(
Reply to: