My Countingdown

Showing posts with label Router on a Stick. Show all posts
Showing posts with label Router on a Stick. Show all posts

Wednesday, January 4, 2012

Lab 7. Switching - Router on a Stick and the Native VLAN

Objective: Configure R1 to route traffic between VLAN 13 and VLAN 23. VLAN 13 should be the 802.1q Native VLAN


R1:
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:
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: 
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:
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:
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

Lab 6. Switching - Router on a Stick

Objective: Configure R52 to route traffic between VLAN 13 and VLAN 23 using 802.1q encapsulation


R1:
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)#ip route 23.23.23.0 255.255.255.0 13.13.13.3

R2:
R2(config)#int e0/1
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:
R3(config)#int e0/2
R3(config-if)#no shu

R3(config-if)#int e0/2.13
R3(config-subif)#encapsulation dot1q 13
R3(config-subif)#ip add 13.13.13.3 255.255.255.0

R3(config-subif)#int e0/2.23
R3(config-subif)#encap dot 23
R3(config-subif)#ip add 23.23.23.3 255.255.255.0

SW1:
SW1(config)#vlan 13
SW1(config-vlan)#exi

SW1(config)#vlan 23
SW1(config-vlan)#exi

SW1(config)#int e0/0
SW1(config-if)#switch access vlan 13
SW1(config-if)#no shu

SW1(config-if)#int e0/1
SW1(config-if)#switch acc vla 23
SW1(config-if)#no shu

SW1(config-if)#int e0/2
SW1(config-if)#switc trun encap dot
SW1(config-if)#swit mode trun
SW1(config-if)#no shu

Verify interface

R1#sh ip int bri | i Int|up           
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0/0                13.13.13.1      YES manual up                    up

R2(config-if)#do sh ip int bri | i Int|up
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0/1                23.23.23.2      YES manual up                    up

R3(config)#do sh ip int bri | i Int|up
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0/2                   unassigned      YES unset   up                    up     
Ethernet0/2.13             13.13.13.3      YES manual up                    up     
Ethernet0/2.23             23.23.23.3      YES manual up                    up

SW1(config-if)#do sh ip int bri | i Int|up
Interface              IP-Address      OK? Method Status                Protocol
Ethernet0/0            unassigned      YES unset  up                    up     
Ethernet0/1            unassigned      YES unset  up                    up     
Ethernet0/2            unassigned      YES unset  up                    up

Verify the switchport and trunk in SW1

SW1(config-if)#do sh int e0/2 switch
Name: Et0/2
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

SW1(config-if)#do sh int trun
Port                Mode         Encapsulation  Status        Native vlan
Et0/2               on              802.1q            trunking      1

Port                Vlans allowed on trunk
Et0/2               1-4094

Port                Vlans allowed and active in management domain
Et0/2               1,13,23

Port                Vlans in spanning tree forwarding state and not pruned
Et0/2               1,13,23

Make sure ping is ok

R1#ping 23.23.23.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.23.23.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms