35 lines
1007 B
Bash
Executable File
35 lines
1007 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "$(dirname -- "$0")/netdev.sh"
|
|
|
|
# Physical
|
|
new_if_phys "phys0"
|
|
new_if_phys "phys1"
|
|
new_if_phys "phys2"
|
|
new_if_phys "phys3"
|
|
new_if_phys "phys4"
|
|
new_if_phys "phys5"
|
|
|
|
# Bridges
|
|
IFACE="br-v6"
|
|
new_if_bridge "$IFACE"
|
|
if_bridge_property 'stp_state' "$IFACE"
|
|
if_bridge_property 'mcast_router' "$IFACE"
|
|
if_bridge_property 'mcast_snooping' "$IFACE" '0' '' # TODO: Remove such entries when bridges play well with multicasting
|
|
if_bridge_property 'mcast_querier' "$IFACE"
|
|
if_bridge_property 'mcast_mld_version' "$IFACE" '2' ''
|
|
|
|
IFACE="br0"
|
|
new_if_bridge "$IFACE"
|
|
if_bridge_property 'stp_state' "$IFACE"
|
|
if_bridge_property 'mcast_router' "$IFACE"
|
|
if_bridge_property 'mcast_snooping' "$IFACE" '0' '' # TODO: Remove such entries when bridges play well with multicasting
|
|
if_bridge_property 'mcast_querier' "$IFACE"
|
|
if_bridge_property 'mcast_mld_version' "$IFACE" '2' ''
|
|
|
|
# Wireguard
|
|
IFACE="wg-tunnel"
|
|
new_if_wg "$IFACE"
|
|
if_ip_addr "$IFACE" "172.22.12.5/32"
|
|
if_ip_addr "$IFACE" "fd42:42:42::2:5/128"
|