Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-08-2009, 07:36 AM   #1
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 159

Rep: Reputation: 15
how to assign an alternate ip address in bonding interface.

My query is I want to assign an alternate ip address in a bonding interface(bond0)like we can do the same thing in eth0 in linux by creating it's configuration file something as ifcfg-eth0:1. Is it possible with bonding.

Thx & Rgd
Charanjit Singh
Old 07-08-2009, 08:03 AM   #2
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Debian
Posts: 517

Rep: Reputation: 108Reputation: 108
I hope this helps:

# ifconfig eth0:0 <ip_address> netmask <net_mask> up
Old 07-08-2009, 08:05 AM   #3
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 548

Rep: Reputation: 40
or i guess in this case it would be

ifconfig bond0:0 <ip_address> netmask <net_mask> up

ifconfig bond0:1 <ip_address> netmask <net_mask> up
Old 07-08-2009, 03:29 PM   #4
Registered: Jul 2009
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55

Rep: Reputation: 18
To make these permanent, add in the new bond0:1 file in /etc/sysconfig/network-scripts . This file should be just like bond0:0 but with the new IP address.
Old 07-10-2009, 10:15 AM   #5
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Debian
Posts: 517

Rep: Reputation: 108Reputation: 108
Co-incidently I noticed that CentOS 5 (a Red Hat clone) has the GUI tool for this:

From the GNOME desktop:

System >> Administration >> Network >> Devices Tab >> Edit >> Harware Device Tab

the click on Device alias number and so on....



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out Bonding mode of Interface ajeet528 Linux - Networking 4 07-09-2015 03:19 AM
Bonding a virtual interface frd4460 Linux - Networking 3 11-01-2013 04:48 PM
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 10:59 AM
Interface bonding question bajones Linux - Newbie 2 07-21-2008 12:40 PM
Bonding / Binding multiple interface into 1 netguy2000 Linux - Networking 15 09-03-2007 05:06 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration