Community discussions

MikroTik App
 
douellet
just joined
Topic Author
Posts: 3
Joined: Fri Mar 30, 2012 5:18 pm

Basic vlan on switchchip question

Thu Apr 05, 2012 12:22 am

Hello,

I'm new to Mikrotik... I have a RB1200 in lab to play with. I'm trying to setup what could become an ethernet demark using the switchip features.

I'm stuck right at the beginning tryning to do a simple vlan task: Getting vlan 100 tagged (trunk) on port ether1 to port ether3 untagged (access).

Here's some stripped print commands:

[admin@MikroTik] /interface ethernet switch> /int eth print

Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH
7 RS ether3 1500 00:0C:42:C0:AA:5D enabled ether1 switch1
9 R ether1 1500 00:0C:42:C0:AA:5F enabled none switch1

[admin@MikroTik] /interface ethernet switch>
[admin@MikroTik] /interface ethernet switch> vlan print det

Flags: X - disabled, I - invalid
0 switch=switch1 vlan-id=100 ports=ether1
1 switch=switch1 vlan-id=0 ports=ether3

[admin@MikroTik] /interface ethernet switch>
[admin@MikroTik] /interface ethernet switch> port print det

Flags: I - invalid
2 name=ether3 switch=switch1 vlan-mode=secure vlan-header=always-strip
4 name=ether1 switch=switch1 vlan-mode=secure vlan-header=add-if-missing

[admin@MikroTik] /interface ethernet switch>
[admin@MikroTik] /interface ethernet switch> rule print det

Flags: X - disabled, I - invalid
0 switch=switch1 ports=ether1 vlan-header=present vlan-id=100 copy-to-cpu=no redirect-to-cpu=no mirror=no new-dst-ports=ether3
1 switch=switch1 ports=ether3 vlan-header=not-present copy-to-cpu=no redirect-to-cpu=no mirror=no new-vlan-id=100

[admin@MikroTik] /interface ethernet switch>


It looks pretty much like the example in the switchchip feature wiki... What am I missing ?

Thanks for any help.

-------------------
DOuellet
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Basic vlan on switchchip question

Thu Apr 05, 2012 7:39 am

Try adding new-dst-ports=ether1 to the second rule.
 
douellet
just joined
Topic Author
Posts: 3
Joined: Fri Mar 30, 2012 5:18 pm

Re: Basic vlan on switchchip question

Thu Apr 05, 2012 5:09 pm

It works!!! Thanks kirshteins for clearing this up. I don't think this is in the wiki exemple...

New rule set:

[admin@MikroTik] /interface ethernet switch> rule print det

Flags: X - disabled, I - invalid
0 switch=switch1 ports=ether1 vlan-header=present vlan-id=100 copy-to-cpu=no redirect-to-cpu=no mirror=no new-dst-ports=ether3
1 switch=switch1 ports=ether3 vlan-header=not-present copy-to-cpu=no redirect-to-cpu=no mirror=no new-dst-ports=ether1 new-vlan-id=100

[admin@MikroTik] /interface ethernet switch>


-------------------
DOuellet

Who is online

Users browsing this forum: Bing [Bot], McSee and 66 guests