0% found this document useful (0 votes)
97 views

MikroTik InterVLAN Routing Command

The document configures three switches and a router for inter-VLAN routing. On each switch, a bridge named bridge1 is created and ports ether1-ether3 are added. Ether1 and ether2 are configured with different PVIDs to distinguish VLANs 10 and 20. The router interfaces are configured with VLAN subinterfaces attached to ether2 for routing between VLANs 10 and 20.

Uploaded by

Loop Avoidance
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

MikroTik InterVLAN Routing Command

The document configures three switches and a router for inter-VLAN routing. On each switch, a bridge named bridge1 is created and ports ether1-ether3 are added. Ether1 and ether2 are configured with different PVIDs to distinguish VLANs 10 and 20. The router interfaces are configured with VLAN subinterfaces attached to ether2 for routing between VLANs 10 and 20.

Uploaded by

Loop Avoidance
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Untitled

Switch-01
/interface bridge
add name=bridge1 vlan-filtering=no

/interface bridge port


add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether1 pvid=10
add bridge=bridge1 interface=ether2 pvid=20

/interface bridge vlan


add bridge=bridge1 tagged=ether3 untagged=ether1
vlan-ids=10
add bridge=bridge1 tagged=ether3 untagged=ether2
vlan-ids=20

/interface bridge set bridge1 vlan-filtering=yes

Switch-02
/interface bridge
add name=bridge1 vlan-filtering=no

/interface bridge port


add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether1 pvid=10
add bridge=bridge1 interface=ether2 pvid=20

/interface bridge vlan


add bridge=bridge1 tagged=ether3 untagged=ether1

Page 1
Untitled
vlan-ids=10
add bridge=bridge1 tagged=ether3 untagged=ether2
vlan-ids=20

/interface bridge set bridge1 vlan-filtering=yes

Switch-03
/interface bridge
add name=bridge1 vlan-filtering=no

/interface bridge port


add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2

/interface bridge vlan


add bridge=bridge1 tagged=ether3 vlan-ids=10
add bridge=bridge1 tagged=ether3 vlan-ids=20
add bridge=bridge1 tagged=ether1 vlan-ids=10
add bridge=bridge1 tagged=ether1 vlan-ids=20
add bridge=bridge1 tagged=ether2 vlan-ids=10
add bridge=bridge1 tagged=ether2 vlan-ids=20

/interface bridge set bridge1 vlan-filtering=yes

Inter-VLAN Routing on Router

interface vlan add name=VLAN10 interface=ether2


vlan-id=10
interface vlan add name=VLAN20 interface=ether2

Page 2
Untitled
vlan-id=20
ip address add interface=VLAN10 address=192.168.0.254/24
ip address add interface=VLAN20 address=192.168.1.254/24

Page 3

You might also like