[Gllug] Re: [GLUG] Question

Alistair Mann alistair at lgeezer.net
Mon May 19 12:53:57 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thus spaketh Gareth Gregor on Monday 19 May 2003 11:48 am:
> > Just a question, I need to change the IP addy of a server at our hosting
> > centre, which is about 1.5 hours away from the office, and I am not in
> > the mood to go out there. Can anyone forsee any problems with just
> > running:
> >
> > ifconfig eth0 192.168.1.205
>
>  If i were you, i would do an ifconfig eth0:1 192.168.1.205 that way you
> can disconnect and pnig and ssh the new ip, test if it all works then
> ifconfig eth0 down. You may also want to set this to do it on bootup, else
> should the power trip you going to have to do it again.
>
> Just a thaught, use it, dont use it...

I might well be wrong, but I understood that method of adding addresses to 
have been deprecated for the 2.2 or 2.4 kernels in favour of the iproute2 
version:

# ip addr add 192.168.1.205/24 dev eth0
# ip addr del 192.168.1.oldaddress/32 dev eth0

And for viewing what interfaces are assigned what:

#ip addr ls

Specifically, note that the iproute2 delete requires /32 NOT the netmask, as 
if you have two addresses in that subnet, deleting /24 will delete both, not 
just the one.

Cheers,
- -- 
Alistair
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+yNPlmxw6F+mBuhURAnEnAJ9KbTzqRYEpTzAt6fp8s4vTfHoX+wCeN5gP
g+LVOwdsp1QWMdT+R3HC+9s=
=waA9
-----END PGP SIGNATURE-----



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list