Community discussions

MikroTik App
 
mrjoli021
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue May 28, 2013 6:16 pm

vlan and trunking

Wed Dec 25, 2013 4:52 pm

I am trying to configure several vlans and trunking them to two separate devices. One is a WAP which is on ether10 and the other is a an ESXi box on ports 1-3. not sure what I am doing wrong but I cant seem to get the trunks to work correctly.
[admin@MikroTik] > export compact 
# jan/25/1970 14:34:25 by RouterOS 5.14
# software id = FP7P-M89C
#
/interface bridge
add name=bridge-phones
add name=bridge-san
add l2mtu=1598 name=bridge-network
add name=bridge-workstations
add name=bridge-lab
add l2mtu=1598 name=bridge-public
add name=bridge-misc
/interface vlan
add interface=bridge-phones l2mtu=65531 name=vlan-10-phones vlan-id=10
add interface=bridge-san l2mtu=65531 name=vlan-20-san vlan-id=20
add interface=bridge-network l2mtu=1594 name=vlan-21-network vlan-id=21
add interface=bridge-workstations l2mtu=65531 name=vlan-30-workstations vlan-id=30
add interface=bridge-lab l2mtu=65531 name=vlan-40-lab vlan-id=40
add interface=bridge-public l2mtu=1594 name=vlan-50-public vlan-id=50
add interface=bridge-misc l2mtu=65531 name=vlan-60-misc vlan-id=60
/interface bridge port
add bridge=bridge-network interface=ether1
add bridge=bridge-network interface=ether2
add bridge=bridge-network interface=ether3
add bridge=bridge-network interface=ether4
add bridge=bridge-network interface=ether5
add bridge=bridge-network interface=ether6
add bridge=bridge-public interface=ether7
add bridge=bridge-public interface=ether8
add bridge=bridge-network interface=ether9
add bridge=bridge-network interface=ether10
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=ether1
add address=10.105.10.254/24 interface=bridge-phones
add address=10.105.20.254/24 interface=bridge-san
add address=10.105.21.251/24 interface=bridge-network
add address=10.105.30.254/24 interface=bridge-workstations
add address=10.105.40.254/24 interface=bridge-lab
add address=10.105.50.254/24 interface=bridge-public
add address=10.105.60.254/24 interface=bridge-misc
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/system health
set use-fan=auxiliary
[admin@MikroTik] >  
Thanks
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: vlan and trunking

Wed Dec 25, 2013 7:47 pm

I am trying to configure several vlans and trunking them to two separate devices. One is a WAP which is on ether10 and the other is a an ESXi box on ports 1-3. not sure what I am doing wrong but I cant seem to get the trunks to work correctly.
[admin@MikroTik] > export compact 
# jan/25/1970 14:34:25 by RouterOS 5.14
# software id = FP7P-M89C
#
/interface bridge
add name=bridge-phones
add name=bridge-san
add l2mtu=1598 name=bridge-network
add name=bridge-workstations
add name=bridge-lab
add l2mtu=1598 name=bridge-public
add name=bridge-misc
/interface vlan
add interface=bridge-phones l2mtu=65531 name=vlan-10-phones vlan-id=10
add interface=bridge-san l2mtu=65531 name=vlan-20-san vlan-id=20
add interface=bridge-network l2mtu=1594 name=vlan-21-network vlan-id=21
add interface=bridge-workstations l2mtu=65531 name=vlan-30-workstations vlan-id=30
add interface=bridge-lab l2mtu=65531 name=vlan-40-lab vlan-id=40
add interface=bridge-public l2mtu=1594 name=vlan-50-public vlan-id=50
add interface=bridge-misc l2mtu=65531 name=vlan-60-misc vlan-id=60
/interface bridge port
add bridge=bridge-network interface=ether1
add bridge=bridge-network interface=ether2
add bridge=bridge-network interface=ether3
add bridge=bridge-network interface=ether4
add bridge=bridge-network interface=ether5
add bridge=bridge-network interface=ether6
add bridge=bridge-public interface=ether7
add bridge=bridge-public interface=ether8
add bridge=bridge-network interface=ether9
add bridge=bridge-network interface=ether10
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=ether1
add address=10.105.10.254/24 interface=bridge-phones
add address=10.105.20.254/24 interface=bridge-san
add address=10.105.21.251/24 interface=bridge-network
add address=10.105.30.254/24 interface=bridge-workstations
add address=10.105.40.254/24 interface=bridge-lab
add address=10.105.50.254/24 interface=bridge-public
add address=10.105.60.254/24 interface=bridge-misc
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/system health
set use-fan=auxiliary
[admin@MikroTik] >  
Thanks
You may want to read up on how to configure VLANs on MikroTik.....

http://wiki.mikrotik.com/wiki/Manual:Interface/VLAN
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: vlan and trunking

Thu Dec 26, 2013 12:16 pm

The config shown would have VLAN 21 tagged on ports 1-6 & 9-10.
VLAN 50 would be tagged on ports 7 & 8.

What is actually required is unclear.

Who is online

Users browsing this forum: patrikg and 19 guests