Hi all -
I was wondering if anyone knew how to setup more than one dummy interface
on linux. I setup one with no problem (with a little help from my friends
@ c.o.l.n), but was wondering if I could setup 2+.
If I can setup multiple dummy interfaces, what's the limit?
Thanks
George
--
--------------------------------------------------------------------------
George Mansoor Cal State Northridge
Internet : gman...@csun.edu Business Affairs Systems - BMGT
Tel: 818.717.5242
I've heard you can do this if you build the dummy driver as a loadable
module and insmod more than 1 instance of it.
--
Bob Nichols rnic...@interaccess.com
You can indeed do this. We have :
/sbin/insmod -o dummy0 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy1 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy2 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy3 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy4 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy5 /usr/lib/modules/dummy.o
/sbin/insmod -o dummy6 /usr/lib/modules/dummy.o
on our Web server, and it works like a dream.
Just make modules, then install them into the right place. load them up
with insmod, the -o switch tells it its object name, i.e. dummy1 dummy2
etc...
The do an:
/sbin/ifconfig dummy0 194.128.134.4
/sbin/ifconfig dummy1 194.128.134.22
/sbin/ifconfig dummy2 194.128.134.23
/sbin/ifconfig dummy3 194.128.134.21
/sbin/ifconfig dummy4 194.128.134.13
/sbin/ifconfig dummy5 194.128.134.24
/sbin/ifconfig dummy6 194.128.134.25
or whatever your IP addresses are. This sets them up.
Tell your machine how to route to them:
/sbin/route add 194.128.134.4 dummy0
/sbin/route add 194.128.134.22 dummy1
/sbin/route add 194.128.134.23 dummy2
/sbin/route add 194.128.134.21 dummy3
/sbin/route add 194.128.134.13 dummy4
/sbin/route add 194.128.134.24 dummy5
/sbin/route add 194.128.134.25 dummy6
Then advertise them via ARP to the network.
/sbin/arp -s 194.128.134.4 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.22 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.23 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.21 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.13 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.24 00:00:F4:B0:37:12 pub
/sbin/arp -s 194.128.134.25 00:00:F4:B0:37:12 pub
We have 8 WWW sites on one box with this and Apache.
-Padds
--
________________________
Internet Discovery Ltd \ Internet Access from 10UKP/Month INC VAT!
Phone: (0181) 694 2240 \ The more original a Discovery,
Fax: (0181) 694 8926 \ The more obvious it seems afterwards!
\___________________________________________