Hello,
I’m attempting to use VLANs on a small network. I’ve not much experience with layer 2 (VLAN / physical).
This is the third or fourth time I’ve had to disconnect my router (RouterBoard 493), take apart the chassis, reset it, and put it back together. Is frustrating. I keep locking myself out with the “set bridge vlan-filtering=yes.”
Here is a brief overview of what I am trying to accomplish:
Router admin access available only on management VLAN
VLAN Port Setup:
Trunk ports:
3: Powerline: for connecting upstairs; will have multiple VLANs (which ultimately will be fed into wireless)
4: Downstairs AP: Wireless will support multiple SSIDs with individual VLANs
Access Ports:
Printer
WAN?
Win7 desktop
5: Raspberry Pi (might eventually switch to trunk port, depends on what it will be used to do)
VLANs (IP prefix 192.168):
ID: 97, IP: 57, Management (isolated, internet only)
ID: 10, IP: 40, Efeed (entertainment, streaming; internet only, isolated; video file server)
ID: 12, IP: 41, Guest
ID: 11, IP: 42, Work (printer access, otherwise isolated; home devices might join here)
ID: 14, IP: 43, Phones (copy Efeed; only difference that might come up is bandwidth assignment)
ID: 15, IP: 44, Office (printer; win 7 computer, document file server)
ID: 13, IP: 45, Workspace (printer access, network experimentation, terminal server, d’s laptop, etc)
From a near default starting point, I run these commands in the SSH terminal:
Bridge VLAN Filtering, CPU only (Switch Chip on RouterBoard 493 does not support VLAN port switching)
/interface bridge
add name=bridge1
/interface bridge port
Trunk ports?
add bridge=bridge1 interface=ether3 hw=no
add bridge=bridge1 interface=ether4 hw=no
Access Ports
Raspberri pi in Workspace VLAN (ID=13)
add bridge=bridge1 interface=ether5 hw=no pvid=13
Management Access: Management VLAN (ID=97)
add bridge=bridge1 interface=ether2 hw=no pvid=97
\
VLAN to Port table mapping?
/interface bridge vlan
Trunk Port (Looks like it isn’t possible to do things this way)
Why does the bridge need to be added to trunk ports as a tagged interface?
#add bridge=bridge1 tagged=bridge1,ether3,ether4 vlan-ids=10,11,12,13,14,15,97
Access Port: workspace VLAN (ID: 13), port 5 (Raspberri pi)
add bridge=bridge1 tagged=ether3,ether4 untagged=ether5 vlan-id=13
Access Port: Management VLAN (ID: 97), port 2 (As of 12/4/19, Win 7 pc)
add bridge=bridge1 tagged=ether3,ether4 untagged=ether2 vlan-id=97
/interface vlan
add interface=bridge1 vlan-id=10 name=Efeed
add interface=bridge1 vlan-id=11 name=Work
add interface=bridge1 vlan-id=12 name=Guest
add interface=bridge1 vlan-id=13 name=Workspace
add interface=bridge1 vlan-id=14 name=Phones
add interface=bridge1 vlan-id=15 name=Office
add interface=bridge1 vlan-id=97 name=Management
/ip address
add address=192.168.57.1/24 interface=Management
add address=192.168.40.1/24 interface=Efeed
add address=192.168.41.1/24 interface=Guest
add address=192.168.42.1/24 interface=Work
add address=192.168.43.1/24 interface=Phones
add address=192.168.44.1/24 interface=Office
add address=192.168.45.1/24 interface=Workspace
/ip pool
add name=Management ranges=192.168.57.20-192.168.57.100
add name=Efeed ranges=192.168.40.20-192.168.40.100
add name=Guest ranges=192.168.41.20-192.168.41.100
add name=Work ranges=192.168.42.20-192.168.42.100
add name=Phones ranges=192.168.43.20-192.168.43.100
add name=Office ranges=192.168.44.20-192.168.44.100
add name=Workspace ranges=192.168.45.20-192.168.45.100
/ip dhcp-server
add address-pool=Management interface=Management name=Management_DHCP disabled=no
add address-pool=Efeed interface=Efeed name=Efeed_DHCP disabled=no
add address-pool=Guest interface=Guest name=Guest_DHCP disabled=no
add address-pool=Work interface=Work name=Work_DHCP disabled=no
add address-pool=Phones interface=Phones name=Phones_DHCP disabled=no
add address-pool=Office interface=Office name=Office_DHCP disabled=no
add address-pool=Workspace interface=Workspace name=Workspace_DHCP disabled=no
/interface bridge set bridge1 vlan-filtering=yes
This is the best run yet.
Device connected at port five can see STP packets, as well as UDP port 5678 LLDP packets which show that some of the IP addresses have been properly set (192.168.45.1 and 192.168.57.1).
Device connected on port 2 and set to DHCP does not get IP address (neither does device at port 5), but unlike prior attempts, the DHCP packets from port 2 are not seen on port 5 device (good; this means that either VLAN separation might be partly working, or there’s some other problem).
Any input would be appreciated. I’ve spent a lot of time on this and feel not much headway has been made.