CentOS6.5 dual Nic binding tutorial
[Root @ localhost] # cd/etc/sysconfig/network-scripts/
[Root @ localhostnetwork-scripts ~] # Ll
-Rw-r --. 1 root 149 Aug 3 ifcfg-bond0
-Rw-r --. 1 root 97 Aug 3 ifcfg-eth0
-Rw-r --. 1 root 98 Aug 3 ifcfg-eth1
-Rw-r --. 1 root 182 Aug 3 ifcfg-eth2
-Rw-r --. 1 root 254 Oct 10 2013 ifcfg-lo
[Root @ localhostnetwork-scripts] # cpifcfg-eth0ifcfg-bond0
[Root @ localhostnetwork-scripts] # vimifcfg-bond0
GATEWAY = 192.168.x.x
DNS1 = 114.114.114.114
DEVICE = bond0
BOOTPROTO = none
NETMASK = 255.255.255.0
TYPE = Ethernet
IPADDR = 192.168.x.x
ONBOOT = yes
USERCTL = no
[Root @ localhostnetwork-scripts] # vimifcfg-eth0
EVICE = eth0
ONBOOT = no
TYPE = Ethernet
MASTER = bond0
BOOTPROTO = none
USERCTL = no
SLAVE = yes
IPV6INIT = no
~
[Root @ localhostnetwork-scripts] # vimifcfg-eth1
EVICE = eth1
ONBOOT = no
TYPE = Ethernet
MASTER = bond0
BOOTPROTO = none
USERCTL = no
SLAVE = yes
IPV6INIT = no
[Root @ localhost] # cd/etc/modprobe. d/
[Root@localhostmodprobe.d] # vidist. conf
Alias bond0 bonding
Options bodn0 mode = 0 miimon = 100
[Root @ localhost] # vi/etc/rc. d/rc. local
Ifenslave bond0 eth0 eth1
Disable service networkmanager
[Root @ localhost modprobe. d] # ifconfig
Bond0 Link encap: Ethernet HWaddrF8: 0F: 41: F8: EC: 70
Inet addr: 192.168.x.xBcast: 192.168.x.xMask: 255.255.255.0
Inet6 addr: fe80: fa0f: 41ff: fef8: ec70/64 Scope: Link
Up broadcast running master multicast mtu: 1500 Metric: 1
RX packets: 16170 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 2271 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 1552817 (1.4 MiB) TX bytes: 198708 (194.0 KiB)
Eth0 Link encap: Ethernet HWaddrF8: 0F: 41: F8: EC: 70
Up broadcast running slave multicast mtu: 1500 Metric: 1
RX packets: 2476 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1134 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 214254 (209.2 KiB) TX bytes: 99272 (96.9 KiB)
Memory: dfc20000-dfc40000
Eth1 Link encap: Ethernet HWaddrF8: 0F: 41: F8: EC: 70
Up broadcast running slave multicast mtu: 1500 Metric: 1
RX packets: 13694 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1137 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 1338563 (1.2 MiB) TX bytes: 99436 (97.1 KiB)
Memory: dfc00000-dfc20000
Vswitch Configuration
[Switch] link-aggregation group 1 mode manual
[Switch] interface GigabitEthernet 1/0/1
[Switch-GigabitEthernet1/0/1] port link-aggregation group 1
[Switch-GigabitEthernet1/0/1] interface GigabitEthernet 1/0/48
[Switch-GigabitEthernet1/0/2] port link-aggregation group 1
[Switch-GigabitEthernet1/0/2] interface GigabitEthernet 1/0/47
[Switch-GigabitEthernet1/0/3] port link-aggregation group 1
Test Results