i'm trying to get rid of vlan 1 on a 951G-2HnD
here is the config,
Code: Select all
# model = 951G-2HnD
/interface bridge
add name=bridge-ALL
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WAN
set [ find default-name=ether2 ] name=ether2-Mini-PC
set [ find default-name=ether3 ] name=ether3-TV
set [ find default-name=ether4 ] name=ether4-Guest1
set [ find default-name=ether5 ] name=ether5-Guest2
/interface ethernet switch port
set 0 vlan-mode=secure #setting vlan id=70 disconnect me from winbox
set 1 default-vlan-id=20 vlan-mode=secure
set 2 default-vlan-id=10 vlan-mode=secure
set 3 default-vlan-id=50 vlan-mode=secure
set 4 default-vlan-id=50 vlan-mode=secure
set 5 vlan-mode=secure
/interface bridge port
add bridge=bridge-ALL interface=wlan1
add bridge=bridge-ALL interface=ether1-WAN
add bridge=bridge-ALL interface=ether2-Mini-PC
add bridge=bridge-ALL interface=ether3-TV
add bridge=bridge-ALL interface=ether4-Guest1
add bridge=bridge-ALL interface=ether5-Guest2
/interface ethernet switch vlan
add independent-learning=yes ports=ether1-WAN,ether2-Mini-PC switch=switch1 vlan-id=20
add independent-learning=yes ports=ether1-WAN,ether4-Guest1,ether5-Guest2 switch=switch1 vlan-id=50
add independent-learning=yes ports=ether1-WAN,switch1-cpu switch=switch1 vlan-id=1 #removing this disconnect me from winbox
add independent-learning=yes ports=ether1-WAN,ether3-TV switch=switch1 vlan-id=10
add independent-learning=yes ports=ether1-WAN,switch1-cpu switch=switch1 vlan-id=70 #this is what it should be
i put 3 comments in the config above
when i'm trying to remove vlan 1, i keep getting disconnected from winbox, thanks to safe mode it always rollback
this router act as a switch, it is connected to a hap ac2, on the hap ac2 it is properly configured on vlan70 (dhcp server give a proper lease / ip on that vlan 70)
i'm connected from a device on the hap ac2 and on that router and vlan 1 doesnt exist on it