LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



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

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


Hi
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
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
I hope this helps:

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

Rep: Reputation: 39
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
abi0909
Member
 
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
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
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....

Chris
 
  


Reply


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
Bonding a virtual interface frd4460 Linux - Networking 3 11-01-2013 04:48 PM
Finding out Bonding mode of Interface ajeet528 Linux - Networking 2 09-11-2008 03:01 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


All times are GMT -5. The time now is 03:38 PM.

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