Upload
cesar-morera-alpizar
View
213
Download
0
Embed Size (px)
Citation preview
7/31/2019 01 Advanced SingleSiteNetwork
1/10
CCNP ADVANCED LAB 1Single Site Network
Advanced LabsLab 1: Single Site Network
ObjectiveThis lab will allow you to develop your ability to combine multiple technologies to create a network
infrastructure that is typical of a small to medium-size enterprise with a single site. You will use
your knowledge of VLANs, Layer 2 switching, Layer 3 routing, and dynamic routing protocols to
build this infrastructure.
Simulated Network OverviewYou will be creating a network with one router, one switch, and four PC hosts. Two of the PC hosts
will be connected to one VLAN, and the other two PC hosts will be connected to a different VLAN.
The router will have a subinterface for each VLAN, and 802.1q trunking will be used to connect
each subinterface to the appropriate VLAN on the switch.
You will be able to combine and use skills learned in prior labs to build out this network.
Lab TopologyFor this lab, your network design will include the devices shown in the Topology diagram below.
Simulator. To access each of the devices from within the Simulator, select the device name from
the appropriate menu in the Simulator. For example, to access P1R1, click the eRouters button
and select P1R1 from the drop-down menu.
P1R1
P1SW1
FastEthernet0/0.1 10.100.1.1 VLAN 1
FastEthernet0/0.20 10.100.20.1 VLAN 20
FastEthernet0/0.30 10.100.30.1 VLAN 30
Fa0/0
Fa0/1
Vlan 1 10.100.1.2 VLAN 1
P1PC1
10.100.20.4
VLAN 20
Fa0/2
P1PC2
10.100.30.4
VLAN 30
Fa0/3
P1PC3
10.100.20.5
VLAN 20
Fa0/4
P1PC4
10.100.30.5
VLAN 30
Fa0/5
7/31/2019 01 Advanced SingleSiteNetwork
2/10
CCNP ADVANCED LAB 1Single Site Network
Command Summary
Command Description
configure terminal hostname host_name assigns a host name to a router or switch
show run
erase startup-config
ip address ip_address subnet_mask assigns an IP address and a subnet mask to an interface
vlan vlan_idname vlan_name creates and/or names a VLAN
show vlan displays VLAN information
interface type number
switchport access vlan vlan_id assigns a switch port to a VLAN
speed {10 | 100 | 1000 | auto | nonegotiate} sets the interface speed
duplex {auto | full | half}
show ip interface brief displays information for IP interfaces
interface type number subinterface_id creates a subinterface
encapsulation dot1q vlan_id sets the encapsulation method of the interface for 802.1q VLAN trunking;
reload
switchport mode trunk
switchport mode access
switchport trunk encapsulation dot1q sets the encapsulation method used for a switch trunk port to 802.1q
enable password enters privileged EXEC modeexit exits the current mode
Note: Please be aware of the following when using the Grade Lab function in the Lab Navigator. If
you choose to use an IP addressing scheme other than that shown in the lab documentation, you
these grading errors.
Lab Tasks
occur automatically when you select this lab from the Lab Navigator.
What commands should you use to accomplish this?______________________________________________________________
3. As per the Lab Topology diagram, change the host name of the router to P1R1, and changethe host name of the switch to P1SW1. What commands should you use to do this?______________________________________________________________
7/31/2019 01 Advanced SingleSiteNetwork
3/10
CCNP ADVANCED LAB 1Single Site Network
Task 2
A. Assigning IP Addresses to the PC Hosts
1. Use the Lab Topology diagram to determine the correct IP addresses and default
subnet mask, and default gateway on each PC host. Use a 24-bit subnet mask(255.255.255.0). Remember that the gateway for each PC host is the subinterface onthe router that is assigned to the VLAN of which the PC host is a member. Write down thecommands you use to accomplish this.
_____________________________________________________________
2. From the console of P1PC1, can you ping P1PC2? Why or why not?_____________________________________________________________
3. From the console of P1PC1, can you ping P1PC3? Why or why not?_____________________________________________________________
B. Assigning an IP Address to the Management VLAN on P1SW1
1. Use the Lab Topology diagram to determine the correct IP address for the management VLANon P1SW1. Assign the correct IP address to the management VLAN on P1SW1. Remember touse a 24-bit subnet mask (255.255.255.0). Write down the commands you use._____________________________________________________________
_____________________________________________________________
Task 3
A. Creating VLANs on P1SW1
1. Examine the Lab Topology diagram. How many VLANs will you need to create, and what_____________________________________________________________
2. Issue the commands necessary to create these VLANs. Write down the commands you use._____________________________________________________________
3. Verify that you have created and named the VLANs correctly. What command should you use?_____________________________________________________________
B. Placing the PC Hosts in the Correct VLANs
1. By default, are the PC hosts already in a VLAN? If so, which one? What command shouldyou use to determine this?_____________________________________________________________
2. Refer to the Lab Topology diagram, and write down which PC hosts should go in whichVLANs.
_____________________________________________________________
half duplex for all PC hosts. What commands should you use?_____________________________________________________________
P1SW1 to P1R1. What commands should you use?_____________________________________________________________
7/31/2019 01 Advanced SingleSiteNetwork
4/10
CCNP ADVANCED LAB 1Single Site Network
Task 4
A. Creating Subinterfaces on P1R1
1. On P1R1, you will need to create a subinterface for each VLAN. Write down the names of
the subinterfaces you plan to create. What rationale did you use when deciding on namesfor the subinterfaces?_____________________________________________________________
2. Create the subinterfaces that you listed in the previous step. Remember that the routernecessary commands to activate the interface. Write down the commands you use.______________________________________________________________
B. Assigning IP Addresses to the Subinterfaces
1. Refer to the Lab Topology diagram, and write down the IP addresses that you will assignto each subinterface on P1R1.______________________________________________________________
2. Per your list above, assign the appropriate IP address to each subinterface on P1R1.Remember to use a 24-bit subnet mask (255.255.255.0). Write down the commands youuse.______________________________________________________________
3. Be sure to verify that you have assigned the correct IP address and subnet mask to eachsubinterface. Check your work, and write down the commands you use to perform this______________________________________________________________
1. When the Ethernet frames leaving FastEthernet0/0 arrive at FastEthernet0/1 on P1SW1,the switch will examine the 4-byte VLAN tag in the Ethernet frame to determine whichvirtual LAN should receive the frame. In order for the frames leaving Fa0/0 to be taggedcommand to identify the VLAN to which the subinterface belongs.
to accomplish this.______________________________________________________________
1. Which port on P1SW1 is used to connect to P1R1?______________________________________________________________
only Ethernet frames of the VLAN of which the port is a member.
the correct encapsulation! Write down the commands you use to accomplish this.______________________________________________________________
7/31/2019 01 Advanced SingleSiteNetwork
5/10
CCNP ADVANCED LAB 1Single Site Network
Task 5
A. Verifying Network Connectivity
1. At this point, the network should be fully operational. From the console of each PC host,
attempt to ping all other PC hosts. Are you able to do so?_____________________________________________________________
2. From the console of P1SW1, you should be able to ping all subinterfaces on P1R1 as wellas all PC hosts. Verify that this is the case. Write down the commands you use._____________________________________________________________
3. From the console of P1R1, you should be able to ping all PC hosts as well as the managementVLAN on P1SW1. Verify that you can do this. Write down the commands you use._____________________________________________________________
B. Troubleshooting
do this.
_____________________________________________________________2. From the console of P1PC1, can you ping any other PC hosts? Why or why not?
_____________________________________________________________
3. From the console of P1PC1, can you ping any of the subinterfaces on P1R1? Why or why not?_____________________________________________________________
4. From the console of P1R1, can you ping P1PC1? Why or why not?_____________________________________________________________
5. Based on this troubleshooting exercise, summarize in a brief paragraph therelationships between VLANs, subinterfaces, networks, and hosts._____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
7/31/2019 01 Advanced SingleSiteNetwork
6/10
CCNP ADVANCED LAB 1Single Site Network
Lab Solutions
2. P1R1 and P1SW1:
erase startup-config
reload
show running-config
3. P1R1:
config t
hostname P1R1
P1SW1:
config t
hostname P1SW1
Task 2
A. Assigning IP Addresses to the PC Hosts
1. P1PC1:
ipconfig /ip 10.100.20.4 255.255.255.0
ipconfig /dg 10.100.20.1
P1PC2:
ipconfig /ip 10.100.30.4 255.255.255.0
ipconfig /dg 10.100.30.1
P1PC3:
ipconfig /ip 10.100.20.5 255.255.255.0
ipconfig /dg 10.100.20.1
P1PC4:
ipconfig /ip 10.100.30.5 255.255.255.0
ipconfig /dg 10.100.30.1
2. No. All PC hosts are initially in the same VLAN, which is VLAN 1; however, P1PC1 and
3. Yes. All PC hosts are initially in the same VLAN, which is VLAN 1. P1PC1 and P1PC3 arealso in the same IP network and are able to ping each other.
B. Assigning an IP Address to the Management VLAN on P1SW1
1. P1SW1:
configure terminal
interface vlan 1ip address 10.100.1.2 255.255.255.0
7/31/2019 01 Advanced SingleSiteNetwork
7/10
CCNP ADVANCED LAB 1Single Site Network
Task 3
A. Creating VLANs on P1SW1
and .
2. P1SW1:
config t
vlan 20
vlan 30
3. show vlan
B. Placing the PC Hosts in the Correct VLANs
1. You should issue the show vlan command to see that the PC hosts are already in VLAN 1.
2. P1PC1 and P1PC3 should be in VLAN 20. P1PC2 and P1PC4 should be in VLAN 30.
3. To place P1PC1 in VLAN 20 on P1SW1:
config t
interface FastEthernet0/2
switchport access vlan 20
speed 100
duplex half
To place P1PC2 in VLAN 30 on P1SW1:
config t
interface FastEthernet0/3
switchport access vlan 30
speed 100
duplex half
To place P1PC3 in VLAN 20 on P1SW1:config t
interface FastEthernet0/4
switchport access vlan 20
speed 100
duplex half
To place P1PC4 in VLAN 30 on P1SW1:
config t
interface FastEthernet0/5
switchport access vlan 30
speed 100
duplex half4. P1SW1:
config t
interface FastEthernet0/1
speed 100
duplex full
7/31/2019 01 Advanced SingleSiteNetwork
8/10
CCNP ADVANCED LAB 1Single Site Network
Task 4
A. Creating Subinterfaces on P1R1
trunked. Thus, you should create subinterfaces FastEthernet0/0.1, FastEthernet0/0.20,and FastEthernet0/0.30 on both P1R1 and P2R1. For instance, in this case,FastEthernet0/0.20 will be trunked to VLAN 20.
2. P1R1:
config t
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.1
interface FastEthernet0/0.20
interface FastEthernet0/0.30
B. Assigning IP Addresses to the Subinterfaces
1. FastEthernet0/0.1 10.100.1.1FastEthernet0/0.20 10.100.20.1FastEthernet0/0.30 10.100.30.1
2. P1R1:
config t
interface FastEthernet0/0.1
ip address 10.100.1.1 255.255.255.0
interface FastEthernet0/0.20
ip address 10.100.20.1 255.255.255.0
interface FastEthernet0/0.30
ip address 10.100.30.1 255.255.255.0
3. You should use the show ip interfaces brief and show running-config commands.
2. P1R1:
config t
interface FastEthernet0/0.1
encapsulation dot1q 1
interface FastEthernet0/0.20
encapsulation dot1q 20
interface FastEthernet0/0.30
encapsulation dot1q 30
1. FastEthernet0/1
3. P1SW1:
conf t
interface FastEthernet0/1
switchport mode trunk
switchport trunk encapsulation dot1q
7/31/2019 01 Advanced SingleSiteNetwork
9/10
CCNP ADVANCED LAB 1Single Site Network
Task 5
A. Verifying Network Connectivity
1. Yes. From the console of each PC host, you should be able to ping all other PC hosts.
2. ping 10.100.1.1 (subinterface fa0/0.1 on P1R1)
ping 10.100.20.1 (subinterface fa0/0.20 on P1R1)
ping 10.100.30.1 (subinterface fa0/0.30 on P1R1)
ping 10.100.20.4 (P1PC1)
ping 10.100.20.5 (P1PC3)
ping 10.100.30.4 (P1PC2)
ping 10.100.30.5 (P1PC4)
3. ping 10.100.1.2 (VLAN 1 on P1SW1 management/default VLAN)
ping 10.100.20.4 (P1PC1)
ping 10.100.20.5 (P1PC3)
ping 10.100.30.4 (P1PC2)ping 10.100.30.5 (P1PC4)
B. Troubleshooting
1. P1PC1:
config t
interface fa0/2
switchport access vlan 30
IP network addresses, they are no longer in the same VLAN. Although P1PC1 is now inthe same VLAN as P1PC2 and P1PC4, it has a different IP network address from P1PC2and P1PC4, so pings to those hosts also fail.
VLAN of which it is now a member; thus, it has no connectivity to hosts in its own, or anyother, VLAN.
all hosts in a VLAN with the same IP network addresses is good network design.
on the switch itself if the switch has Layer 3 capabilities. In this network, P1SW1 does
Layer 3 between VLANs.If the router had enough Ethernet ports, you could connect a separate Ethernet porta Layer 2 trunking protocol that is supported by both P1R1 and P1SW1. You are using802.1q trunking because the switch only supports 802.1q. By using Layer 2 trunking,
7/31/2019 01 Advanced SingleSiteNetwork
10/10
CCNP ADVANCED LAB 1Single Site Network
6. After P1PC1 is moved back into VLAN 20, pings from P1PC1 to all other PC hosts andsubinterfaces are successful. Pings from P1PC1 to hosts and interfaces in VLAN 20 are allsuccessful because all hosts and subinterfaces in the same VLAN have the same networkaddress. Pings to hosts and subinterfaces in different VLANs have different network
addresses and are forwarded to the default gateway for delivery via Layer 3 routing.
P1R1 P1SW1version 12.1service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname P1R1!ip subnet-zero
!interface Serial0no ip addressno ip directed-broadcastshutdown
!interface FastEthernet0/0no ip addressno ip directed-broadcast
!interface FastEthernet0/0.1encapsulation dot1q 1ip address 10.100.1.1 255.255.255.0
!interface FastEthernet0/0.20
encapsulation dot1q 20ip address 10.100.20.1 255.255.255.0
!interface FastEthernet0/0.30encapsulation dot1q 30ip address 10.100.30.1 255.255.255.0
!ip classlessno ip http server!line con 0transport input none
line aux 0line vty 0 4
!no scheduler allocateend
version 12.1service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname P1SW1!ip subnet-zero
spanning-tree extend system-id!interface FastEthernet0/1switchport mode trunkswitchport trunk encapsulation dot1qspeed 100duplex full
!interface FastEthernet0/2switchport access vlan 20speed 100duplex half
!interface FastEthernet0/3switchport access vlan 30
speed 100duplex half
!interface FastEthernet0/4switchport access vlan 20speed 100duplex half
!interface FastEthernet0/5switchport access vlan 30speed 100duplex half
!end