VLAN_PORT_INTERFIX="v"
-vlan_init() {
- ebtables-restore <<EOF
-*filter
-:INPUT ACCEPT
-:FORWARD ACCEPT
-:OUTPUT ACCEPT
-
-*broute
-:BROUTING ACCEPT
--A BROUTING -p 802_1Q -j DROP
-EOF
-}
-
vlan_create() {
local device="${1}"
shift
return ${EXIT_ERROR}
fi
- # Load ebtables stuff.
- vlan_init
-
# Make the command
local command=(
ip link add link "${parent}" name "${device}"