| Placeholder | Description | Example Value |
|---|---|---|
| <NIC_1> / <NIC_2> | Physical Interface Names | ens14f0np0 / ens14f1np1 |
| <VLAN_ID> | VLAN Tag ID | 101 |
| <IPV4_ADDR> | Primary IPv4 / CIDR | 203.0.113.33/24 |
| <IPV4_GW> | IPv4 Default Gateway | 203.0.113.1 |
| <IPV6_HOST> | IPv6 Host Address / CIDR | 2001:db8:1:2::2/64 |
| <IPV6_GW> | IPv6 Default Gateway | 2001:db8:1:2::1 |
sysctl -w net.ipv6.conf.all.forwarding=1Location: /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
<NIC_1>: {dhcp4: no}
<NIC_2>: {dhcp4: no}
bonds:
bond0:
interfaces: [<NIC_1>, <NIC_2>]
addresses: ["<IPV4_ADDR>"]
routes:
- to: default
via: "<IPV4_GW>"
parameters:
mode: 802.3ad
lacp-rate: fast
mii-monitor-interval: 100
vlans:
vlan<VLAN_ID>:
id: <VLAN_ID>
link: bond0
addresses: ["<IPV6_HOST>"]
routes:
- to: default
via: "<IPV6_GW>" Run these commands as root to ensure persistence via NM database:
# 1. Create Bond nmcli con add type bond con-name bond0 ifname bond0 bond.options "mode=802.3ad,lacp_rate=1,miimon=100" nmcli con mod bond0 ipv4.addresses <IPV4_ADDR> ipv4.gateway <IPV4_GW> ipv4.method manual # 2. Add Slaves nmcli con add type ethernet slave-type bond con-name bond0-s1 ifname <NIC_1> master bond0 nmcli con add type ethernet slave-type bond con-name bond0-s2 ifname <NIC_2> master bond0 # 3. Create VLAN on top of Bond nmcli con add type vlan con-name bond0.<VLAN_ID> dev bond0 id <VLAN_ID> nmcli con mod bond0.<VLAN_ID> ipv6.addresses <IPV6_HOST> ipv6.gateway <IPV6_GW> ipv6.method manual # 4. Activate nmcli con up bond0 && nmcli con up bond0.<VLAN_ID>
Location: /etc/network/interfaces.
Requires ifenslave and vlan packages.
auto <NIC_1> iface <NIC_1> inet manual auto <NIC_2> iface <NIC_2> inet manual # Bond Interface auto bond0 iface bond0 inet static address <IPV4_ADDR> gateway <IPV4_GW> bond-slaves <NIC_1> <NIC_2> bond-mode 4 bond-miimon 100 bond-lacp-rate 1 # Tagged VLAN Interface auto bond0.<VLAN_ID> iface bond0.<VLAN_ID> inet6 static address <IPV6_HOST> gateway <IPV6_GW>
contact@webofnevada.com(720) 394-5965
