Difference between revisions of "Netplan Bonding"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
bonds: | bonds: | ||
bond0: | bond0: | ||
− | + | interfaces: [ens3f0, ens3f1] | |
+ | addresses: [10.10.110.2/24] | ||
+ | gateway4: 10.10.110.1 | ||
+ | nameservers: | ||
+ | search: [local] | ||
+ | addresses: [10.10.110.1] | ||
+ | parameters: | ||
+ | mode: active-backup | ||
+ | primary: ens3f0 | ||
+ | </pre> | ||
+ | <pre> | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | bonds: | ||
+ | bond0: | ||
interfaces: | interfaces: | ||
− | - | + | - ens3f0 |
− | - | + | - ens3f1 |
parameters: | parameters: | ||
mode: active-backup | mode: active-backup | ||
− | primary: | + | primary: ens3f0 |
+ | bond-wan: | ||
+ | interfaces: [enp1s0, enp4s0] | ||
+ | addresses: [192.168.1.252/24] | ||
+ | gateway4: 192.168.1.1 | ||
+ | nameservers: | ||
+ | search: [local] | ||
+ | addresses: [8.8.8.8, 8.8.4.4] | ||
+ | parameters: | ||
+ | mode: active-backup | ||
+ | primary: enp1s0 | ||
</pre> | </pre> | ||
+ | https://netplan.io/examples | ||
+ | |||
+ | [[LACP]] bonding. Ref: https://www.snel.com/support/how-to-set-up-lacp-bonding-on-ubuntu-18-04-with-netplan/ | ||
<pre> | <pre> | ||
network: | network: | ||
Line 26: | Line 54: | ||
mode: active-backup | mode: active-backup | ||
primary: ens3f0 | primary: ens3f0 | ||
+ | bond-wan: | ||
+ | interfaces: [enp1s0, enp4s0] | ||
+ | addresses: [192.168.1.252/24] | ||
+ | gateway4: 192.168.1.1 | ||
+ | nameservers: | ||
+ | search: [local] | ||
+ | addresses: [8.8.8.8, 8.8.4.4] | ||
+ | parameters: | ||
+ | mode: 802.3ad | ||
+ | lacp-rate: fast | ||
+ | mii-monitor-interval: 100 | ||
</pre> | </pre> | ||
− | |||
+ | |||
+ | * <code>cat [[/proc/net/bonding/bond0]]</code> | ||
== See also == | == See also == | ||
+ | * {{Netplan}} | ||
* [[Bonding]] | * [[Bonding]] | ||
+ | * {{linux networking commands}} | ||
+ | * {{Ethernet}} | ||
+ | |||
+ | [[Category:Linux]] | ||
+ | [[Category:Ethernet]] |
Latest revision as of 10:31, 6 September 2020
Netplan example[edit]
network: version: 2 renderer: networkd bonds: bond0: interfaces: [ens3f0, ens3f1] addresses: [10.10.110.2/24] gateway4: 10.10.110.1 nameservers: search: [local] addresses: [10.10.110.1] parameters: mode: active-backup primary: ens3f0
network: version: 2 renderer: networkd bonds: bond0: interfaces: - ens3f0 - ens3f1 parameters: mode: active-backup primary: ens3f0 bond-wan: interfaces: [enp1s0, enp4s0] addresses: [192.168.1.252/24] gateway4: 192.168.1.1 nameservers: search: [local] addresses: [8.8.8.8, 8.8.4.4] parameters: mode: active-backup primary: enp1s0
LACP bonding. Ref: https://www.snel.com/support/how-to-set-up-lacp-bonding-on-ubuntu-18-04-with-netplan/
network: version: 2 renderer: networkd bonds: bond0: interfaces: - ens3f0 - ens3f1 parameters: mode: active-backup primary: ens3f0 bond-wan: interfaces: [enp1s0, enp4s0] addresses: [192.168.1.252/24] gateway4: 192.168.1.1 nameservers: search: [local] addresses: [8.8.8.8, 8.8.4.4] parameters: mode: 802.3ad lacp-rate: fast mii-monitor-interval: 100
See also[edit]
- Netplan:
netplan try
,netplan apply
, examples,networkd
- Bonding
ip
[link, route]
,ifconfig
netstat
ss
lsof
ping
ethtool
mii-tool
arping
nmcli
(RHEL)route
networkctl
,netplan
,tc
- Ethernet: MII, MDI, bonding, etherchannel, STP, ARP, MAC, STP, Jumbo frames, 802.1X, MTU, Ethernet In-Band Access (IBA), LACP, Multicast, Broadcast, SPI
Advertising: