Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] multihomed machine.


On Tue, Aug 22, 2000 at 11:44:26AM +1000, Brock Henry wrote:

> Can I have two IP Addresses on one machine, a registered 203.n.n.n and a 
> private 10.10.n.n for example?

Certainly:

[johnc@dropbear ~]$ /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:10:4B:0E:14:89  
          inet addr:192.168.1.16  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8509802 errors:2 dropped:0 overruns:0 frame:2
          TX packets:11076217 errors:0 dropped:0 overruns:0 carrier:2
          collisions:93015 txqueuelen:100 
          Interrupt:11 Base address:0xec00 

[johnc@dropbear ~]$ /sbin/ifconfig eth0:1
eth0:1    Link encap:Ethernet  HWaddr 00:10:4B:0E:14:89  
          inet addr:203.63.21.210  Bcast:203.63.21.255 Mask:255.255.255.240
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0xec00 

You need to have your kernel configured to support IP aliasing.  See
/usr/src/linux/Documentation/networking/alias.txt for more info.

Cheers,

John
-- 
"Competely pointless fact of the day:  One of my rats is called Solaris, due
to the fact it's fat and bloated.  The other is called Perl.  It's a nervous
insane little animal."  -  Ashley Penney