interface ethernet switch vlan add ports=eth02-master,switch1-cpu switch=switch1 vlan-id=200 independent-learning=no interface ethernet switch vlan add ports=eth02-master,eth03,eth04,eth05,switch1-cpu switch=switch1 vlan-id=100 independent-learning=no interface vlan add interface=bridge name=vlan-int-100 vlan-id=100 interface vlan add interface=bridge name=vlan-guest-200 vlan-id=200 interface bridge port add bridge=bridge interface=eth06-master interface bridge port add bridge=bridge comment=defconf interface=eth02-master # the master ports are probably already member of that bridge interface bridge add comment=defconf name=bridge (In theory) You could define the vlans on the master-port interface directly and skip adding a bridge. I think you could even solve this without a bridge, since your device only has a single switch chip. eth3-5 are slave to eth2, eth7-10 are slave to eth6.The device here has two switch chips, with 5 ports each.Since all ports are in a master-slave configuration and the switch knows which vlan is on which port, the CPU does not have to be involved when routing traffic. don't forget to add "switch cpu" to your switch vlan configuration. if you have wifi stations on that device, create a bridge for the vlan, add the vlan and your wifi to it.for access ports: vlan mode to anything but disabled, header to "always strip" and default vlanid to the vlan you want.for trunk ports: set vlan mode to anything but disabled, header to "add if missing", default vlanid 1. Configure the ports on the switch port configuration:.define the vlan IDs on the switch (and of course, select the ports where you need the vlans).create the vlans you need on that bridge and define addresses.Just take the default Home-AP setup, where ports 3-5 are slave to eth2 and there is (probably) a bridge, where eth2 is member of (and therefore 3-5 too).Your device has a switch chip, which is way faster thant the CPU. Funnily, the simplest solution worked for me. I struggled with a similar setup on a RB2011U too and tried many different tutorials. The moment when I add bridge-trunk-vlan100 interface to the bridge-vlan100 bridge, the traffic that is passing through bridge-trunk is dropped and new connections cannot be established. The device is Cloud Router Switch CRS125-24G-1S. I wanted to apply this solution on the real device and it did not worked. Previous situation was done in a experimental environment on separate RouterBOARD. I added the filter rule for the bridges /interface bridge filter add chain=forward mac-protocol=vlan vlan-id=100 action=acceptĪlso, I could run all VLAN traffic through IP Firewall with similar rule. I found a way but I do not know if it is right way by the RouterOS methodology. I would be grateful if you can provide with hints, tutorials or books to read more about a bridging and VLANs. Trunk ports are working properly.Ĭorrect me if I'm wrong, if I introduce the router configured this way into existing network, APR tables must refresh itself on other network devices because bridge have it's own MAC address. When I do these steps and connect my laptop to the ether3, any type of network connection to other network devices is not working. interface bridge port add interface="ether3" bridge="bridge-vlan100" disabled=no interface bridge port add interface="bridge-trunk-vlan100" bridge="bridge-vlan100" disabled=no interface bridge add name=bridge-vlan100 disabled=no interface vlan add name="bridge-trunk-vlan100" vlan-id=100 interface=bridge-trunk disabled=no interface bridge port add interface="ether4" bridge="bridge-trunk" disabled=no interface bridge port add interface="ether3" bridge="bridge-trunk" disabled=no interface bridge add name=bridge-trunk disabled=no interface ethernet set ether5 master-port=none interface ethernet set ether4 master-port=none interface ethernet set ether3 master-port=none Steps #Removing parts of default configuration ether3 (on the picture same as SW3 eth1) is access port for vlan 100.ether4 (on the picture same as SW3 eth3) and ether5 (on the picture same as SW3 eth4) are trunk ports.The router have default configuration and I'm trying to configure next: So, here are the steps that I used for configuration. I'm missing something in the configuration. I was trying to find similar problem on the Internet but with no luck. I tried to configure the router as it is described on the wiki page and the access port is not working correctly. I'm trying to configure the router same way as SW3 on the picture. I have RouteBOARD RB951G-2HnD, RouterOS 6.34.2 and I am trying to achive a network configuration something like what is depict on the next picture.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |