[lug] Binding multiple IPs to one NIC
Andrew Diederich
andrew at netdelivery.com
Wed Dec 15 15:04:49 MST 1999
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?
-Andrew
More information about the LUG
mailing list