Cisco + Mikrotik VLAN

Um pequeno guia para configurar a VLAN em dispositivos Mikrotik e switch Cisco

Cisco

default interface Fa0/10
conf t
int fa0/10
switchport mode trunk
switchport trunk allowed vlan all

Mikrotik

Ajustando o relógio:

/system clock
set time-zone-name=America/Sao_Paulo

Configuração de IP/DNS e rotas:

/ip address
add address=192.168.0.250/24 interface=ether1 network=192.168.0.0
/ip dns
set servers=192.168.0.165,192.168.5.175
/ip route
add distance=1 gateway=192.168.0.254

Configurando a Vlan:

/interface vlan
add interface=ether1 name=vlan3 vlan-id=3

Configurando a Bridge:

/interface bridge
add name=bridge-vlan3

/interface bridge port
add bridge=bridge-vlan3 interface=vlan3
add bridge=bridge-vlan3 interface=ether3

Nat:

/ip firewall nat
add action=masquerade chain=srcnat src-address=192.168.0.0/16