Re: multiple dummy interfaces?

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

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux