Hi guys,
I’m having some troubles with VLANs
I’m trying to setup a Bridge with ether2, ether3, ether4, ether5 and ether6 as members. I want to create VLAN 20 on the bridge.
I want that every device that connect to one of the ports mentioned above can access to Bridge network and VLANs networks.
Now, I connect my computer to the ether2 port. In my computer, I assigned VLAN ID 20 to my network adapter. It doesn’t work. I probably missed a configuration.
Setting PVID to 20 on ether2 was working along with adding bridge1 as tagged and ether2 untagged. But, I want that external device can tag themselves instead of the port directly.
There is my configuration
/interface bridge
add ingress-filtering=no name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no
set [ find default-name=ether2 ] disable-running-check=no
set [ find default-name=ether3 ] disable-running-check=no
set [ find default-name=ether4 ] disable-running-check=no
set [ find default-name=ether5 ] disable-running-check=no
set [ find default-name=ether6 ] disable-running-check=no
/interface vlan
add interface=bridge1 name=VLAN20 vlan-id=20
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool4 ranges=10.0.20.2-10.0.20.254
add name=dhcp_pool5 ranges=10.0.1.2-10.0.1.254
/ip dhcp-server
add address-pool=dhcp_pool4 interface=VLAN20 name=dhcp1
add address-pool=dhcp_pool5 interface=bridge1 name=dhcp2
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=ether6
add bridge=bridge1 interface=ether2
/ip address
add address=10.0.20.1/24 interface=VLAN20 network=10.0.20.0
add address=10.0.1.1/24 interface=bridge1 network=10.0.1.0
/ip cloud
set update-time=no
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=10.0.1.0/24 gateway=10.0.1.1
add address=10.0.20.0/24 gateway=10.0.20.1
Thanks!