signed

QiShunwang

“诚信为本、客户至上”

ubuntu系统做bond

2021/6/3 16:13:59   来源:
vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto bond0
iface bond0 inet static
        bond-mode 4
        bond-slaves enp97s0f0 enp97s0f1
        address 10.105.0.29
        netmask 255.255.254.0
        network 10.105.0.0
        broadcast 10.105.1.255
        gateway 10.105.1.254
        dns-nameservers 10.255.9.2

auto enp97s0f0
iface enp97s0f0 inet manual
        bond-master bond0

auto enp97s0f1
iface enp97s0f1 inet manual
        bond-master bond0

modprobe bonding
systemctl restart networking.service