Packet Tracer - implements basic connectivity

Packet Tracer - implements basic connectivity

address allocation table

equipment

interface

IP address

subnet mask

S1

VLAN 1

192.168.1.253

255.255.255.0

S2

VLAN 1

192.168.1.254

255.255.255.0

PC1

network card

192.168.1.1

255.255.255.0

PC2

network card

192.168.1.2

255.255.255.0

Topology

Target

Part 1 : Perform basic configuration of S1 and S2

Part 2 : Configuring the PC

Part 3 : Configuring the Switch Management Interface

Background Information

In this exercise, you will first perform basic switch configuration. You will then implement basic connectivity by configuring IP addressing on the switch and PC . When you complete the IP addressing configuration, you will use various show commands to verify the configuration and the ping command to verify basic connectivity between the devices.    

Part 1 : Perform basic configuration of S1 and S2

Complete the following steps on S1 and S2 .

Step 1 : Configure the hostname for S1 .

  1. Click on S1 and then click on the CLI tab.  

  1. Enter the correct command to configure the hostname as S1 . 

Switch>enable

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname S1

Step 2 : Configure console and privileged EXEC mode passwords.

  1. Use cisco as the console password.  

S1(config)#line console 0

S1(config-line)#password cisco

S1(config-line)#login

S1(config-line)#exit

  1. Use class  as the privileged EXEC mode password. 

S1(config)#enable secret class

Step 3 : Verify S1 ’s password configuration.

How to verify that both passwords are configured correctly?

The switch will prompt you for a password to access the console interface after exiting user EXEC mode, and again when accessing privileged EXEC mode. You can also use the show run command to view the password.

Step 4 : Configure MOTD banner.

Use appropriate banner text to warn against unauthorized access. Here is sample text:

Authorized access only. Violators will be prosecuted to the full extent of the law.

Step 5 : Save configuration file to NVRAM .

Which command did you use to accomplish this step?

S1(config)# exit (or end)

S1# copy run start

Step 6 : Repeat steps 1 through 5 for S2 .

Switch>enable

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname S2

S2(config)#line console 0

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#enable secret class

Part 2 : Configuring the PC

Configure PC1 and PC2 with IP addresses .

Step 1 : Configure both PCs with IP addresses .

a.     Click PC1 and then click the Desktop tab. 

b    . Click IP Configuration . In the address allocation table above, you will see that PC1 has an IP address of 192.168.1.1 and a subnet mask of 255.255.255.0 . Enter this information for PC1 in the IP Configuration window .  

  1. Repeat steps 1a and 1b for PC2 .

Step 2 : Test the connection to the switch.

a.     Click PC1 . If the IP Configuration window is still open, close it. In the Desktop tab, click Command Prompt .   

b.    Type the ping  command and S1 ’s IP address, and press Enter . 

Packet Tracer PC Command Line 1.0

PC> ping 192.168.1.253

C:\>ping 192.168.1.253

Pinging 192.168.1.253 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.1.253:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>

whether succeed? Explain the reason.

Your ping operation should not be successful because the switch has not yet been configured with an IP address.

Part 3 : Configuring the Switch Management Interface

Configure IP addresses for S1 and S2 .

Step 1 : Configure the IP address of S1 .

The switch can be used as a plug-and-play device. This means they require no configuration to work. The switch forwards information from one port to another port based on the MAC address. If so, why do we need to configure an IP address for it?

In order to connect to the switch remotely, it needs to be assigned an IP address. The default configuration of the switch is to control the management of the switch through VLAN 1 .

Use the following command to configure the IP address for S1 .

S1# configure terminal

Enter configuration commands, one per line.End with CNTL/Z.

S1(config)# interface vlan 1

S1(config-if)# ip address 192.168.1.253 255.255.255.0

S1(config-if)# no shutdown

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

S1(config-if)#

S1(config-if)# exit

S1#

Why do you need to enter the no shutdown command?  

The no shutdown command administratively puts the interface into active state.

Step 2 : Configure the IP address for S2 .

Configure an IP address for S2 using the information in the address allocation table .

S2(config)#interface vlan 1

S2(config-if)#ip address 192.168.1.254 255.255.255.0

S2(config-if)#no shutdown

S2(config-if)#

%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

S2(config-if)#end

S2#

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

S2#

Step 3 : Verify the IP address configuration on S1 and S2 .

Use the show ip interface brief command to display the IP addresses and status of all switch ports and interfaces. You can also use the show running-config command.    

S1#show ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/1 unassigned YES manual up up

FastEthernet0/2 unassigned YES manual up up

FastEthernet0/3 unassigned YES manual down down

FastEthernet0/4 unassigned YES manual down down

FastEthernet0/5 unassigned YES manual down down

FastEthernet0/6 unassigned YES manual down down

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.253 YES manual up up

S1#

S2#show ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/1 unassigned YES manual up up

FastEthernet0/2 unassigned YES manual up up

FastEthernet0/3 unassigned YES manual down down

FastEthernet0/4 unassigned YES manual down down

FastEthernet0/5 unassigned YES manual down down

FastEthernet0/6 unassigned YES manual down down

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.254 YES manual up up

S2#

Step 4 : Save the configuration of S1 and S2 to NVRAM .

Which command can be used to save a configuration file in RAM to NVRAM ?

copy startup-config running-config

Step 5 : Verify network connection.

You can use the ping command to verify network connectivity. The entire network must be fully connected. If any fault exists, corrective action must be taken. Ping S1 and S2 from PC1 and PC2 . _ _  

a.     Click PC1 and then click the Desktop tab. 

b.    Click Command Prompt . 

c. Perform a     ping operation on the IP address of PC2 .

  1. Perform a ping operation to S1 's IP address .

  1. Ping S2 's IP address . _

Note : You can also use the ping command on the switch CLI and PC2 .  

All pings should succeed. If your first ping result is 80% , please try again. It should now be 100% . You'll learn later why the first ping may sometimes fail. If you are unable to ping any devices, recheck your configuration to see if there are any errors.

[Experimental link]

Link: https://pan.baidu.com/s/12xYN7SmkLlV15Dke4rVj0A?pwd=5000

Extraction code: 5000

--Sharing from Baidu Netdisk Super Member V3

Guess you like

Origin blog.csdn.net/m0_63624418/article/details/132037826