Hey guys, i m really new to RouterOS and i m trying to configure the following vlan network topology on a CCR-1016 (V6.33.5)
eth 2-Vlan0 (192.168.0.0/24 network, Gw 192.168.0.1/24), the router will act as an dhcp server on this network, i need untagged traffic to connect a"dumb switch"
eth3- Vlan 3, and Vlan 4 both on the same trunk, on the same port (network 192.168.3.0/24, and netw. 192.158.4.0/24), the router will act as a Dhcp on both of the networks as well. I need tagged traffic on a single uplink to a managed switch.
Heres what i have done untill now:
/interface vlan add name=vlan0 interface=ether2 vlan-id=1
/interface vlan add name=vlan3 interface=ether3 vlan-id=3
/interface vlan add name=vlan4 interface=ether3 vlan-id=4
/ip address
add address=192.168.0.1/24 interface=vlan0
add address=192.168.3.1/24 interface=vlan3
add address=192.168.4.1/24 interface=vlan4
/interface bridge add name=br-vlan0
bridge port add bridge=br-vlan0 interface=vlan0
bridge port add bridge=br-vlan0 interface=ether2
Now the DHCP part:
ip pool add name=PoolVlan0 ranges=192.168.0.50-192.168.0.100
ip pool add name=PoolVlan3 ranges=192.168.3.50-192.168.3.100
ip pool add name=PoolVlan4 ranges=192.168.4.50-192.168.4.100
#For Vlan0
ip dhcp-server add interface=br-vlan0 address-pool=PoolVlan0 (only way it works on the acces port if i put on bridge interface.I don t know if its the correct way for sure)
ip dhcp-server network add address=192.168.0.0/24 gateway=192.168.0.1/24 dns-server=8.8.8.8
#For Vlan3
ip dhcp-server add interface=ether3 address-pool=PoolVlan3
ip dhcp-server network add address=192.168.3.0/24 gateway=192.168.3.1/24 dns-server=8.8.8.8
#For Vlan4
ip dhcp-server add interface=ether3 address-pool=PoolVlan4
ip dhcp-server network add address=192.168.4.0/24 gateway=192.168.4.1/24 dns-server=8.8.8.8
-For vlan0 it looks like dhcp works, i can ping gateway ip and i have leased ip. But i m unsure about the bridge interface(its really new to me the bridging concept). I can see traffic on vlan0 and on br-vlan0 . I dont know which one is the real one.
-On Vlan 3 and Vlan 4 i can t get an ip, and i cant sort it out why
!!-My final goal is to route and apply firewall rules to VLAN traffics. How can i apply firewall rules to Vlan0 (which is on a bridge interface)?
Any input, or guidance would be much appreciated.
S.