My Countingdown

Wednesday, January 4, 2012

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

No comments:

Post a Comment