Re: Adding multiple IP addresses to eth0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Re: Adding multiple IP addresses to eth0
That is a simple one (if you know the answer)

Compile your kernel with IP_ALIASING on.

Then you do:
ifconfig eth0 192.168............
ifconfig eth0:1 192.179...........
ifconfig eth0:2 222.333.44.........

it is that simple.

Karsten

----------
From: "Ken Jansons" <kenj@snowcap.net>
To: <linux-net@vger.rutgers.edu>
Cc: <linux-admin@vger.rutgers.edu>
Subject: Adding multiple IP addresses to eth0
Date: Sun, Aug 13, 2000, 13:04


Hello,
 
I have  a question that I think would be easy to answer, but can't seem to find an answer on - how do I add another IP address to eth0?  I am running Slackware 7.0.  I have tried it with ifconfig eth0 xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx netmask xxx.xxx.xxx, replacing the x's with their appropriate values, but have had no luck, it will add the ip address, overriding the one I had before, whereas I would like to stick both on the same device (eth0)  
 
Any help would be greatly appreciated!
 
Ken Jansons
kenj@snowcap.net <mailto:kenj@snowcap.net>
 


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux