LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to assign an alternate ip address in bonding interface. (https://www.linuxquestions.org/questions/linux-server-73/how-to-assign-an-alternate-ip-address-in-bonding-interface-738575/)

cj_cheema 07-08-2009 06:36 AM

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

ChrisAbela 07-08-2009 07:03 AM

I hope this helps:

# ifconfig eth0:0 <ip_address> netmask <net_mask> up

watcher69b 07-08-2009 07:05 AM

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

abi0909 07-08-2009 02:29 PM

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.

ChrisAbela 07-10-2009 09:15 AM

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


All times are GMT -5. The time now is 05:13 PM.