Re: How to configure mutil IP address on same NIC?

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

 



2009/1/5 shark huang <shark.hh@xxxxxxxxx>
Hi:

2009/1/5 Vaughn Clinton <vclinton@xxxxxxx>
I'm sorry - I read the initial email incorrectly.  Anyway, bonding would allow you to configure multiple NICs to utilize the same IP address and not the other way around.

The other (the best) option is to use a virtual interface, i.e. "ifcfg-eth:x" where "x" is a unique number.  You can define the interface just like you would any physical device within the "ifcfg-eth0:0"
I do not want to use this way because IPROUTE2 Utility Suite is recommend to add multi IPs instead of ipconfig( to add virtual interface). Do we have another way to initialize multi IPs on same NIC when OS startup except to use many ifcfg-eth:0,1...x files (to add virtual interface) under /etc/sysconfig/network-scripts dir which is similar with to use ipconfig command to add multi IPs . 

I've have good experience with:
ip addr add IP_ADDR/NETWORK dev DEVICE

e.g.
ip addr add 10.0.0.56/24 dev eth0

There are lots of other useful things you can do with the ip command.

I've used bonding as well, but only if you have two (or more) NICs that you want to load balance or for failover/redundancy reasons.

Carter
 

Sorry for my earlier misunderstanding.

cheers,


Date: Mon, 5 Jan 2009 21:05:51 +0800To: vclinton@xxxxxxx; linux-net@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx

Subject: Re: How to configure mutil IP address on same NIC?



On Mon, Jan 5, 2009 at 1:43 PM, Vaughn Clinton <vclinton@xxxxxxx> wrote:
would bonding be an option?
Could you explain it more detail? 



Date: Mon, 5 Jan 2009 09:46:02 +0800
From: shark.hh@xxxxxxxxx
To: kernelnewbies@xxxxxxxxxxxx
Subject: Re: How to configure mutil IP address on same NIC?
CC: linux-kernel@xxxxxxxxxxxxxxx


Hi:
    CC to linux-kernel group!

2009/1/4 shark huang <shark.hh@xxxxxxxxx>
Hi:
    I  know both ifconfig or ip addr add command can add mutil IP address on same NIC and Ip addr add is recommanded because interface alias is easy to cause confusion。
    May question is how configure the network related files, such as ifcfg-eth0 file to let mutil IPs can be attached on same NIC. I know one way is use the interface alias to configure the ifcfg-eth0:1 file. But it is same as to use ifconfig command to add another IP address on interface with alias. How to configure the network related file to add mutil IP address on same NIC which same as to use IP addr add command?

Br
Shark 




Get easy photo sharing with Windows Live™ Photos. Drag n' drop



Get news, entertainment and everything you care about at Live.com. Check it out!



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux