[lug] Binding multiple IPs to one NIC

Chris M chrism at peakpeak.com
Wed Dec 15 15:14:24 MST 1999


----- Original Message ----- 
From: Andrew Diederich <andrew at netdelivery.com>
To: <lug at lug.boulder.co.us>
Sent: Wednesday, December 15, 1999 3:04 PM
Subject: Re: [lug] Binding multiple IPs to one NIC


> On Wed, Dec 15, 1999 at 03:00:21PM -0700, Chris M wrote:
> > Turn on aliasing in the kernel if not already.  Then something like:
> > 
> > #older kernels
> > #/sbin/insmod    /lib/modules/2.0.31/ipv4/ip_alias.o
> > #
> > # setup the loopback, eth0 and the IP's
> > #
> > echo "Using ifconfig to setup the IP addresses for Virtual Hosts..."
> > /sbin/ifconfig lo 127.0.0.1
> > /sbin/ifconfig eth0 up
> > /sbin/ifconfig eth0 your.main.IP
> > 
> > /sbin/ifconfig eth0:154 your.other.IP
> > 
> > /sbin/route add -host your.gateway.IP dev eth0
> > 
> > /sbin/route add -host your.other.IP dev eth0:154
> > 
> > 
> > Please kids, enjoy this in moderation.
> > 
> > Happy holidays!
> > Chris
> > Peak to Peak Internet
> 
> Excellent.  Bonus question: any idea what this looks like in linuxconf?
> 

Answer:

Only girlymen use linuxconf :)

No, I don't.

Chris





More information about the LUG mailing list