0% found this document useful (0 votes)
141 views4 pages

Art Cna 003 l21 Solution

The document describes the configuration of inter-VLAN routing between two VLANs (VLAN 10 and 20) on a Ranet switch and gateway. Ports fa0/1-2 are configured for VLAN 10 access, ports fa0/3-4 for VLAN 20 access. Port gi1/1 is configured as a trunk. On the gateway, subinterfaces fa0/0.1 and fa0/0.2 are configured with encapsulation dot1q for VLANs 10 and 20 respectively and IP addresses 192.168.0.142/28 and 192.168.0.158/28. Pings from Host1 to devices on both VLANs are successful, demonstrating inter-VLAN routing.

Uploaded by

Aria Levins
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views4 pages

Art Cna 003 l21 Solution

The document describes the configuration of inter-VLAN routing between two VLANs (VLAN 10 and 20) on a Ranet switch and gateway. Ports fa0/1-2 are configured for VLAN 10 access, ports fa0/3-4 for VLAN 20 access. Port gi1/1 is configured as a trunk. On the gateway, subinterfaces fa0/0.1 and fa0/0.2 are configured with encapsulation dot1q for VLANs 10 and 20 respectively and IP addresses 192.168.0.142/28 and 192.168.0.158/28. Pings from Host1 to devices on both VLANs are successful, demonstrating inter-VLAN routing.

Uploaded by

Aria Levins
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Packet Activity

Document No.:

ART-CNA-003-L21

CCNA LAB 2-1: InterVLAN Routing

[ Ranet SW ( console)] :
( Desktop > Terminal > OK)
Ranet-SW>en
Ranet-SW#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Ranet-SW(config)#vlan 10
Ranet-SW(config-vlan)#vlan 20
Ranet-SW(config-vlan)#int ran fa0/1 -2
Ranet-SW(config-if-range)#switchport mode access
Ranet-SW(config-if-range)#switchport access vlan 10
Ranet-SW(config-if-range)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast will be configured in 2 interfaces due to the range command
but will only have effect when the interfaces are in a non-trunking mode.
Ranet-SW(config-if-range)#int ran fa0/3 -4
Ranet-SW(config-if-range)#switchport mode access
Ranet-SW(config-if-range)#switchport access vlan 20
Ranet-SW(config-if-range)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast will be configured in 2 interfaces due to the range command
but will only have effect when the interfaces are in a non-trunking mode.
Ranet-SW(config-if-range)#int gig1/1
1
A R T I C L E

Ranet-SW(config-if)#switchport mode trunk


Ranet-SW(config-if)#

Document No.:

ART-CNA-003-L21

%SYS-5-CONFIG_I: Configured from console by console


Ranet-SW#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Ranet-SW#

[ Ranet GW ( console)] :
( Desktop > Terminal > OK)
Ranet-GW>en
Ranet-GW#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Ranet-GW(config)#int fa0/0
Ranet-GW(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Ranet-GW(config-if)#int fa0/0.1
Ranet-GW(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up
Ranet-GW(config-subif)#encapsulation dot1Q 10
Ranet-GW(config-subif)#ip add 192.168.0.142 255.255.255.240
Ranet-GW(config-subif)#int fa0/0.2
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
Ranet-GW(config-subif)#encapsulation dot1Q 20
Ranet-GW(config-subif)#ip add 192.168.0.158 255.255.255.240
Ranet-GW(config-subif)#
%SYS-5-CONFIG_I: Configured from console by consoleRanet-GW#
Ranet-GW#sh ip route
2
A R T I C L E

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP


D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Document No.:

ART-CNA-003-L21

Gateway of last resort is not set


192.168.0.0/28 is subnetted, 2 subnets
C 192.168.0.128 is directly connected, FastEthernet0/0.1
C 192.168.0.144 is directly connected, FastEthernet0/0.2
Ranet-GW#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Ranet-GW#

[ Host1] :
( Desktop > Command Prompt)
Packet Tracer PC Command Line 1.0
PC>ping 192.168.0.145
Pinging 192.168.0.145 with 32 bytes of data:
Request timed out.
Reply from 192.168.0.145: bytes=32 time=18ms TTL=127
Reply from 192.168.0.145: bytes=32 time=14ms TTL=127
Reply from 192.168.0.145: bytes=32 time=19ms TTL=127
Ping statistics for 192.168.0.145:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 14ms, Maximum = 19ms, Average = 17ms

3
A R T I C L E

PC>ping 192.168.0.146

Document No.:

ART-CNA-003-L21

Pinging 192.168.0.146 with 32 bytes of data:


Request timed out.
Reply from 192.168.0.146: bytes=32 time=16ms TTL=127
Reply from 192.168.0.146: bytes=32 time=12ms TTL=127
Reply from 192.168.0.146: bytes=32 time=16ms TTL=127
Ping statistics for 192.168.0.146:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 16ms, Average = 14ms
PC>

4
A R T I C L E

You might also like