Setting up bonded interfaces in Red Hat - to team bond0 interface with 2 other interfaces

View previous topic View next topic Go down

Setting up bonded interfaces in Red Hat - to team bond0 interface with 2 other interfaces

Post by spanner on Tue Apr 15, 2008 4:07 pm

# vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
NETMASK=255.255.255.128
IPADDR=169.243.175.14

# vi /etc/sysconfig/network-scripts/ifcfg-eth2

DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes

# vi /etc/sysconfig/network-scripts/ifcfg-eth4

DEVICE=eth4
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes

Add the following entries to the following file: /etc/modprobe.conf

alias bond0 bonding
options bonding mode=balance-alb downdelay=1000 updelay=5000 miimon=100



Reboot ==> shutdown -r now

ifconfig will show:

bond0 Link encap:Ethernet HWaddr 00:1B:78:57:8F:0C
inet addr:169.243.175.14 Bcast:169.243.175.127 Mask:255.255.255.128
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:18562 errors:0 dropped:0 overruns:0 frame:0
TX packets:18435 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5390654 (5.1 MiB) TX bytes:2290072 (2.1 MiB)

eth2 Link encap:Ethernet HWaddr 00:1B:78:57:8F:0C
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:6489 errors:0 dropped:0 overruns:0 frame:0
TX packets:10878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1755662 (1.6 MiB) TX bytes:1361024 (1.2 MiB)
Base address:0x5000 Memory:f7ce0000-f7d00000

eth4 Link encap:Ethernet HWaddr 00:1B:78:57:98:22
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:12073 errors:0 dropped:0 overruns:0 frame:0
TX packets:7557 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3634992 (3.4 MiB) TX bytes:929048 (907.2 KiB)
Base address:0x4000 Memory:f7be0000-f7c00000


/var/log/boot.log extract shows:

Feb 6 12:29:26 gbwxvcmfdru1 network: Bringing up loopback interface: succeeded
Feb 6 12:29:30 gbwxvcmfdru1 ifup: Enslaving eth2 to bond0
Feb 6 12:29:30 gbwxvcmfdru1 ifup: Enslaving eth4 to bond0
Feb 6 12:29:30 gbwxvcmfdru1 network: Bringing up interface bond0: succeeded



Test Bonding

# ethtool -t eth2 offline

The test result is PASS
The test extra info:
Register test (offline) 0
Eeprom test (offline) 0
Interrupt test (offline) 0
Loopback test (offline) 0
Link test (on/offline) 0

MAC / Hwaddr Address should move from bond0 to eth4

# ethtool -t eth2 online

The test result is PASS
The test extra info:
Register test (offline) 0
Eeprom test (offline) 0
Interrupt test (offline) 0
Loopback test (offline) 0
Link test (on/offline) 0

Then repeat test by offlining eth4 and then onlining it





spanner

Posts : 14
Join date : 2008-04-10
Location : Somewhere in Somerset - where there is a lot of mud - and sounds a bit "Horsey"

View user profile http://www.linkedin.com/in/sarbpanesar

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum