Professional Documents
Culture Documents
Inter-VLAN Routing Cisco Switch and Mikrotik RB Procedure
Inter-VLAN Routing Cisco Switch and Mikrotik RB Procedure
Inter-VLAN Routing Cisco Switch and Mikrotik RB Procedure
While some believe the term 'router‐on‐a‐stick' sounds a bit silly, it's a very popular term and
commonly used in networks where no layer‐3 switch exists.
LAB Diagram:
3‐ PCs
Task to be completed
1‐ Configure VLAN
2‐ Configure VTP
3‐ Assign ports to VLANs for switches
4‐ Configure Etherchannel on switches
5‐ Configure Bonding interface on Mikrotik RB
6‐ Enable RSTP for both switches and assign root bridge
7‐ Configure Trunk ports
8‐ Create sub‐interfaces for VLANs on Mikrotik RB
9‐ Configure DHCP on Mikrotik RB for all VLANs
10‐ Challenging Problem (How to offer IP addresses to all VLANs by using DHCP server which is not
running on Mikrotik RB)
On Switch 1 (S1):
On Switch 1 (S1):
Configure S1 as VTP server
S1# configure terminal
S1(config)# vtp domain sopheary.com
S1(config)# vtp mode server
S1(config)# vtp version 3
S1(config)# vtp password MyvtpSopheary
S1(config)# exit
S1# vtp primary
S1# show vtp status
On Switch 2 (S2):
Configure S2 as VTP client
S2# configure terminal
S2(config)# vtp domain sopheary.com
S2(config)# vtp mode client
S2(config)# vtp version 3
S2(config)# vtp password MyvtpSopheary
S2(config)# exit
S2# show vtp status
On Switch 1 (S1):
Assign the following ports to each VLAN:
On Switch 1 (S1):
The following info will be configured for Etherchannel on S1:
‐ Portchannel1 (Po1)
o F0/1, F0/2, F0/3, F0/4
‐ Portchannel2 (Po2)
o F0/23, F0/24
On Switch 2 (S2):
The following info will be configured for Etherchannel on S2:
‐ Portchannel1 (Po1)
o F0/1, F0/2, F0/3, F0/4
On Mikrotik RB:
On Switch 1 (S1):
Enable RSTP spanning‐tree and set this switch to be root primary.
S1# configure terminal
S1(config)# spanning‐tree mode rapid‐pvst
S1(config)# spanning‐tree vlan 2‐3,98‐99,255 root primary
S1(config)# exit
S1# show spanning‐tree vlan 2
On Switch 2 (S2):
Enable RSTP spanning‐tree
S2# configure terminal
S2(config)# spanning‐tree mode rapid‐pvst
S2(config)# exit
S2# show spanning‐tree vlan 3
On Task 5, we have already created a bonding interface on Mikrotik RB which combined two slave
interfaces, ehter3 and ether4 and named that bounding interface as bonding‐vlan‐route. Just to recall
that VLANs have been created but they are still unable to communicate each other. Therefore, to allow
those VLANs communicate with each other, we will need to do Inter‐VLAN routing on Mikrotik RB as the
following:
Task 10 ‐ Challenging Problem (How to offer IP addresses to all VLANs by using DHCP server
which is not running on Mikrotik RB)
The below diagram has designed to run DHCP server on Windows Server and DHCP running to Mikrotik
RB was disable.
‐ Disable DHCP server on Mikrotik RB and Enable DHCP Relay as below
‐ On DHCP Server which is running on windows server, we created three scope in order to offer
the IP addresses to the following VLANs: 2, 3, and 99.
o 192.168.2.10 – 192.168.2.200 for VLAN 2
o 192.168.3.10 – 192.168.3.200 for VLAN 3
o 192.168.1.10 – 192.168.1.200 for VLAN 99