35 lines
985 B
Bash
Executable File
35 lines
985 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"
|
|
bridge_property 'stp_state' "$IFACE"
|
|
bridge_property 'mcast_router' "$IFACE"
|
|
bridge_property 'mcast_snooping' "$IFACE" '0' '' # TODO: Remove such entries when bridges play well with multicasting
|
|
bridge_property 'mcast_querier' "$IFACE"
|
|
bridge_property 'mcast_mld_version' "$IFACE" '2' ''
|
|
|
|
IFACE="br0"
|
|
new_if_bridge "$IFACE"
|
|
bridge_property 'stp_state' "$IFACE"
|
|
bridge_property 'mcast_router' "$IFACE"
|
|
bridge_property 'mcast_snooping' "$IFACE" '0' '' # TODO: Remove such entries when bridges play well with multicasting
|
|
bridge_property 'mcast_querier' "$IFACE"
|
|
bridge_property 'mcast_mld_version' "$IFACE" '2' ''
|
|
|
|
# Wireguard
|
|
IFACE="wg-tunnel"
|
|
new_if_wg "$IFACE"
|
|
addr_static_if "$IFACE" "172.22.12.5/32"
|
|
addr_static_if "$IFACE" "fd42:42:42::2:5/128"
|