Tuesday 21 March 2023

Practical - 65 :- Basic Programmable switch Configuration Spanning Tree Protocol (STP).

 


Task 1: Cable, Erase, and Reload the Switch


Step 1: Cable a network.

Step 2: Clear the configuration on the switch.

 

Task 2: Verify the Default Switch Configuration


Step 1: Enter privileged mode.

You can access all the switch commands in privileged mode. However, because many of the privileged commands configure operating parameters, privileged access should be password-protected to prevent unauthorized use. You will set passwords in Task 3.

The privileged EXEC command set includes those commands contained in user EXEC mode, as well as the configure command through which access to the remaining command modes are gained. Enter privileged EXEC mode by entering the enable command.

Switch>enable

Switch#

Notice that the prompt changed in the configuration to reflect privileged EXEC mode.


Step 2: Examine the current switch configuration.

Examine the current running configuration file. 

Switch#show running-config

Step 3: Display Cisco IOS information.

Examine the following version information that the switch reports.

Switch#show version

Step 4: Examine the Fast Ethernet interfaces.

Examine the default properties of the Fast Ethernet interface used by PC1.

Switch#show interface fastethernet 0/18

Step 5: Examine VLAN information.

Examine the default VLAN settings of the switch.

Switch#show vlan

Step 6 Examine flash memory.

Issue one of the following commands to examine the contents of the flash directory.

Switch#dir flash:

or

Switch#show flash

Files have a file extension, such as .bin, at the end of the filename. Directories do not have a file

extension. To examine the files in a directory, issue the following command using the filename displayed

in the output of the previous command:

Switch#dir flash:c2960-lanbase-mz.122-25.SEE3

The output should look similar to this:

Directory of flash:/c2960-lanbase-mz.122-25.SEE3/

 6 drwx 4480 Mar 1 1993 00:04:42 +00:00 html

 618 -rwx 4671175 Mar 1 1993 00:06:06 +00:00 c2960-lanbase-mz.122-25.SEE3.bin

 619 -rwx 457 Mar 1 1993 00:06:06 +00:00 info

32514048 bytes total (24804864 bytes free)

Step 7: Examine the startup configuration file.

To view the contents of the startup configuration file, issue the show startup-config command in

privileged EXEC mode.

Switch#show startup-config

startup-config is not present

 

 Task 3: Create a Basic Switch Configuration


Step 1: Assign a name to the switch.

In the last step of the previous task, you configured the hostname. Here's a review of the commands

used.

S1#configure terminal

S1(config)#hostname S1

S1(config)#exit

Step 2: Set the access passwords.

Enter config-line mode for the console. Set the login password to cisco. Also configure the vty lines 0 to

15 with the password cisco.

S1#configure terminal

Enter the configuration commands, one for each line. When you are finished,

return to global configuration mode by entering the exit command or pressing

Ctrl-Z.

S1(config)#line console 0

S1(config-line)#password cisco

S1(config-line)#login

S1(config-line)#line vty 0 15

S1(config-line)#password cisco

S1(config-line)#login

S1(config-line)#exit

Step 3. Set the command mode passwords.

Set the enable secret password to class. This password protects access to privileged EXEC mode.

S1(config)#enable secret class

Step 4. Configure the Layer 3 address of the switch.

Before you can manage S1 remotely from PC1, you need to assign the switch an IP address. The default configuration on the switch is to have the management of the switch controlled through VLAN 1.

However, a best practice for basic switch configuration is to change the management VLAN to a VLAN other than VLAN 1.

Step 5: Set the switch default gateway.

S1 is a layer 2 switch, so it makes forwarding decisions based on the Layer 2 header. If multiple networks are connected to a switch, you need to specify how the switch forwards the internetwork frames, because the path must be determined at Layer three. This is done by specifying a default gateway address that points to a router or Layer 3 switch. Although this activity does not include an external IP gateway, assume that you will eventually connect the LAN to a router for external access. Assuming that the LANinterface on the router is 172.17.99.1, set the default gateway for the switch.

S1(config)#ip default-gateway 172.17.99.1

S1(config)#exit

Step 6: Verify the management LANs settings.

Verify the interface settings on VLAN 99.

S1#show interface vlan 99

Step 7: Configure the IP address and default gateway for PC1.

Set the IP address of PC1 to 172.17.99.21, with a subnet mask of 255.255.255.0. Configure a default gateway of 172.17.99.11. (If needed, refer to Lab 1.3.1 to configure the PC NIC.)

Step 8: Verify connectivity.

To verify the host and switch are correctly configured, ping the IP address of the switch (172.17.99.11) from PC1.

Step 9: Configure the port speed and duplex settings for a Fast Ethernet interface.

Configure the duplex and speed settings on Fast Ethernet 0/18. Use the end command to return to privileged EXEC mode when finished.

Step 10: Save the configuration.

You have completed the basic configuration of the switch. Now back up the running configuration file to NVRAM to ensure that the changes made will not be lost if the system is rebooted or loses power.

S1#copy running-config startup-config

Destination filename [startup-config]?[Enter] Building configuration...

[OK]

S1#

Step 11: Examine the startup configuration file.

To see the configuration that is stored in NVRAM, issue the show startup-config command from

privileged EXEC mode.

S1#show startup-config

Popular Posts