Community discussions

MikroTik App
 
Marce
just joined
Topic Author
Posts: 11
Joined: Tue Mar 01, 2011 5:07 pm

VLAN as a default gateway

Tue Aug 28, 2012 4:49 pm

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:Sw ... p_Features

Help me! please.
You do not have the required permissions to view the files attached to this post.
 
Marce
just joined
Topic Author
Posts: 11
Joined: Tue Mar 01, 2011 5:07 pm

Re: VLAN as a default gateway

Tue Sep 11, 2012 3:21 pm

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
 
tmm72
just joined
Posts: 21
Joined: Thu Dec 20, 2012 7:05 pm

Re: VLAN as a default gateway

Tue Jan 29, 2013 1:11 am

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
 
Marce
just joined
Topic Author
Posts: 11
Joined: Tue Mar 01, 2011 5:07 pm

Re: VLAN as a default gateway

Wed Apr 10, 2013 7:20 pm

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

Who is online

Users browsing this forum: No registered users and 54 guests