VLAN as a default gateway

Hello everybody,

I attached a picture with my network configuration.

My LAN network (wifi), with any hotspot, work ok with any default route without VLAN. Now i’m trying to configure one connection to a router cisco through VLAN.

I don’t get stablish connection with 192.168.20.1 (IP of cisco)


/ip address
add address=172.16.5.1/24 comment=“VLAN CLIENTES” disabled=no interface=
Vlan_Clientes network=172.16.5.0
add address=192.168.20.2/30 comment=“VLAN ACCESO” disabled=no interface=
Vlan_Acceso network=192.168.20.0

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.20.1 scope=
30 target-scope=10

/interface bridge
add admin-mac=00:00:00:00:00:00 ageing-time=5m arp=enabled auto-mac=yes
disabled=yes forward-delay=15s max-message-age=20s mtu=1500 name=
bridgeacceso priority=0x8000 protocol-mode=none transmit-hold-count=6

/interface vlan
add arp=enabled disabled=no interface=ehter2-CLIENTES l2mtu=1516 mtu=1500
name=Vlan_Clientes use-service-tag=no vlan-id=5
add arp=enabled disabled=no interface=ether1-INTERNET l2mtu=1516 mtu=1500
name=Vlan_Acceso use-service-tag=no vlan-id=20

/interface bridge port
add bridge=bridgeacceso disabled=yes edge=auto external-fdb=auto horizon=none
interface=ether1-INTERNET path-cost=10 point-to-point=auto priority=0x80
add bridge=bridgeacceso disabled=yes edge=auto external-fdb=auto horizon=none
interface=Vlan_Acceso path-cost=10 point-to-point=auto priority=0x80

Is it a good way? or is better with trunking configuration:
http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features

Help me! please.
network.JPG

The problem is just communications between Cisco and RB450G.

In the Cisco we have configurate VLAN 20, but I don’t know how tag the packets to the Cisco.

Please, tell me if I’m right about tag and untag traffic in Mikrotik:

Traffic go from R1 to R2:

  • R1: To tag it’s neccesary make a bridge with the vlan (create in wan or trunk port) and the port where come the traffic that we want tag. In the vlan create IP Adrress of vlan
  • R2: To untag only need create a vlan in reception trunk port. In the vlan create gateway adreessing.


    The problem in this case that the traffic that I want to go to the Cisco comes from other VLAN.

Can you help me? Thanks!

Marce

Did you get this figured out?

I have a similar setup but I have VLAN1, 10 , 20
The VLAN1 routes fine but the 10 and 20 I can’t seem to get routed correctly to the internet.

TM

No, I reconfigured all my network. I don’t know the solution, sorry!