Mikrotik RB2011U vlanning

我无法在Mikrotik RB2011U上使用基于端口的vlanning / trunking工作。 我一直在遵循这里的指南: http ://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features#Example_-_802.1Q_Trunking_with_Atheros_switch_chip_in_RouterOS_v6 Wiki顶部的function表表明,该设备应该能够802.1q vlanning 。

除了我已经提供了我自己的接口名称和vlan id号之外,我已经逐字地跟踪了wiki。 当我插入一个主机到eth3并分配一个静态IP为10.10.10.4时,我无法ping通10.10.10.5(RB2011U); 然而插入第二个主机到eth4并分配一个静态IP为10.10.10.6,我能够从10.10.10.6 ping 10.10.10.4,反之亦然。 在10.10.10.4和10.10.10.6端,我可以看到,当我尝试ping 10.10.10.5时,我收到来自RB2011U的ARP应答。

第二个问题是我的中继端口似乎没有正常工作。 它连接到一个Mikrotik CRS125,我已经确认工作正常。 在这种情况下,从CRS125(10.10.10.2)和副virsa ping RB2011U(10.10.10.5)也不起作用,但是ARP似乎没有被中继。

在寻找答案时,我看到很多其他人在使用网桥而不是使用交换机configuration。 而且我确实设法使得configuration工作减去中继端口; 但是我configuration了我的CRS125在交换机configuration中做vlan标记,为了一致性,我宁愿让RB2011U做同样的事情。

编辑:(请求configuration信息)

/interface ethernet set [ find default-name=ether1 ] name=eth1 set [ find default-name=ether2 ] name=eth2 set [ find default-name=ether3 ] master-port=eth2 name=eth3 set [ find default-name=ether4 ] master-port=eth2 name=eth4 set [ find default-name=ether5 ] master-port=eth2 name=eth5 set [ find default-name=ether6 ] name=eth6 set [ find default-name=ether7 ] master-port=eth6 name=eth7 set [ find default-name=ether8 ] master-port=eth6 name=eth8 set [ find default-name=ether9 ] master-port=eth6 name=eth9 set [ find default-name=ether10 ] master-port=eth6 name=eth10 /interface ethernet switch port set 2 vlan-header=add-if-missing vlan-mode=secure set 3 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure set 4 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure set 5 default-vlan-id=0 vlan-header=always-strip vlan-mode=secure set 11 vlan-mode=secure /interface ethernet switch vlan add independent-learning=yes ports=eth2,eth3,eth4,switch1-cpu switch=switch1 vlan-id=1 add independent-learning=yes ports=eth2 switch=switch1 vlan-id=3 add independent-learning=yes ports=eth2 switch=switch1 vlan-id=4 add independent-learning=yes ports=eth2 switch=switch1 vlan-id=5 /interface vlan add interface=eth2 l2mtu=1594 name=vlan1 vlan-id=1 add interface=eth2 l2mtu=1594 name=vlan3 vlan-id=3 add interface=eth2 l2mtu=1594 name=vlan4 vlan-id=4 add interface=eth2 l2mtu=1594 name=vlan5 vlan-id=5 /ip address add address=10.10.10.5/24 interface=vlan1 network=10.10.10.0 add address=10.30.10.5/24 interface=vlan3 network=10.30.10.0 add address=10.40.10.5/24 interface=vlan4 network=10.40.10.0 add address=10.50.10.5/24 interface=vlan5 network=10.50.10.0 

好吧,我设法得到了一个备用的RB来尝试这种configuration。

事实certificate,我没有仔细阅读文档。 它表示,只能从中继端口访问路由器本身(如在pipe理访问中)。

http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features#Management_IP_Configuration

pipe理IPconfiguration

此示例将显示可能的pipe理IP地址configuration之一。 pipe理IP只能通过中继端口访问 ,并且会有一个ID为99的单独VLAN。

我继续build立一个testingnetworking,我能够ping通干线端口上的RB,但不能在任何接入端口上。

另外,我注意到你已经设置了这样的trunk端口:

 /interface ethernet switch port set 2 vlan-header=add-if-missing vlan-mode=secure 

这意味着数字2eth3 ,这将是中继端口,而不是eth2因为数字从0开始。

这里是我的testingRB的一个输出示例。

 [admin@MikroTik] > /interface ethernet switch port print Flags: I - invalid # NAME SWITCH VLAN-MODE VLAN-HEADER DEFAULT-VLAN-ID 0 ether1 switch1 disabled leave-as-is auto 1 ether2 switch1 secure add-if-missing auto 2 ether3 switch1 secure always-strip 1 3 ether4 switch1 secure always-strip 1 4 ether5 switch1 secure always-strip 1 5 switch1-cpu switch1 secure leave-as-is auto 

正如你所看到的,数字2ether3 。 我不知道这是否与您的第二个问题无法从CRS ping通路由器相关。