Re: Standard way to change IP?
On Sun, 09 Jan 2000 03:06:02 +0800, Ronald Tin writes:
>On Sat, Jan 08, 2000 at 12:10:41PM +0100, Robert Waldner wrote:
>> modify /etc/init.d/network accordingly, do an ifconfig <interface> down, the
>n run /etc/rcS.d/S40network
>
>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...
&rw
--
-- +++ EUnet/KPNQwest@Exponet, 15.-17.2.'2k, Ebene02/Stand08 +++
----- ___ - Robert Waldner EUnet/AT tech staff
---- / / / ___ ____ _/_ -- <Waldner@Austria.EU.net> RW960-RIPE
--- /--- / / / / /___/ / --- ---EUnet EDV-DienstleistungsgesmbH---
-- /___ /___/ / / /___ /_ ---- Diefenbachgasse 35 A-1150 Wien
- ----- Tel: +43 1 89933 Fax: +43 1 89933 533
Reply to: