ubuntu nic bonding Print

  • 212

nic bonding for ubuntu linux:

 

network:
    version: 2
    renderer: networkd
    ethernets:
        enp134s0f0:
                dhcp4: no
        enp134s0f1:
                dhcp4: no
    bonds:
       bond-wan:
          interfaces: [enp134s0f0, enp134s0f1]
          addresses: [ 1.1.1.3/29,1.1.1.4/29,1.1.1.5/29,1.1.1.6/29 ]
          gateway4: 1.1.1.1
          nameservers:
              search: [cust.domain.com]
              addresses: [8.8.8.8]
          parameters:
              mode: balance-rr
              mii-monitor-interval: 100
              gratuitious-arp: 5

 


adjust the hash policy:

is it was default to all one nic instead of using layer3/4 to balance it over both nics.

echo "layer3+4" > /sys/class/net/bond0/bonding/xmit_hash_policy


Was this answer helpful?

« Back

Powered by WHMCompleteSolution


["\r\n