Re: Standard way to change IP?
On Fri, 7 Jan 2000, George Bonser wrote: > On Sat, 8 Jan 2000, Jonathan Chang wrote: > > > Hi, all > > > > Is there any standard way for debian to change ip address? Or > > I need to modify files in /etc manully? Thanks in advance. > > Edit /etc/init.d/network and reboot is the EASIEST way for a newbie. No need to reboot, just "shutdown" the NIC: ifconfig eth0 down and then run the /etc/init.d/network (after you edited it of course): /etc/init.d/network Oki
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 RefUse 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 04 lo > 0.0.0.0 193.154.142.1 0.0.0.0 UG1 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 :(
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 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 RefUse 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 04 lo 0.0.0.0 193.154.142.1 0.0.0.0 UG1 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/[EMAIL PROTECTED], 15.-17.2.'2k, Ebene02/Stand08 +++ - ___ - Robert WaldnerEUnet/AT tech staff // / ___ _/_ -- <[EMAIL PROTECTED]> RW960-RIPE --- /--- / / / / /___/ / --- ---EUnet EDV-DienstleistungsgesmbH--- -- /___ /___/ / / /___ /_ Diefenbachgasse 35A-1150 Wien - - Tel: +43 1 89933 Fax: +43 1 89933 533
Re: Standard way to change IP?
On Sat, Jan 08, 2000 at 12:10:41PM +0100, Robert Waldner wrote: > On Sat, 08 Jan 2000 15:04:33 +0800, Jonathan Chang writes: > >Hi, all > > > > Is there any standard way for debian to change ip address? Or > >I need to modify files in /etc manully? Thanks in advance. > > modify /etc/init.d/network accordingly, do an ifconfig down, then > 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?
Re: Standard way to change IP?
Jonathan Chang said: > Is there any standard way for debian to change ip address? Or > I need to modify files in /etc manully? Thanks in advance. To change it temporarily (until the next reboot), use ifconfig. For a permanent change, yes, you have to edit a config file in /etc. (/etc/init.d/network, to be exact.) -- Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++> E- W--(++) N+ o+ !K w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+
Re: Standard way to change IP?
On Sat, 08 Jan 2000 15:04:33 +0800, Jonathan Chang writes: >Hi, all > > Is there any standard way for debian to change ip address? Or >I need to modify files in /etc manully? Thanks in advance. modify /etc/init.d/network accordingly, do an ifconfig down, then run /etc/rcS.d/S40network &rw -- -- +++ EUnet/[EMAIL PROTECTED], 15.-17.2.'2k, Ebene02/Stand08 +++ - ___ - Robert WaldnerEUnet/AT tech staff // / ___ _/_ -- <[EMAIL PROTECTED]> RW960-RIPE --- /--- / / / / /___/ / --- ---EUnet EDV-DienstleistungsgesmbH--- -- /___ /___/ / / /___ /_ Diefenbachgasse 35A-1150 Wien - - Tel: +43 1 89933 Fax: +43 1 89933 533
Standard way to change IP?
Hi, all Is there any standard way for debian to change ip address? Or I need to modify files in /etc manully? Thanks in advance. -- Chia-Sheng Chang Institute of Communications Engineering College of Electrical Engineering National Taiwan University Taipei, Taiwan 10617 E-Mail: [EMAIL PROTECTED]