Solved

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

Posted on 2012-04-11
1
836 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
nmitev earned 500 total points
ID: 37843133
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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

695 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