Appearance
6. Personalized Configuration
6.1 Using Network Interface Bonding to Accelerate Deployment
Using network interface bonding to increase the management node's upload bandwidth can improve deployment speed.
- On the management node, install the ifenslave.
shell
sudo apt install ifenslave- load bonding module。
shell
# load bonding module
sudo modprobe bonding
#
sudo lsmod | grep bonding- Configure network interface bonding. For example, configure a bond in mode 6 (balance-alb) using two interfaces named eth0 and eth1. Modifying /etc/netplan/00-installer-config.yaml:
/etc/netplan/00-installer-config.yaml
yaml
network:
version: 2
ethernets:
eth0:
dhcp4: false
eth1:
dhcp4: false
bonds:
bond0:
addresses: [192.168.1.88/24]
gateway4: 192.168.1.1
nameservers:
addresses:
- 114.114.114.114
interfaces:
- eth0
- eth1
parameters:
mode: balance-albThen run:
bash
sudo netplan apply- Check the Bonding Status:
bash
# Check the Bonding Status:
cat /proc/net/bonding/bond0
sudo ethtool bond0To view the configuration and status information of the bonded network interface bond0, including speed, duplex mode, link status, and hardware features.
- Delete Bond
Comment out the added content in the /etc/netplan/00-installer-config.yaml file.
bash
sudo ifconfig bond0 down
sudo rmmod bondingCheck:
bash
ifconfig bond0