multiple dummy interfaces?

Alexander Dalloz ad+lists at uni-x.org
Fri Mar 25 16:50:27 UTC 2005


Am Fr, den 25.03.2005 schrieb Jon August um 16:53:
> Hey, 
> 
> I'm moving from an older redhat to FC3 and I had multiple IP addresses
> on the same ethernet interface. I could set up 2 or more dummy
> interfaces like this:
> 
> /sbin/insmod -o dummy0 /lib/modules/current/kernel/drivers/net/dummy.o 
> /sbin/insmod -o dummy1 /lib/modules/current/kernel/drivers/net/dummy.o 

> How do I add 2 or more dummy interfaces? Is there a better way?

> -Jon

Why using "dummy" at all? Use iproute2 instead:

ip addr add IP/NET brd GW-IP dev ETH-DEV label ETH-DEV

This will add a further IP/NET with gateway set to GW-IP to existing
ethernet device ETH-DEV. You can add as much IP addresses as you like.
They don't have to be from the same net like the main IP of the ethernet
device.

The tool "ip" has much more options is more powerful than the old
ifconfig.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.770_FC2smp 
Serendipity 17:44:55 up 8 days, 15:41, load average: 0.57, 0.55, 0.50 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050325/c0efbf71/attachment-0001.sig>


More information about the fedora-list mailing list