[go: up one dir, main page]

0% found this document useful (0 votes)
65 views8 pages

Lab - Build A Hub, Switch, and Router Network Topology:: Background / Scenario

This lab document outlines steps to build a network topology with a hub, switch, and router. Students will cable the devices, configure IP addresses and settings, and verify connectivity between PCs connected to different subnets.

Uploaded by

Huda Ghazi
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)
65 views8 pages

Lab - Build A Hub, Switch, and Router Network Topology:: Background / Scenario

This lab document outlines steps to build a network topology with a hub, switch, and router. Students will cable the devices, configure IP addresses and settings, and verify connectivity between PCs connected to different subnets.

Uploaded by

Huda Ghazi
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/ 8

Lab - Build a Hub, Switch, and Router Network

Topology:

Objectives
Part 1: Set Up the Topology and Initialize Devices
Part 2: Configure Devices and Verify Connectivity
Part 3: Display Device Information

Background / Scenario
This is a comprehensive lab to review previously covered IOS commands. In
this lab, you will cable the equipment as shown in the topology diagram. You
will then configure the devices to match the addressing table. After the
configurations have been saved, you will verify your configurations by testing
for network connectivity.
Instructions
Part 1: Set Up Topology and Initialize Devices
Step 1: Cable the network as shown in the topology.
a. Attach the devices shown in the topology diagram, and cable, as necessary.
b. Power on all the devices in the topology
Add a PC-A, Hub (PT-HUB) Switch (2960), Router 1941 and PC-B to the
workspace.
add the physical cabling between devices on the workspace as shown in the
topology diagram. The PC-A will need a copper straight-through cable to
connect to the Hub. Select the copper straight-through cable in the Device-
Selection box and attach it to the FastEthernet0 interface of the PC and the
FastEthernet0 interface of the Hub.
The Hub will need a copper straight-through cable to connect to the Switch
select the copper straight-through cable in the Device-Selection box and attach
it to the FastEthernet 1 interface of the Hub and the FastEthernet 0/6 interface
of the Switch.
The Switch will need a copper straight-through cable to connect to the
Router 1941 select the copper straight-through cable in the Device-Selection
box and attach it to the GigabitEthernet 0/1 interface of the Router and the
FastEthernet 0/5 interface of the Switch
The Router1941 will need a copper straight-through cable to connect to the
PC-B select the copper straight-through cable in the Device-Selection box and
attach it to the GigabitEthernet 0/0 interface of the Router and the
FastEthernet0 interface of the PC-B.

Part 2: Configure Devices and Verify Connectivity


In Part 2, you will set up the network topology and configure basic settings,
such as the interface IP addresses, device access, and passwords .

Step 1: Assign static IP information to the PC interfaces.


Configure the IP address, subnet mask, and default gateway settings on PC-A.
Configure the IP address, subnet mask, and default gateway settings on PC-B.
Ping PC-B from a command prompt window on PC-A.
Question: Why were the pings not successful?
The router interfaces (default gateways) have not been configured yet so Layer
3 traffic is not being routed between subnets.

Step 2: Configure the router.


a. Console into the router and enable privileged EXEC mode. Open
configuration window: Router> enable
b. Enter configuration mode:
Router# config terminal
c. Assign a device name to the router:
Router(config)# hostname R1
d. Disable DNS lookup to prevent the router from attempting to translate
incorrectly entered commands as though they were host names:
R1(config)# no ip domain lookup
e. Assign class as the privileged EXEC encrypted password:
R1(config)#enable secret class
f. Assign cisco as the console password and enable login:
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)#exit
g. Assign cisco as the VTY password and enable login:
R1(config)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)#exit
h. Encrypt the plaintext passwords:
R1(config)# service password-encryption
i. Create a banner that warns anyone accessing the device that unauthorized
access is prohibited:
R1(config)# banner motd $ Authorized Users Only! $
j. Configure and activate both interfaces on the router:
R1(config)# interface g 0/0
R1(config-if)# ip address 192.168.0.1 255.255.255.0
R1(config-if)# ipv6 address 2001:db8:acad::1/64
R1(config-if)# ipv6 address FE80::1 link-local
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface g0/1
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
R1(config-if)# ipv6 address fe80::1 link-local
R1(config-if)# no shutdown
R1(config-if)# exit
k. Configure an interface description for each interface indicating which device
is connected to it:
R1(config)# interface g 0/1
R1(config-if)# description Connected to F0/5 on S1
R1(config-if)# exit
R1(config)# interface g 0/0
R1(config-if)# description Connected to Host PC-B
R1(config-if)# exit
l. To enable IPv6 routing, enter the command ipv6 unicast-routing:
R1(config)# ipv6 unicast-routing
m. Save the running configuration to the startup configuration file:
R1(config)# exit
R1# copy running-config startup-config

Ping PC-B from a command prompt window on PC-A. Question: Were the
pings successful? Yes. The router is routing the ping traffic across the two
subnets. The default settings for the 2960 switch will automatically turn up the
interfaces that are connected to devices.

Step 3: Configure the switch


In this step, you will configure the hostname, the VLAN 1 interface and its
default gateway. Open configuration window
a. Console into the switch and enable privileged EXEC mode:
Switch> enable
b. Enter configuration mode:
Switch# config terminal
c. Assign a device name to the switch:
Switch(config)# hostname S1
d. Disable DNS lookup to prevent the router from attempting to translate
incorrectly entered commands as though they were host names:
S1(config)# no ip domain-lookup
e. Display information about MAC address table:
S1>en
S1#show mac-address-table
f. Configure and activate the VLAN interface on the switch S1:
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.2 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
g. Configure the default gateway for the switch S1:
S1(config)# ip default-gateway 192.168.1.1
S1(config-if)# exit
h. Save the running configuration to the startup configuration file .
Step 4: Verify connectivity end-to-end connectivity.
a. From PC-A, ping PC-B.
b. From S1, ping PC-B. All the pings should be successful.

Part 3: Display Device Information


In Part 3, you will use show commands to retrieve interface and routing
information from the router and switch.
Step 1: Display the routing table on the router.
a. Use the show ip route command on the router R1 to answer the following
questions. Open configuration window:
R1# show ip route
Codes: L - local, C - connected, S - static, 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

Gateway of last resort is not set

192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks


C 192.168.0.0/24 is directly connected, GigabitEthernet0/0
L 192.168.0.1/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.1/32 is directly connected, GigabitEthernet0/1

b. Use the show ipv6 route command on router R1 to display the IPv6 routes:
R1# show ipv6 route
IPv6 Routing Table - 5 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:DB8:ACAD::/64 [0/0]
via GigabitEthernet0/0, directly connected
L 2001:DB8:ACAD::1/128 [0/0]
via GigabitEthernet0/0, receive
C 2001:DB8:ACAD:1::/64 [0/0]
via GigabitEthernet0/1, directly connected
L 2001:DB8:ACAD:1::1/128 [0/0]
via GigabitEthernet0/1, receive
L FF00::/8 [0/0]
via Null0, receive
Step 2: Display interface information on the router R1:
a. Use the show ip interface g0/1 command
R1# show ip interfaces g0/1

GigabitEthernet0/1 is up, line protocol is up (connected)


Internet address is 192.168.1.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
Input features: MCI Check
WCCP Redirect outbound is disabled
WCCP Redirect inbound is disabled
WCCP Redirect exclude is disabled

b. For the IPv6 information, enter the show ipv6 interface command:
R1# show ipv6 interface g0/1

GigabitEthernet0/1 is up, line protocol is up


IPv6 is enabled, link-local address is FE80::1
No Virtual link-local address(es):
Global unicast address(es):
2001:DB8:ACAD:1::1, subnet is 2001:DB8:ACAD:1::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:1
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND advertised reachable time is 0 (unspecified)
ND advertised retransmit interval is 0 (unspecified)
ND router advertisements are sent every 200 seconds
ND router advertisements live for 1800 seconds
ND advertised default router preference is Medium
Hosts use stateless autoconfig for addresses.

Step 3: Display a summary list of the interfaces on the router and switch.
There are several commands that can be used to verify an interface
configuration. One of the most useful of these is the show ip interface brief
command. The command output displays a summary list of the interfaces on
the device and provides immediate feedback to the status of each interface.
a. Enter the show ip interface brief command on the router R1:

R1# show ip interface brief


Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.0.1 YES manual up
GigabitEthernet0/1 192.168.1.1 YES manual up
Vlan1 unassigned YES unset administratively down
b. To see the IPv6 interface information, enter the show ipv6 interface brief
command.
on R1:
R1# show ipv6 interface brief
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:ACAD::1
GigabitEthernet0/1 [up/up]
FE80::1
2001:DB8:ACAD:1::1
Vlan1 [administratively down/down]
Unassigned
c. Enter the show ip interface brief command on the switch S1. Open
configuration window:
S1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual down down
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual up up
FastEthernet0/6 unassigned YES manual up up
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 192.168.1.2 YES manual up up

You might also like