Hello, i am new with mikrotik. I have a RB450G. I want to use it as bridge mode and router mod at a time, is that possible with multiple vlans ? i just want to route 1 vlan. Here i give some information, hope some one can help me
I am using a trunk (multiple vlans) to receiving my uplink.
I want a port in bridge mode, so i can transfer the trunk (multiple vlans) with bandwidth managed !
I want another port in route mode, so i can route only 1 vlan (Ex: 10.3.122.0/24 to virtual vlans (Ex: 192.168.0.0/24, 192.168.1.0/24)
I really want know is and how it’s possible ? Hope you gays can help me
I would create a bridge and put both trunk ports to it.
Then create a VLAN interface on the bridge with the VLAN ID you want to extract.
Put the VLAN interface into a new bridge together with the interface that needs a client connection on that specific VLAN
IN config it could look like this.
In this I assume the following
Your uplink is ether1
You forward the incoming VLAN’s on ether2
The desired dedicated VLAN egresses the router at ether3
/interface bridge
add name=bridge-trunk
add name=bridge-local
/interface vlan
add name=vlan5-br-trunk vlan-id=5
/interface bridge port
add bridge=bridge-trunk interface=ether1
add bridge=bridge-trunk interface=ether2
This should give some indication! There already is a bridge called bridge-trunk
/interface bridge> add name=bridge-local
/interface bridge>
/interface bridge> /interface vlan
/interface vlan> add name=vlan100-br-trunk vlan-id=100
interface: add name=vlan111-br-trunk vlan-id=111
interrupted
input does not match any value of interface
Here I forgot to put in the required parameter interface.
So put: add name=vlan111-br-trunk vlan-id=111 interface=bridge-trunk. This also is applicable for the error below.
/interface vlan> add name=vlan121-br-trunk vlan-id=121
interface: add name=vlan122-br-trunk vlan-id=122
interrupted
input does not match any value of interface
/interface vlan>
/interface vlan> /interface bridge port
/interface bridge port> add bridge=bridge-trunk interface=ether1
failure: device already added as bridge port
/interface bridge port> add bridge=bridge-trunk interface=ether2
/interface bridge port>
/interface bridge port> add bridge=bridge-local interface=ether3
/interface bridge port> add bridge=bridge-local interface=vlan122-br-trunk
input does not match any value of interface
Errors because creating VLAN interfaces failed earlier in the script.
/interface bridge port
add bridge=bridge-trunk interface=ether1
add bridge=bridge-trunk interface=ether2
add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=vlan122-br-trunkIf you want VLAN 122 be available on both ether3 and ether4, only add the VLAN interface once!