0% found this document useful (0 votes)
26 views3 pages

VLAN InterVLAN Routing

Uploaded by

moges tesfaye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

VLAN InterVLAN Routing

Uploaded by

moges tesfaye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

VLAN & Inter-VLAN Routing

Configuration (Cisco)
This document explains how to configure VLANs and Inter-VLAN Routing using Router-on-
a-Stick method in a Cisco environment. It includes topology, VLAN configuration, router
configuration, and verification steps.

1. Network Topology
The network consists of:
- Switch with VLAN 10 (Sales) and VLAN 20 (HR)
- Router configured with sub-interfaces for inter-VLAN routing
- Two PCs, one in each VLAN

Diagram layout:

[ PC1 ] ([Link] /24, GW: [Link])


|
| VLAN 10 (Sales)
|
+----------------------+
| SWITCH |
| Fa0/1 → VLAN 10 |
| Fa0/2 → VLAN 20 |
| Fa0/24 → Trunk Port |
+----------------------+
|
| Trunk Link
|
+----------------------+
| ROUTER |
| Fa0/0 |
| ├─ Fa0/0.10 → [Link] (VLAN 10 GW)
| └─ Fa0/0.20 → [Link] (VLAN 20 GW)
+----------------------+
|
[ PC2 ] ([Link] /24, GW: [Link])
2. Switch Configuration
Step 1: Create VLANs

Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name SALES
Switch(config)# vlan 20
Switch(config-vlan)# name HR

Step 2: Assign Ports to VLANs

Switch(config)# interface fastethernet 0/1


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10

Switch(config)# interface fastethernet 0/2


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20

Step 3: Configure Trunk Port

Switch(config)# interface fastethernet 0/24


Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 10,20

3. Router Configuration
Step 1: Configure Sub-interfaces for Router-on-a-Stick

Router> enable
Router# configure terminal

! VLAN 10
Router(config)# interface fastethernet 0/0.10
Router(config-subif)# encapsulation dot1Q 10
Router(config-subif)# ip address [Link] [Link]
Router(config-subif)# no shutdown

! VLAN 20
Router(config)# interface fastethernet 0/0.20
Router(config-subif)# encapsulation dot1Q 20
Router(config-subif)# ip address [Link] [Link]
Router(config-subif)# no shutdown

4. Verification
From PC1 (VLAN 10):
ping [Link] (Router GW for VLAN 20)
ping [Link] (PC in VLAN 20)

From PC2 (VLAN 20):


ping [Link] (Router GW for VLAN 10)
ping [Link] (PC in VLAN 10)

Conclusion
This configuration enables communication between devices in different VLANs using
Router-on-a-Stick inter-VLAN routing.

You might also like