[lug] Binding multiple IPs to one NIC
Chris M
chrism at peakpeak.com
Wed Dec 15 15:00:21 MST 1999
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
----- Original Message -----
From: Andrew Diederich <andrew at netdelivery.com>
To: <lug at lug.boulder.co.us>
Sent: Wednesday, December 15, 1999 2:53 PM
Subject: [lug] Binding multiple IPs to one NIC
> Quickie: I need to bind multiple IPs to one ethernet card in Red Hat 6.1.
I know it'll look like
> eth0:0, eth0:1, but I'm not sure how to actually set it up. A pointer to
a howto
> or a man page would be great.
>
> Thanks,
>
> Andrew
> andrew at netdelivery.com
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list