Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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‚Ķ
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

830 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