Community discussions

MikroTik App
 
megamuz
newbie
Topic Author
Posts: 30
Joined: Mon May 19, 2014 2:23 pm
Location: Russia

VLAN on RB1100AHx2 not work!!

Tue Dec 15, 2015 10:20 am

hi, my config:
Code: Select all

/interface vlan
add interface=LAN-bridge l2mtu=1594 name=vlan15 vlan-id=15
add interface=ISP_loopback l2mtu=65531 name=vlan21 vlan-id=21

/ip pool
add name=VPN-DHCP ranges=192.168.70.30-192.168.70.50
add name=PPTP ranges=192.168.71.40-192.168.71.79
add name=VLAN-POOL ranges=192.168.211.10-192.168.211.20
/ip dhcp-server
add add-arp=yes address-pool=VLAN-POOL always-broadcast=yes disabled=no interface=vlan15 lease-time=1w name=server1

/interface bridge
add name=EoIP-bridge
add name=ISP_loopback
add name=LAN-bridge
add name=WAN-bridge

/interface bridge port
add bridge=LAN-bridge interface=ether3
add bridge=LAN-bridge interface=ether6
add bridge=EoIP-bridge interface=EoIP-ID1_SKH-MSK
add bridge=EoIP-bridge interface=EoIP-ID3_MSK-CPK
add bridge=EoIP-bridge interface=EoIP-ID4_MSK-YML
add bridge=EoIP-bridge interface=EoIP-ID215_megamuz-MSK
add bridge=WAN-bridge interface=ether2-ISP-reserve
add bridge=WAN-bridge interface=ether1-GW-TTK
add bridge=LAN-bridge interface=ether4
add bridge=LAN-bridge interface=ether5
add bridge=LAN-bridge interface=ether7
add bridge=LAN-bridge interface=ether8
add bridge=LAN-bridge interface=ether9
add bridge=LAN-bridge interface=ether10
add bridge=LAN-bridge interface=vlan21


i configure Hyper-V network on VLAN ID=15 (my PC = ether5 ) is not work (
and my home 951ui router it's ok.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: VLAN on RB1100AHx2 not work!!

Tue Dec 15, 2015 11:16 am

Do you have any ip address assigned to LAN-bridge?
 
megamuz
newbie
Topic Author
Posts: 30
Joined: Mon May 19, 2014 2:23 pm
Location: Russia

Re: VLAN on RB1100AHx2 not work!!

Tue Dec 15, 2015 11:56 am

Do you have any ip address assigned to LAN-bridge?
/ip address
add address=192.168.70.254/24 interface=LAN-bridge network=192.168.70.0
add address=10.1.XX.XX/24 interface=EoIP-bridge network=10.1.XX.XX
add address=217.150.XX.XX/29 interface=WAN-bridge network=217.150.XX.XX
add address=62.33.XX.XX/29 interface=ISP_loopback network=62.33.XX.XX
add address=192.168.211.1/24 interface=vlan15 network=192.168.211.0
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: VLAN on RB1100AHx2 not work!!

Tue Dec 15, 2015 5:35 pm

What it isn't working? you aren't getting an ip by DHCP on your PC?

Can you post /ip dhcp-server network?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: VLAN on RB1100AHx2 not work!!

Tue Dec 15, 2015 7:18 pm

Your configuration will place vlan15 as a tagged VLAN on every physical interface attached to the LAN bridge, which is what I assume you intended.
(the vlan21 configuration looks strange to me)

If you've properly configured Hyper-V to participate in tagged vlan 15 on your host's physical ethernet port, then the problem is likely your ethernet driver on the host PC.

Usually, the PC's ethernet driver will strip 802.11q vlan headers. Some drivers give you an option under the advanced configuration for leaving the headers in place. Some require registry edits. (mine was the latter)

https://communities.intel.com/thread/83 ... 0&tstart=0

You can tell if this is your problem by using the Mikrotik's sniffer tool.
Configure it to capture interface ether5 - capture all frames, and capture to a local file on the Mikrotik (e.g. vlan_test.cap)

Start the capture.

While the sniffer is running, try to ping 192.168.211.2 from the Mikrotik. It doesn't matter if it works or not, or if there's even a .2 on vlan15 or not - just let it send a few failed pings, and then stop the capture.

Download the capture file and open it in Wireshark, and look for the ARP requests where the Mikrotik is trying to ARP for 192.168.211.2 (tell 192.168.211.1).....

When you find one of these, click it in the packet list, and the packet decoding window should show all of the various layers of encapsulation. If you see one that says 802.1q (it should come between Ethernet II, and Internet Protocol Version 4)
If Ethernet II and IP are adjacent, then the Mikrotik isn't sending tagged frames. If it is, then the PC is stripping the tags.