15 lines
342 B
Bash
Executable File
15 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "$(dirname -- "$0")/netdev.sh"
|
|
|
|
new_if_phys "eth0"
|
|
|
|
IFACE="br0"
|
|
new_if_bridge "$IFACE"
|
|
if_bridge_property 'mcast_router' "$IFACE"
|
|
if_bridge_property 'mcast_snooping' "$IFACE" '0' ''
|
|
if_bridge_property 'mcast_querier' "$IFACE"
|
|
if_bridge_property 'mcast_mld_version' "$IFACE" '2' ''
|
|
if_dhcp "$IFACE"
|
|
if_slave "$IFACE" "eth0"
|