Solved

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

Posted on 2012-04-11
1
828 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RHEL6 + dockers - No route to host 7 100
Intel fortran compiler (ifort) 5 81
The better OS Architecture 13 108
exchange, squid, proxy, linux 6 85
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses

739 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