Purpose:
This simple instruction for NIC bonding is for roughly check on platform SKY8101 QSL
Target Audience:
For users who are using Linux OS and would like to bond two ethernet ports for different level
Steps:
## Environment Info
Platform : SKY-8101 + Perscard 1221 (X550 dual 10G base-T)
OS : Advantech BSP: sky8101_qsl_standard_1.00
Kernel : 3.10.0-693.2.2.el7.x86_64
Driver :
driver: ixgbe
version: 5.2.3
firmware-version: 0x80000289
## Steps for Bond Check ##
(1) Start NetworkManager Service
# systemctl start NetworkManager
(2) Check connection state
# nmcli connection show
NAME UUID TYPE DEVICE
Wired connection 3 566fb2c0-fb49-3f25-b0c3-8272d656a4ca 802-3-ethernet eth0_mgmt1
Wired connection 4 14aacd68-12b0-3136-b71b-369d5401a935 802-3-ethernet eth4
Wired connection 5 aa7f78eb-51f3-3985-b3af-a6b6dd2375c3 802-3-ethernet eth5
Wired connection 1 a7ac483b-7697-335e-9f39-1438b6cdfe3d 802-3-ethernet --
Wired connection 2 46668b49-9655-36ba-8845-e91746f94b4e 802-3-ethernet --
(3) Add bond interface with mode 1 (Active / Backup)
# nmcli connection add type bond ifname bond0 mode 1
(4) Bond two ports (eth4 / eth5) to bond0
# nmcli connection add type bond-slave ifname eth4 master bond0
# nmcli connection add type bond-slave ifname eth5 master bond0
(5) Recheck connection state
# nmcli connection show
NAME UUID TYPE DEVICE
Wired connection 3 566fb2c0-fb49-3f25-b0c3-8272d656a4ca 802-3-ethernet eth0_mgmt1
bond-bond0 90e8f84e-5eaa-4b51-a3c0-cf9a1b04113e bond bond0
bond-slave-eth4 cf462d5b-7a6b-4c8c-9165-0d01d2936a70 802-3-ethernet eth4
bond-slave-eth5 7a9e3290-c79c-4544-a6bc-c30776bc95c7 802-3-ethernet eth5
Wired connection 1 a7ac483b-7697-335e-9f39-1438b6cdfe3d 802-3-ethernet --
Wired connection 2 46668b49-9655-36ba-8845-e91746f94b4e 802-3-ethernet --
Wired connection 4 14aacd68-12b0-3136-b71b-369d5401a935 802-3-ethernet --
Wired connection 5 aa7f78eb-51f3-3985-b3af-a6b6dd2375c3 802-3-ethernet --
(6) Restar network service
# systemctl restart network.service
(7) Stop NetworkManager Service
# systemctl stop NetworkManager
(8) Check Bond0 Status
# cat /proc/net/bonding/bond0
*** Original ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
*** physical remove eth4 , wait few seconds ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth5
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
*** plug eth4 back, wait few seconds ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth5
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
*** physical remove eth5 , wait few seconds ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
*** Plug eth5 back, wait few seconds ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
*** remove eth4, wait few seconds ***
[root@sky-8101 ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth5
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 2
Permanent HW addr: 74:fe:48:09:3a:f9
Slave queue ID: 0
Slave Interface: eth5
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 74:fe:48:09:3a:fa
Slave queue ID: 0
Comments
0 comments
Please sign in to leave a comment.