Page 1 of 1

vlans

Posted: Sun Aug 18, 2013 1:44 am
by mrjoli021
I have installed RouterOS on a VM. I would like to assign an interface to a VLAN for example. I have ether1 with ip 192.168.1.1 and I would like to put that on Vlan1. I have done the following but I still see all traffic going through ether1 and nothing through vlan1.
     /interface vlan add name=VLAN1 vlan-id=1 interface=ether1 disabled=no

     /ip address add address=192.168.1.1/24 interface=VLAN1

Re: vlans

Posted: Mon Aug 19, 2013 7:11 pm
by tws101
You need to start at Vlan 2

VLAN 1 is reserved for NO VLAN.

Re: vlans

Posted: Mon Aug 19, 2013 7:36 pm
by AlArenal
Yep, that's mainly because by common practice VID 1 is the default vlan on any vlan-aware device.

Re: vlans

Posted: Mon Aug 19, 2013 8:54 pm
by mrjoli021
It happens the same with vlan 10. All traffic still goes through the ether1 and not the vlan.

Re: vlans

Posted: Mon Aug 19, 2013 10:24 pm
by tws101
are you tagging the traffic?