multiple dummy interfaces?

Jon August snoopjonny at gmail.com
Fri Mar 25 15:53:20 UTC 2005


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 

/sbin/ifconfig dummy0 www.domain0.com up 
/sbin/route add www.domain0.com dummy0 
/sbin/arp -s www.domain0.com 00:AA:BB:AA:CC:DD pub 

/sbin/ifconfig dummy1 www.domain1.com up 
/sbin/route add www.domain1.com dummy1 
/sbin/arp -s www.domain1.com 00:AA:BB:AA:CC:DD pub 

, but this doesn't work on FC3. I was able to load one dummy interface
like this:

/sbin/insmod /lib/modules/current/kernel/drivers/net/dummy.ko dummy0 

/sbin/ifconfig dummy0 www.domain0.com up 
/sbin/route add www.domain0.com dummy0 
/sbin/arp -s www.domain0.com 00:AA:BB:AA:CC:DD pub 

, but if I try to load a dummy1, I get this error: 

insmod: error inserting
'/lib/modules/current/kernel/drivers/net/dummy.ko': -1 File exists

If I try to use modprobe I get this:

# /sbin/modprobe -o dummy1 dummy

FATAL: Error inserting dummy
(/lib/modules/2.6.10-1.770_FC3smp/kernel/drivers/net/dummy.ko):
Operation not permitted

Am I doing this the right way? Does this problem have something to do
with SELinux?  If so, why does the first dummy interface work?

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

Thanks, 
-Jon




More information about the fedora-list mailing list