[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Auf neue IP wechseln



On 2009-12-09, Andre Bischof <a.bischof@gmx.net> wrote:
> jetzt laufen beide, ich könnte also die erste abschalten.

> Sollte ich jetzt ifdown eth0 machen (läuft dann die etho:1 noch?))

> Besser wahrscheinlich die Datei neu editieren, so dass nur noch eth0 mit 
> der neuen IP drin steht und dann in screen

> #ifdown -a && ifup -a

> oder?

ip(8), aus dem Paket iproute.

ip addr add dev eth0 $IP_new/$netmask
ip addr del dev eth0 $IP_old/$netmask

Rob
-- 
God grant us the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to hide the bodies of the slobs we have
to kill for pissing us off ...


Reply to: