Operating System - Linux
1755433 Members
3550 Online
108832 Solutions
New Discussion юеВ

Virtual IP over bond (aggregated) Network?

 
SOLVED
Go to solution
Alzhy
Honored Contributor

Virtual IP over bond (aggregated) Network?

I did this:

cp -p ifcfg-bond0 ifcfg-bond0:1
edited ifcfg-bond0:1 (to reflect the IP address)
plumbed up the VIP device:
ifconfig bond0:1 xxx.yy.pp.qq netmask 255.255.255.0

Is this correct?

TIA!
Hakuna Matata.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Virtual IP over bond (aggregated) Network?

Shalom,

This is a legitimate and correct use. There is no reason why you can not have two IP addresses or more associated with a bond address.

I've done this in the past.

Don't test it on a production server, try it out first in the lab though. There are occasionally bugs with network bonding that can lead to unfortuneate results with certain kernel/hardware combinations.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alzhy
Honored Contributor

Re: Virtual IP over bond (aggregated) Network?

SEP.. all I wnted is a Yes or No answer on my syntax and config.
Hakuna Matata.
Steven E. Protter
Exalted Contributor

Re: Virtual IP over bond (aggregated) Network?

Yes

What I meant was it must be right, that is how I did it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor
Solution

Re: Virtual IP over bond (aggregated) Network?

In fact, you should:

cp -p ifcfg-bond0 ifcfg-bond0:1
edit ifcfg-bond0:1 (to reflect the IP address)
edit ifcfg-bond0:1 (to reflect the device DEVICE=bond0:1)
Run:
ifup bond0:1
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michal Kapalka (mikap)
Honored Contributor

Re: Virtual IP over bond (aggregated) Network?

Hi Alzhy,

yes your config is correct.

mikap