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 |
I hope this helps:
# ifconfig eth0:0 <ip_address> netmask <net_mask> up |
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 |
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.
|
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. |