Re: Adding multiple IP addresses to eth0

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

 



You do this with
ifconfig eth0:0 ipaddress netmask 255.x.x.x broadcast x.x.x.255 up
then do ifconfig
You should see three devices 
lo eth0 and eth0:0
you can then add more continuing in the same thread i.e eth0:1 eth0:2 etc
But you must have ip alias configured in the kernel but most likely it
will be there.
On Sun, 13 Aug 2000, Ken Jansons wrote:

> Date: Sun, 13 Aug 2000 14:04:55 -0600
> 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
> 
> 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
> 
> 

 Noah
ksemat@eahd.or.ug
 


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[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