Chapter III. Virtual Function Network (vNIC)
4.2.
Bonding
The VF network interfaces (assigned to a VM) can be aggregated into a single logical bonded
interface effectively combining the bandwidth into a single connection. It also provides
redundancy in case one of the link fails. Execute the following steps in the VM (attached with
more than 1 VF interface):
i.
Load the Virtual Function network driver using force_link_up module parameter.
[root@host~]# modprobe cxgb4vf force_link_up=0
ii. Create a bonded interface:
[root@host~]# modprobe bonding mode=<bonding mode> <optional paramters>
iii. Bring up the bonded interface and enslave the VF interfaces to the bond:
[root@host~]# ifconfig bond0 up
[root@host~]# ifenslave bond0 ethX ethY
ethX and ethY are the VF interfaces attached to the same VM. It is recommended
Note
to use VFs of different Ports to achieve redundancy in case of link failures.
iv. Assign IPv4/IPv6 address to the bonded interface:
[root@host~]# ifconfig bond0 X.X.X.X/Y
[root@host~]# ifconfig bond0 inet6 add <128-bit IPv6 Address> up
Example:
i.
2 VFs are instantiated each on PF0 (Port 0) and PF1 (Port 1) on the host.
[root@host~]# modprobe cxgb4
[root@host~]# echo 2 >
/sys/class/net/eth4/device/driver/0000\:01\:00.0/sriov_numvfs
[root@host~]# echo 2 >
/sys/class/net/eth4/device/driver/0000\:01\:00.1/sriov_numvfs
Chelsio Unified Wire for Linux
77
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers