Ok, putting this under beginner because I never worked with VLAN's on Mikrotik at this level.
Moving a Mikrotik 5009 into the core of my little lab. JUST good enough, and a 10g port that goes into the 10g switch. The others are good enough for an uplink to the office (ether1) and management hardware interfaces. The OS on the machines is using their own separate cards that end up in the mentioned 10g switch using VLAN's.
I so far run that essentially as uncnofigured ethernet switch with the bridge having VLAN interfaces for various VLAN and tagged and untagged traffic going in and out - all goes well, EXCEPT... I now want to isolate ether1. This is part of a security setup - not "security" as breakin, just making sure it is a TAD harder for me to just log into a machine. Also, because I want to use DHCP internally for machine management, and this not use the office ip addresses, I need to separate the ethernet broadcast domain ![]()
The idea is to use VLAN ID 4000 for "office traffic". untagged traffic on ether1 is supposed to get managed to this VLAN id. tagged traffic can be handled normally (filtering is not required). I still want to use ether1 also as trunk so that in case I need to work on some machine,I can use another mikrotik on my desk to give me tags on a port. Small setup, nothing special, just a glorified home lab.
Using WInbox...
I have:
- Created a VLAN with id 4000 and attached it to the bridge (in the interface list) so it is under the bridge together with some other vlan entries.
- On the Bridge window in Ports set the PVID on ether 1 to 4000. No ingress filtering. Frane Types; allow all.
- Same bridge window, VLAN#s, created an entry VLAN ID 4000, for the bridge, untagged: ether 1.
To my understanding the PVID setting on the port handles ingress, adding a 4000 tag header to incoming untagged traffic.
The bridge entry VLAN handles outgoing traffic, in this case making sure VLAN 4000 traffic through ether1 is leaving untagged.
This should make sure all packets in get tagged, all out get untagged (for vlan 4000) and the internal processing works based on that. Good.
It just does not work. I am using MAC address connectivity to the machine, so my winbox is not connected via IP - but I open a nice litle command window on my workstation and run a continuous ping to the router IP Address. If I take the IP Addresss and move it from the bridge to the vlan interface - the router stops responding to the ping and ip does not work. If i move it back from the VLAN interface to the bridge itself, or attach the IP address to ether1, it works.
Did I do anything wrong setting this up?
Here are printouts of the current configuration:
[Administrator@hub-router] /interface/vlan> print detail
Flags: X - disabled, R - running
1 R ;;; Link for ether1 uplink
name="vlan-4000" mtu=1500 l2mtu=1510 mac-address=DC:2C:6E:3E:E3:56 arp=enabled arp-timeout=auto
loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=4000 interface=bridge use-service-tag=no
[Administrator@hub-router] /interface/bridge/port> print
Flags: I - INACTIVE; H - HW-OFFLOAD
Columns: INTERFACE, BRIDGE, HW, PVID, PRIORITY, PATH-COST, INTERNAL-PATH-COST, HORIZON
INTERFACE BRIDGE HW PVID PRIORITY PATH-COST INTERNAL-PATH-COST HORIZON
;;; defconf
0 IH ether2 bridge yes 1 0x80 10 10 none
;;; defconf
1 IH ether3 bridge yes 1 0x80 10 10 none
;;; defconf
2 IH ether4 bridge yes 1 0x80 10 10 none
;;; defconf
3 H ether5 bridge yes 1 0x80 10 10 none
;;; defconf
4 H ether6 bridge yes 1 0x80 10 10 none
;;; defconf
5 H ether7 bridge yes 1 0x80 10 10 none
;;; defconf
6 H ether8 bridge yes 1 0x80 10 10 none
;;; Hub: Trunk
7 H sfp-sfpplus1 bridge yes 1 0x80 10 10 none
;;; Uplink
8 H ether1 bridge yes 4000 0x80 10 10 none
[Administrator@hub-router] /interface/bridge/vlan> print detail
Flags: X - disabled, D - dynamic
0 bridge=bridge vlan-ids=4000 tagged="" untagged=ether1 current-tagged="" current-untagged=""