1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Lab 6.2.1 Verifying Default Switch Configuration pdf

8 451 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Verifying default switch configuration
Trường học Cisco Networking Academy
Chuyên ngành Networking
Thể loại Lab
Năm xuất bản 2003
Định dạng
Số trang 8
Dung lượng 126,32 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Switch Command Modes Command Mode Access Method Switch Prompt Displayed Exit Method command.. Global configuration From the privileged EXEC mode, enter the configure terminal command

Trang 1

Lab 6.2.1 Verifying Default Switch Configuration

Objective

• Investigate the default configuration of a 2900 series switch

Background/Preparation

Cable a network similar to the one in the diagram The configuration output used in this lab is

produced from a 2950 series switch Any other switch used in this lab may produce different output The following steps are to be executed on each switch, unless instructed otherwise Instructions are also provided for the 1900 Series switch, which initially displays a User Interface Menu Select the

“Command Line” option from the menu to perform the steps for this lab

Start a HyperTerminal session

Note: Go to the erase and reload instructions at the end of this lab Perform those steps on all

switches in this lab assignment before continuing

General Configuration Tips

• Using the question mark (?) and arrow keys help to enter commands

• Each command mode restricts the set of available commands If there is difficulty entering a

command, check the prompt and then enter the question mark (?) for a list of available

commands The problem might be a wrong command mode or using the wrong syntax

• To disable a feature, enter the keyword no before the command, for example, no ip address

• Save the configuration changes to NVRAM so that the changes are not lost if there is a system reload or power outage

Trang 2

Switch Command Modes

Command Mode Access Method Switch Prompt Displayed Exit Method

command

Privileged EXEC From user EXEC mode, enter

the enable command

Switch# To exit to user EXEC

mode, use the disable,

exit , or logout

command

Global

configuration From the privileged EXEC mode, enter the configure

terminal command

Switch(config)# To exit to privileged EXEC

mode, use the exit or

end command, or press

Ctrl-z

Interface

configuration

From the global configuration

mode, enter the interface

type number command, such

as interface serial 0

Switch(config-if)#

To exit to global configuration mode, use

the exit command

Step 1 Enter privileged mode

a Privileged mode gives access to all the switch commands Many of the privileged commands configure operating parameters Therefore, privileged access should be password-protected to prevent unauthorized use The privileged 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

Switch>enable

Switch#

b Notice the prompt changed in the configuration to reflect privileged EXEC mode

Step 2 Examine the current switch configuration (1900: perform a, b and k)

a Examine the following current running configuration file

Switch#show running-config

b How many Ethernet or Fast Ethernet interfaces does the switch have? _

c What is the range of values shown for the VTY lines? _

d Examine the current contents of NVRAM as follows:

Switch#show startup-config

%% Non-volatile configuration memory is not present

e Why does the switch give this response?

Trang 3

f Issue the following to show the current IP address of the switch

Switch#show interface VLAN 1

g Is there an IP address set on the switch?

h What is the MAC address of this virtual switch interface? _

i Is this interface up?

j The IP properties of the interface can be shown by entering following the command:

Switch#show ip interface VLAN 1

k The following commands will provide the switch IP address information for the 1900:

#show ip

Step 3 Get IOS information

a Examine the following version information that the switch reports

Switch#show version

b What is the IOS version that the switch is running? _

c What is the system image file name? _

d What is the base MAC address of this switch? _

e Is the switch running enterprise edition software?

Step 4 Examine the Fast Ethernet interfaces

a Examine the default properties of the Fast Ethernet interfaces As an example examine the properties of the fourth interface:

1900:

#show interface fastethernet 0/26 (Note: this is a trunk port)

Or

#show interface ethernet 0/4 (Note: this is an access port)

b Is the interface up or down?

c What event would make an interface go up? _

d What is the MAC address of the interface? _

e What is the speed and duplex setting of the interface? _

Step 5 Examine VLAN information

a Examine the following default VLAN settings of the Switch

Switch>show vlan

Trang 4

b What is the name of VLAN 1?

c Which ports are in this VLAN?

d Is VLAN 1 active? _

e What type of VLAN is the default VLAN? _

Step 6 Examine Flash memory (1900: Skip to Step 8)

a Issue one of the following to examine the contents of the flash directory

Switch#dir flash:

or

Switch#show flash

b Name the files and directories found?

Step 7 Examine the startup configuration file

a To see the contents of the startup configuration file, type the show running-config

command in privileged EXEC mode as follows:

Switch#show startup-config

b The switch responds with:

Non-volatile configuration memory is not present

c Why does this message appear?

d Copy the following configuration to NVRAM

Note: This step ensures any changes made will be available to the switch if there is a reload or

the power goes off

Switch#copy running-config startup-config

Destination filename [startup-config]?

Building configuration

[OK]

Switch#

e Issue the following to show the contents of NVRAM

Switch#show startup-config

f What is displayed now? _

Step 8 Exit the switch

a Type exit, as follows, to leave the switch welcome screen:

Trang 5

Switch#exit

Once these steps are completed, logoff by typing exit, and turn all the devices off Then remove

and store the cables and adapter

Trang 6

Erasing and Reloading the Switch

For the majority of the labs in CCNA 3 and CCNA 4 it is necessary to start with an unconfigured switch Use of a switch with an existing configuration may produce unpredictable results These instructions allow preparation of the switch prior to performing the lab so previous configuration options do not interfere The following is the procedure for clearing out previous configurations and starting with an unconfigured switch Instructions are provided for the 2900, 2950, and 1900 Series switches

2900 and 2950 Series Switches

1 Enter into the privileged EXEC mode by typing enable

If prompted for a password, enter class (if that does not work, ask the instructor)

Switch>enable

2 Remove the VLAN database information file

Switch#delete flash:vlan.dat

Delete filename [vlan.dat]?[Enter]

Delete flash:vlan.dat? [confirm] [Enter]

If there was no VLAN file, this message is displayed

%Error deleting flash:vlan.dat (No such file or directory)

3 Remove the switch startup configuration file from NVRAM

Switch#erase startup-config

The responding line prompt will be:

Erasing the nvram filesystem will remove all files! Continue? [confirm]

Press Enter to confirm

The response should be:

Erase of nvram: complete

4 Check that VLAN information was deleted

Verify that the VLAN configuration was deleted in Step 2 using the show vlan command If

previous VLAN configuration information (other than the default management VLAN 1) is still

present it will be necessary to power cycle the switch (hardware restart) instead of issuing the

reload command To power cycle the switch, remove the power cord from the back of the

switch or unplug it Then plug it back in

If the VLAN information was successfully deleted in Step 2, go to Step 5 and restart the switch

using the reload command

5 Software restart (using the reload command)

Trang 7

Note: This step is not necessary if the switch was restarted using the power cycle method

a At the privileged EXEC mode enter the command reload

Switch(config)#reload

The responding line prompt will be:

System configuration has been modified Save? [yes/no]:

b Type n and then press Enter

The responding line prompt will be:

Proceed with reload? [confirm] [Enter]

The first line of the response will be:

Reload requested by console

After the switch has reloaded, the line prompt will be:

Would you like to enter the initial configuration dialog? [yes/no]:

c Type n and then press Enter

The responding line prompt will be:

Press RETURN to get started! [Enter]

1900 Series Switches

1 Remove VLAN Trunking Protocol (VTP) information

#delete vtp

This command resets the switch with VTP parameters set to factory

defaults

All other parameters will be unchanged

Reset system with VTP parameters set to factory defaults, [Y]es or [N]o?

Enter y and press Enter

2 Remove the switch startup configuration from NVRAM

#delete nvram

This command resets the switch with factory defaults All system parameters will revert to their default factory settings All static and dynamic addresses will be removed

Reset system with factory defaults, [Y]es or [N]o?

Enter y and press Enter

Trang 8

Web Links

Configuration Documentation 1900/2820

http://www.cisco.com/univercd/cc/td/doc/product/lan/28201900/1928v9x/

Configuration Documentation 2900

http://www.cisco.com/univercd/cc/td/doc/product/lan/c2900xl/29_35wc4/sc/

Configuration Documentation 2950

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/2950_wc/scg/

Ngày đăng: 18/01/2014, 04:20

TỪ KHÓA LIÊN QUAN