Community discussions

MikroTik App
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

add vlan to port

Tue Feb 25, 2014 7:01 am

pulling hair, i must be stupid or something


i want untagged traffic to get a vlan id added to it once it enters a port how do i do this?

i want a pc to get an ip from an vlan interface running on the mikrotik.

maybe my googling is not good. this seems so basic not sure what i am doing wrong with my 2011
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: add vlan to port

Wed Feb 26, 2014 6:31 am

pulling hair, i must be stupid or something


i want untagged traffic to get a vlan id added to it once it enters a port how do i do this?

i want a pc to get an ip from an vlan interface running on the mikrotik.

maybe my googling is not good. this seems so basic not sure what i am doing wrong with my 2011

Here are examples:

http://wiki.mikrotik.com/wiki/Manual:Interface/VLAN

http://wiki.mikrotik.com/wiki/Vlans_on_ ... nvironment
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Wed Feb 26, 2014 4:46 pm

i read this,


how do i make it work, if i don't want it to physically leave another port?

i got it to work by having it leaving a physical port into another router

is there a way to pull this off inside the same router?
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Wed Feb 26, 2014 6:33 pm

What?

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Wed Feb 26, 2014 10:07 pm

What?

Sent from my SCH-I545 using Tapatalk

pretty simply i have a vlan dhcp server on another port on the router, i want a access port on the same router, to get a vlan tag so it can pull and ip from the vlan dhcp server on the other interface
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Wed Feb 26, 2014 11:44 pm

What?

Sent from my SCH-I545 using Tapatalk

pretty simply i have a vlan dhcp server on another port on the router, i want a access port on the same router, to get a vlan tag so it can pull and ip from the vlan dhcp server on the other interface

Ok... say VLAN 10 comes in tagged on port two and you want it to be accessible on port 3. Add the VLAN to port 2 and the bridge that with port 3. This isn't ideal performance wise and "may" be able to be done in the switch chip depending on the board you have.
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Thu Feb 27, 2014 4:29 pm

No,

the traffic is not tagged. the mikrotik needs to tag it
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 4:34 pm

What do you mean? The traffic from where isn't tagged?

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Thu Feb 27, 2014 4:38 pm

ok i will make it more basic

i have a computer plugged in on eth2. it does not have a vlan tag. i need the mikrotik to add one, so that the vlan dhcp server on eth3 will assign it an address from its vlan.
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 4:41 pm

That is exactly what I told you to do just swap the ports.

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Thu Feb 27, 2014 6:03 pm

doesn't work. i have already tried that. not to mention if i just bridge the vlan and eth2, dhcp server on vlan is showing invalid.
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 6:07 pm

Right because the server needs to be on the bridge. Not the vlan.

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Thu Feb 27, 2014 6:31 pm

i guess im getting confused

i have a vlan 45 under eth3, and i am plugged in on eth 2, neither are masters

that being said what are my bridge ports? eth2 and eth 3? or eth2 and the vlan?
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 6:35 pm

Explain exactly what you want on what port and post your export and I'll fix it when I get home.

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Thu Feb 27, 2014 10:32 pm

this is mostly proof of concept for a bigger design

i want to plug in on a port assign a vlan tag and get an ip from a vlan dhcp server.
/interface bridge
add admin-mac=D4:CA:6D:19:FF:EA arp=proxy-arp auto-mac=no l2mtu=1598 name=\
    LAN-Wireless-Bridge protocol-mode=rstp
add l2mtu=1598 name=bridge1

set [ find default-name=ether2 ] arp=proxy-arp mac-address=D4:CA:6D:19:FF:EA \
    name=GIG-Eth2-Slave
set [ find default-name=ether3 ] mac-address=D4:CA:6D:19:FF:EB name=\
    GIG-Eth3-Slave

interface vlan
add interface=GIG-Eth3-Slave l2mtu=1594 name=vlan1 vlan-id=45


add bridge=bridge1 disabled=yes interface=GIG-Eth3-Slave
add bridge=bridge1 interface=GIG-Eth2-Slave
add bridge=bridge1 interface=vlan1


actually this stupid. my export is worthless, it doesn't work give me the basic's i guess
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 10:53 pm

Do you want the traffic on the port tagged or untagged? Do you want a trunk? I'll workup an example in a bit

And where is the dhcp server?

Sent from my SCH-I545 using Tapatalk
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Thu Feb 27, 2014 11:54 pm

Also do your ports have a master port set?

Sent from my SCH-I545 using Tapatalk
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Fri Feb 28, 2014 1:00 am

we will use 2 ports eth 2 and eth 3. neither will be masters

port 2 will have the untagged devices. i need a example of a dhcp server on eth 3 that will allow vlan traffic on it
Last edited by littlebill on Fri Feb 28, 2014 1:11 am, edited 1 time in total.
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Fri Feb 28, 2014 1:06 am

we will use 3 port eth 2 and eth 3. neither will be masters

port 2 will have the untagged i need. i need a example of a dhcp server on eth 3 that will allow vlan traffic on it
What?...


Give me a list like...

Ether1 - Tagged VLAN 200, Tagged VLAN 201
Ether2 - Untagged VLAN 200
Ether3 - Untagged VLAN 201

DHCP on VLAN 200 10.0.0.0/24
DHCP on VLAN 201 10.0.1.0/24

Something like that...
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Fri Feb 28, 2014 1:16 am

we will use 3 port eth 2 and eth 3. neither will be masters

port 2 will have the untagged i need. i need a example of a dhcp server on eth 3 that will allow vlan traffic on it
What?...


Give me a list like...

Ether1 - Tagged VLAN 200, Tagged VLAN 201
Ether2 - Untagged VLAN 200
Ether3 - Untagged VLAN 201

DHCP on VLAN 200 10.0.0.0/24
DHCP on VLAN 201 10.0.1.0/24

Something like that...
sorry i realize that was a mess. give me a bit of time. im still working i will give you an example once i am clear headed
 
efaden
Forum Guru
Forum Guru
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: add vlan to port

Fri Feb 28, 2014 1:38 am

we will use 3 port eth 2 and eth 3. neither will be masters

port 2 will have the untagged i need. i need a example of a dhcp server on eth 3 that will allow vlan traffic on it
What?...


Give me a list like...

Ether1 - Tagged VLAN 200, Tagged VLAN 201
Ether2 - Untagged VLAN 200
Ether3 - Untagged VLAN 201

DHCP on VLAN 200 10.0.0.0/24
DHCP on VLAN 201 10.0.1.0/24

Something like that...
sorry i realize that was a mess. give me a bit of time. im still working i will give you an example once i am clear headed

Ok. If you can tell me what you want clearly I can help you do the config. I just need to understand what you want.
 
sasskass
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Wed Mar 15, 2006 4:39 pm

Re: add vlan to port

Fri Feb 28, 2014 1:47 am

Hello,

Untagged traffice > eth2 > eth3 tagged vlan3 out, so:

Make vlan3 to eth3 interface
Make bridge
Put eth2 and vla3 into the bridge

You get tagged traffice out of the physical eth3

Set DHCP server running on bridge


Aleksander
 
littlebill
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Sat Apr 30, 2011 3:11 am

Re: add vlan to port

Fri Feb 28, 2014 11:28 pm

i have this working

thank you everyone

Who is online

Users browsing this forum: complexxL9, qatar2022, vikashdh and 71 guests