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

Re: [Debian]:Mehrere IP-Adressen



On Tue, Jan 25, 2000 at 10:31:41AM +0100, Andreas Tille wrote:
> in unserem lokalen Netz werden die internen IP-Adressen von
> 192.168.x.y auf 10.x.y.z umgestellt.  Zeitweilig brauchen
> meine Rechner gleichzeitig zwei IP-Adressen (die neue und die
> alte halt).
Du brauchst einen Kernel mit IP Aliasing (CONFIG_IP_ALIAS=y) support.

Dann
    ifconfig eth0   10.x.y.z netmask 255.x.x.x broadcast 10.x.x.x
    ifconfig eth0:0 192.168.x.y netmask 255.255.255.0 broadcast 192.168.x.255
    route add -net 10.0.0.0 dev eth0
    route add -net 192.168.x.0 dev eth0:0

(Die route Befehle bei 2.2.x Kerneln weglassen.)
Kurz: ifconfig auf das magische Interface eth0:n (n=0,1,2,...) weist
demselben physikalischen Interface mehrere IP Adressen zu.

Erklärt ist es im IP-Alias mini HOWTO oder in der Kernel Documentation
/path/to/your/kernel/source/Documentation/net/alias.txt


Nils

-- 
Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.            --unknown source

Attachment: pgpecQ4ubEH7y.pgp
Description: PGP signature


Reply to: