add vlan to port

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_Mikrotik_environment

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?

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.

No,

the traffic is not tagged. the mikrotik needs to tag it

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

Sent from my SCH-I545 using Tapatalk

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.

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

Sent from my SCH-I545 using Tapatalk

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.

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

Sent from my SCH-I545 using Tapatalk

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?

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

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

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

Also do your ports have a master port set?

Sent from my SCH-I545 using Tapatalk

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

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