I am a Newbee ! Need some help.

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 :slight_smile:

  1. I am using a trunk (multiple vlans) to receiving my uplink.
  2. I want a port in bridge mode, so i can transfer the trunk (multiple vlans) with bandwidth managed !
  3. 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 :slight_smile:

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

add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=vlan5-br-trunk

Dear Rudios
I have tried as your code in winbox>New terminal

/interface bridge
add name=bridge-trunk
add name=bridge-local

/interface vlan
add name=vlan100-br-trunk vlan-id=100
add name=vlan111-br-trunk vlan-id=111
add name=vlan121-br-trunk vlan-id=121
add name=vlan122-br-trunk vlan-id=122

/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=vlan122-br-trunk

add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=vlan122-br-trunk

it replays that :frowning:
and does work properly

/interface bridge
/interface bridge> add name=bridge-trunk
failure: already have device with such name
/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
/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
/interface bridge port>
/interface bridge port> add bridge=bridge-local interface=ether4
/interface bridge port> add bridge=bridge-local interface=vlan122-
/interface bridge port> add bridge=bridge-local interface=vlan122-br-trunk

nurul.mustafa@youngonectg.com this is my mail address. Can you please explain more :slight_smile:

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>
/interface bridge port> add bridge=bridge-local interface=ether4
/interface bridge port> add bridge=bridge-local interface=vlan122-
/interface bridge port> add bridge=bridge-local interface=vlan122-br-trunk

nurul.mustafa@youngonectg.com > this is my mail address. Can you please explain more > :slight_smile:

So just to summarize the code should look like this
/interface bridge
add name=bridge-trunk
add name=bridge-local

/interface vlan
add name=vlan100-br-trunk vlan-id=100 interface=bridge-trunk
add name=vlan111-br-trunk vlan-id=111 interface=bridge-trunk
add name=vlan121-br-trunk vlan-id=121 interface=bridge-trunk
add name=vlan122-br-trunk vlan-id=122 interface=bridge-trunk

/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!