Objective: Configure R1 to route traffic between VLAN 13 and VLAN 23. VLAN 13 should be the 802.1q Native VLAN
R1(config)#int e0/0
R1(config-if)#ip add 13.13.13.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#ip route 23.23.23.0 255.255.255.0 13.13.13.3
R2(config)#int e0/2
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shu
R2(config-if)#ip route 13.13.13.0 255.255.255.0 23.23.23.3
R3(config)#int e0/3
R3(config-if)#no shu
R3(config-if)#int e0/3.13
R3(config-subif)#encap dot1q 13 native
R3(config-subif)#ip add 13.13.13.3 255.255.255.0
R3(config-subif)#int e0/3.23
R3(config-subif)#encap dot1q 23
R3(config-subif)#ip add 23.23.23.3 255.255.255.0
SW1(config)#vlan 13,23
SW1(config-vlan)#exi
SW1(config)#int e0/0 ---> to R1
SW1(config-if)#switch acce vla 13
SW1(config-if)#no shu
SW1(config-if)#int e0/1 ---> to SW2
SW1(config-if)#switch trunk encap dot
SW1(config-if)#switch mod trun
SW1(config-if)#no shu
SW2(config)#vla 13,23
SW2(config-vlan)#exi
SW2(config)#int e0/2 ---> to R2
SW2(config-if)#switch acc vla 23
SW2(config-if)#no shu
SW2(config-if)#int e0/3 ---> to R3
SW2(config-if)#switch trunk encap dot
SW2(config-if)#switch trunk native vla 13
SW2(config-if)#switch mode trunk
SW2(config-if)#no shu
SW2(config-if)#int e0/1 ---> to SW1
SW2(config-if)#switc
SW2(config-if)#switc trunk encap dot1
SW2(config-if)#switc mode trunk
SW2(config-if)#no shu
Verify the switchport and trunk
SW1(config-if)#do sh int trunk
Port Mode Encapsulation Status Native vlan
Et0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Et0/1 1-4094
Port Vlans allowed and active in management domain
Et0/1 1,13,23
Port Vlans in spanning tree forwarding state and not pruned
Et0/1 1,13,23
SW1(config-if)#do sh int e0/1 switch
Name: Et0/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype: 0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
SW2(config-if)#do sh int trunk
Port Mode Encapsulation Status Native vlan
Et0/1 on 802.1q trunking 1
Et0/3 on 802.1q trunking 13
Port Vlans allowed on trunk
Et0/1 1-4094
Et0/3 1-4094
Port Vlans allowed and active in management domain
Et0/1 1,13,23
Et0/3 1,13,23
Port Vlans in spanning tree forwarding state and not pruned
Et0/1 1,13,23
Et0/3 1,13,23
SW2(config-if)#do sh int e0/3 switch
Name: Et0/3
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype: 0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 13 (VLAN0013)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
SW2(config-if)#do sh int e0/2 switch
Name: Et0/2
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Operational Dot1q Ethertype: 0x8100
Negotiation of Trunking: On
Access Mode VLAN: 23 (VLAN0023)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
SW2(config-if)#do sh int e0/1 switch
Name: Et0/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype: 0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
Make sure ping is ok
R2#sh ip rou 13.13.13.1
Routing entry for 13.13.13.0/24
Known via "static", distance 1, metric 0
Routing Descriptor Blocks:
* 23.23.23.3
Route metric is 0, traffic share count is 1
R2#ping 13.13.13.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/8 ms
No comments:
Post a Comment