Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

More than 1 dummy interface

13 views
Skip to first unread message

George Mansoor

unread,
Aug 15, 1995, 3:00:00 AM8/15/95
to

Subject: More than 1 dummy interface
Newsgroups: comp.os.linux.networking
Organization: California State University, Northridge
Summary:
Keywords:
X-Newsreader: TIN [version 1.2 PL2]


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

Robert Nichols

unread,
Aug 16, 1995, 3:00:00 AM8/16/95
to
In article <40qvkn$l...@dewey.csun.edu>,
George Mansoor <gman...@huey.csun.edu> wrote:
: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+.

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

Doctor Padds

unread,
Aug 19, 1995, 3:00:00 AM8/19/95
to
Robert Nichols (rnic...@interaccess.com) wrote:
: In article <40qvkn$l...@dewey.csun.edu>,

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!
\___________________________________________

0 new messages