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

1.0 Inter VLAN Routing-1

The document outlines the process of Inter-VLAN routing, which enables communication between different VLANs using a router. It includes step-by-step configuration instructions for creating VLANs, assigning IP addresses, and verifying the setup. Additionally, it describes the 'Router-on-a-stick' method for routing traffic between VLANs using sub-interfaces and trunk ports.

Uploaded by

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

1.0 Inter VLAN Routing-1

The document outlines the process of Inter-VLAN routing, which enables communication between different VLANs using a router. It includes step-by-step configuration instructions for creating VLANs, assigning IP addresses, and verifying the setup. Additionally, it describes the 'Router-on-a-stick' method for routing traffic between VLANs using sub-interfaces and trunk ports.

Uploaded by

jemsson66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Cisco Certified Network Associate

Routing and Switching


Inter VLAN Routing
1.0 Conception
 To communicating Different VLAN is Called Inter VLAN.
 Inter-VLAN routing can be defined as a way to forward traffic between different VLAN by implementing a router in the network.

Access Port
2.0 Configuration
Step 1: Create VLAN

Switch(config)#vlan 10
Switch(config-vlan)#name HR
Switch#wr

Step 2: Assign VLAN

Switch((Config)# interface fastethernet 0/2


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

Step 3: Assign VLAN in Switch & Router Connection Interface

VLAN 10: gigabitEthernet 0/1


VLAN 20: gigabitEthernet 0/2
VLAN 30: fastEthernet 0/3/0
Step 4: Assign Default Gateway in VLAN PC

All PC of VLAN 10 Default Gateway: 10.10.10.1

All PC of VLAN 20 Default Gateway: 20.20.20.1

All PC of VLAN 30 Default Gateway: 30.30.30.1


Step 5: Assign IP Address in Router Interface

Router(config)#interface gigabitEthernet 0/0


Router(config-if)#ip address 10.10.10.1 255.255.255.255.0
Router(config-if)#no shutdown
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#ip address 20.20.20.1 255.255.255.255.0
Router(config-if)#no shutdown
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 30.30.30.1 255.255.255.255.0
Router(config-if)#no shutdown

3.0 Verification
Step 1: Inter VLAN Routing Status
** Router **
Router#show ip route
Router#show running-config
Router#show interfaces gigabitEthernet 0/0

** Switch **
Switch #show vlan brief

Step 2: Ping Another VLAN

PC-02
C:\>ping 20.20.20.6
C:\>ping 10.10.10.6
C:\>tracert 20.20.20.7
Inter-VLAN Routing (Router-on-a-stick)
1.0 Conception

Router-on-a-stick
dot1Q IEEE 802.1Q
Virtual LAN
2.0 Configuration

Step 1: Connect a single interface switch to router & assign Trunk port

Router(config)#interface range gigabitEthernet 0/0-1


Router(config-if-range)#no ip address
------
Switch(config)#interface gigabitEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#no shutdown
Switch#show interfaces trunk
Switch#wr
Step 2: ----| Create Sub-interface & Assign IP Address in Router

Router(config)#interface gigabitEthernet 0/1


Router(config-if)#no shutdown

Router(config)#interface gigabitEthernet 0/1.10


Router(config-subif)#encapsulation ?
dot1Q IEEE 802.1Q Virtual LAN
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.10.10.1 255.255.255.0

Router(config)#interface gigabitEthernet 0/1.20


Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.20.20.1 255.255.255.0

Router(config)#interface gigabitEthernet 0/1.30


Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address 30.30.30.1 255.255.255.0
Router#wr
3.0 Verification
Step 1: Inter VLAN Routing Status
** Router **
Router#show ip route
Router#show running-config
Router#show interfaces gigabitEthernet 0/0

** Switch **
Switch #show vlan brief

Step 2: Ping Another VLAN

PC-02
C:\>ping 20.20.20.6
C:\>tracert 20.20.20.7

You might also like