Okay, I am trying to configure my CCR1009 using the switch core. I followed the instructions in the http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features mikrotik wiki, but couldn’t figure out how to get it working without compromising the whole idea of VLANs (somehow I can only make VLANs that are visible to each other). Can please somebody help me getting my VLANs working? Here is what I have so far
/interface ethernet
set ether2 master-port=ether1
set ether3 master-port=ether1
set ether4 master-port=ether1
/interface ethernet switch port
set ether1 vlan-mode=secure vlan-header=always-strip default-vlan-id=10
set ether2 vlan-mode=secure vlan-header=always-strip default-vlan-id=20
set ether3 vlan-mode=secure vlan-header=always-strip default-vlan-id=30
set ether4 vlan-mode=secure vlan-header=add-if-missing
set switch1-cpu vlan-mode=secure vlan-header=leave-as-is
/interface ethernet switch vlan
add ports=ether1,ether4 switch=switch1 vlan-id=10
add ports=ether2,ether4 switch=switch1 vlan-id=20
add ports=ether3,ether4 switch=switch1 vlan-id=30
Okay, I get this, but how do I get an address to the untagged VLANs? If I try to add an address to a port, I can only get that with something like this,
If I add another VLAN address like that, every VLAN can see each other. What am I doing wrong? What do I need to do to add IPs addresses so that I can connect a cable to the ether1 and have the addresses I want for VLAN10?
I would like my VLANs to be the following, and be able to create a DHCP server in my ccr1009 to serve addresses to those connected to me too.
vlan10 - 10.10.10.1/24
vlan20 - 10.10.20.1/24
vlan30 - 10.10.30.1/24
to something that includes the switch1-cpu. If I do not add the “switch-1cpu”, the VLAN never works. I have this weird feeling that this is the problem, but I cannot get anything to work without using this “switch-1cput”.
/interface ethernet switch vlan
set ports=ether1,ether4,switch1-cpu switch=switch1 vlan-id=10 numbers=0
Then I create an interface that I can use to add IPs and other things.
if you can ping the gateway of another vlan sucessfully that only proves you are in contact with router
is normal you can ping another vlan host, thats called routing if you want to isolate the acces from vlan to vlan you have to use firewall rules to allow or drop the traffic you need