Solved

how to add a secondary IP on a linux server with bonding card

Posted on 2012-04-11
1
814 Views
Last Modified: 2012-04-14
Hi ,

I need to add a secondary IP on the linux server but here is what the bond file ifcfg-bond0
 has :
DEVICE=bond0
BONDING_OPTS="mode=1 miimon=100 downdelay=200 updelay=200"
IPADDR=10.58.20.81
NETWORK=10.58.20.0
NETMASK=255.255.255.0
BROADCAST=10.58.20.255
IPV6INIT=yes
IPV6_AUTOCONF=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

the eth0 and eth1 looki like this :

#Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="speed 1000 duplex full"


Any ideas how to add the secondary IP ? I suspect it has to be added to the bond file.

Oh , btw, i am  talking about RHEL here..

thanks.
0
Comment
Question by:c_hockland
1 Comment
 
LVL 1

Accepted Solution

by:
nmitev earned 500 total points
Comment Utility
You need to create further bond0:0...n interfaces, with the additional addresses assigned to them. So copy ifcfg-bond0 to ifcfg-bond0:0 and change the IP address.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now