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

Configure Router For Inter VLAN Routing

This document configures a router for inter-VLAN routing between VLAN 10 and VLAN 20 by setting up subinterfaces on GigabitEthernet 0/0 with VLAN encapsulation and IP addresses for each VLAN, and configures the switch ports and trunk port between the switch and router to allow traffic between the VLANs.

Uploaded by

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

Configure Router For Inter VLAN Routing

This document configures a router for inter-VLAN routing between VLAN 10 and VLAN 20 by setting up subinterfaces on GigabitEthernet 0/0 with VLAN encapsulation and IP addresses for each VLAN, and configures the switch ports and trunk port between the switch and router to allow traffic between the VLANs.

Uploaded by

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

Configure router for inter VLAN routing

Interfaces:
interface GigabitEthernet0/2
switchport mode access
switchport access vlan 10
!
interface GigabitEthernet0/3
switchport mode access
switchport access vlan 20
!
interface GigabitEthernet0/0
switchport trunk allowed vlan 10,20
switchport trunk encapsulation dot1q
switchport mode trunk

Inter VLAN routing configuration


Router(config)interface GigabitEthernet0/0
no shutdown

Router(config)#interface gigabitEthernet 0/1.?


<0-4294967295> GigabitEthernet interface number

interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.1.1 255.255.255.0
no shutdown

interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.0.1 255.255.255.0
no shutdown

You might also like