SOURCECODEBD.NET

Live Experience

3. IMPLEMENTING INTER-VLAN ROUTING

HOW TO IMPLEMENTING INTER-VLAN ROUTING

SW1  
  
Ports                         Assigned VLANs     PC   
FA 0/1                        VLAN 10            PC 1 (10.1.1.2)  
FA 0/2                        VLAN 10            PC 2 (10.1.1.3)  
FA 0/3                        VLAN 20            PC 3 (20.1.1.2)  
FA 0/4                        VLAn 20            PC 4 (20.1.1.3)  
FA 0/5 Configured as trunk  
  
R1  
  
Sub-Interfaces          Ip Address     Subnet - Mask  
E 0/0.10                      10.1.1.1          255.0.0.0  
E 0/0.20                      20.1.1.1          255.0.0.0  
E 0 Configured as trunk  
 
Task 1  
  
Create VLAN 10 and assign to ports fa 0/1 and fa 0/2. Create VLAN 20 and assign to  
ports fa 0/3 and fa 0/4. Configure port fa 0/5 as dot1q trunk. Use sub-interfaces on  
interface e 0 on R1 to accomplish this task.  
  
R1  
  
Int e 0  
No ip address  
  
Int e 0/0.10  
Encapsulation dotlq 10  
Ip address 10.1.1.1 255.0.0.0  
  
Int e 0/0.20  
Encapsulation dotlq 20  
Ip address 20.1.1.1 255.0.0.0
 
SW1  
  
Vlan 10  
Name sales  
Vlan 20  
Name finance  
  
Int fa 0/1  
Switchport mode access  
Switchport access vlan 10  
  
Int fa 0/2  
Switchport mode access  
Switchport access vlan 10  
  
Int fa 0/3  
Switchport mode access  
Switchport access vlan 20  
  
Int fa 0/4  
Switchport mode access  
Switchport access vlan 20  
  
Int fa 0/5  
Shutdown  
Switchport trunk encapsulation dotlq  
Switchport mode trunk  
Switchport nonegotiate  
No shutdown  
  
  
Verification :  
  
Verify if PC’s in VLAN 10 can communicate with PC’s in VLAN 20. 
 
SW1#show int fa0/5 switchport  
  
The output displays trunk dot1q encapsulation enabled.
You are here: Home / Switching / HOW TO IMPLEMENTING INTER-VLAN ROUTING