Community discussions

MikroTik App
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

give VLAN Internet Access

Sat Feb 09, 2008 3:17 pm

Hi, here is my problem, I have set


[admin@SERVER] /interface> print
Flags: X - disabled, R - running, D - dynamic, S - slave
# NAME TYPE MTU
0 R Local ether 1500
1 R lan2 ether 1500
2 R Public ether 1500
3 R vlan1 vlan 1500
4 R vlan2 vlan 1500
5 R vlan3 vlan 1500
[admin@SERVER] /interface>


[admin@SERVER] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.254/24 192.168.0.0 192.168.0.255 Local
1 xxx.xxx.234.11/24 xxx.xxx.234.0 xxx.xxx.234.255 Public
2 192.168.0.1/24 192.168.0.0 192.168.0.255 Local
3 192.168.10.254/24 192.168.10.0 192.168.10.255 vlan1
4 192.168.20.254/24 192.168.20.0 192.168.20.255 vlan2
5 192.168.30.254/24 192.168.30.0 192.168.30.255 vlan3
[admin@SERVER] /ip address>

[admin@SERVER] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 r xxx.xxx.234.1 1 Public
1 ADC 192.168.0.0/24 192.168.0.254 0 Local
2 ADC 192.168.10.0/24 192.168.10.254 0 vlan1
3 ADC 192.168.20.0/24 192.168.20.254 0 vlan2
4 ADC 192.168.30.0/24 192.168.30.254 0 vlan3
5 ADC xxx.xxx.234.0/24 xxx.xxx.234.11 0 Public
[admin@SERVER] >


I have a computer set as 192.168.10.1 ip, dns 192.168.10.254, gateway 192.168.10.254 and mask 255.255.255.0

I cant get internet access from any vlan to internet, I already tried making a bridge from vlan1 to public interface but it doesnt worked. What am I missing?

Thank you anyone who reads this.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: give VLAN Internet Access

Sun Feb 10, 2008 2:13 am

hm... what hardware do you use to tag VLANs?
 
User avatar
gmsmstr
Trainer
Trainer
Posts: 983
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: give VLAN Internet Access

Sun Feb 10, 2008 2:19 am

I don't see a MASQ rule for the subnet in question.
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

Re: give VLAN Internet Access

Mon Feb 11, 2008 1:23 am

[admin@SERVER] /ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade out-interface=Public
[admin@SERVER] /ip firewall nat>


what do you mean by TAG vlans?

this masquerade works well with my Local interface and all the ips in there.

my vlan was created by mt with Local ether as main interface, Is the nat ok? it should nat all ether interfaces including vlan or not?

Thank you for answering.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: give VLAN Internet Access

Mon Feb 11, 2008 2:55 am

VLAN is separate interface, and all rules regarding it's ethernet interface do not affect VLAN itself, so add masquerade rule for VLAN
what do you mean by TAG vlans?
I mean, there could be error in configuring VLANs on your switch. do you ping MT from your workstations?
Last edited by Chupaka on Mon Feb 11, 2008 3:01 am, edited 1 time in total.
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

Re: give VLAN Internet Access

Mon Feb 11, 2008 12:14 pm

hello, the masquerade rule doesnt specify the In Interface as Ether1 or in my case Local, but it has Public as Out Interface so shouldnt thist rule apply to all IN interfaces?

about the pinging, I can ping the vlans from the mt server but not from the workstations, as if there were no routes or something, but as you can see in the first post there is a route for every vlan.
Maybe the masquerade is ok and this thing that cant allow me to reach the server from workstations its the problem.

Local and Public interfaces are bridge by switch (linksys sr224), should I need to bridge Local and Vlan interfaces for Internet to work? the thing is that if I do that the vlan interfaces could see each other and the Local Interface. I want all of them to be apart to segment my lan.

Thank you all for your time.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: give VLAN Internet Access

Mon Feb 11, 2008 4:05 pm

Linksys SR224 doesn't support VLANs
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

Re: give VLAN Internet Access

Mon Feb 11, 2008 4:38 pm

ooh, sorry for make you waste your time then, thank you so much for your support Chupaka.

topic closed =(

Who is online

Users browsing this forum: bonamin, cyrq, Rox169, TomSvitana and 65 guests