Switch foundation (case)

Case 1: The basic command mode switch
1.1 problems
present embodiment proficiency of each switch mode configuration command
for Cisco switches, there are two main configurations ways: First, the use of switches Console carrying cable is connected to a computer COM port, and then use the computer HyperTerminal direct configuration, the first configuration, normally used; Second, remote access via telnet to configure the switch, this approach requires the exchange is configured with an IP address and has access to a computer network, follow-up courses will learn this method of access.
1) access the switch through the HyperTerminal
entering 2) the operating mode switch and exit Here Insert Picture Description
1.2 scheme
of the present embodiment may be employed in the practice of the configuration Cisco Simulator - Cisco Packet Tracer 6.2 is achieved.
1) install Packet Tracer 6.2
Double-click the installation package installed by default, then the Chinese language to extract the files Chinese.ptl multi-language file in the installation directory folder, such as C: \ Program Files (x86) \ Cisco Packet Tracer 6.0 \ languages.
Double-click the Cisco Packet Tracer desktop shortcut to start the program, open the menu "Options" -> "Preferences" -> switch to "Interface" tab -> Select Chinese.ptl- below> Click the lower right corner of "Change Language" button when prompted click "OK", shown in Figure -2. Here Insert Picture Description
Close the current Packet Tracer program, and then restart the program, can be found has become a Chinese language interface (current localization is not complete), shown in Figure -3 Here Insert Picture Description
2) establishment of experimental network topology
Packet Tracer program in the main window, add a Cisco 2960 switch, an ordinary PC, and add Console connected through the network cable, as shown in FIG -4, after completing setting the current topology is saved c2960-pc. pkt file. Here Insert Picture Description
Wherein, the connection details are as follows:

  • Console port of the switch <-> RS PC 232 machine.
  • FastEthernet0 / 24 interface of the switch <-> FastEthernet0 the PC card
    1.3 Step
    Step one: access switch via HyperTerminal
    1) and arranged to open a HyperTerminal
    Prior experiments established Packet Tracer environment topology, click the device to open the PC check that the power has been started (LED on the chassis is a schematic view of a yellow-green), switch to the "Desktop tab", as shown in FIG -5, where to find the "terminal" and click open. Here Insert Picture Description
    In the pop-up window terminal configuration, shown in FIG -6, click "OK" to accept the default value Here Insert Picture Description
    then you can see the "terminal" a window, which shows initialization information through the Console line connected to the switch, the transport after entering the switch may "switch>" configuration system, as shown in FIG -7. Here Insert Picture Description
    Tip: In the Packet Tracer environment, you can click directly on the switch icon, and then switch to the "Command Line" tab, you can also enter IOS configuration environment.
    Entry and exit operating mode switch: Step Two
  1. Work mode switch as follows:
Switch>enable   //切换为特权模式
Switch# configure terminal      //进入全局配置模式
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fastEthernet 0/1      //进入接口模式
Switch(config-if)#

2) at Exit operating mode switch:

Switch(config-if)#exit                           //接口模式退到全局配置模式
Switch(config)#exit                              //全局配置模式退到特权模式
Switch#exit                                       //特权模式退到用户模式
Switch>

Note: exit to return to the previous mode
end interface or from the global configuration mode and return to privileged mode, the shortcut keys Ctrl + z equally effective
Cisco equipment command line is not case sensitive, and different Linux command line
command input error press ctrl keyboard stuck + shift + 6 three button
2 case 2: switch basic commands
2.1 problem
modify and view the switch configuration
1) changing the switch hostname
2) View switch configuration
2.2 program
in Packet Tracer program's main window, add a Cisco switch 2960, enters the switch, the input and view the related commands to configure the switch
2.3 steps
to achieve this case the following procedure is required.
Step a: changing the switch host name
into the global configuration mode, the hostname is the hostname switch instruction may be provided. For example, the following may be host name to s1:

Switch(config)# hostname s1                     //配置主机名
s1(config)#

Step two: Check the switch configuration information
currently running View switch configuration:

查看交换机当前的运行配置:
s1# show running-config                  //查看当前的运行配置
Building configuration...
Current configuration : 1052 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw1                          //已配置主机名
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
 no ip address
 shutdown
!
!
line con 0

Step three: Check IOS name and version information
view ios name and version information

s1#show version 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE   SOFTWARE(fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 18-May-05 22:31 by jharirba
Image text-base: 0x80010000, data-base: 0x80562000
ROM: Bootstrap program is is C2950 boot loader
Switch uptime is 1 minutes, 39 seconds
System returned to ROM by power-on
Cisco WS-C2950-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
Processor board ID FHK0610Z0WC
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00E0.B026.B88C
Motherboard assembly number: 73-5781-09 
Power supply part number: 34-0965-01
Motherboard serial number: FOC061004SZ
Power supply serial number: DAB0609127D
Model revision number: C0
Motherboard revision number: A0
Model number: WS-C2950-24
System serial number: FHK0610Z0WC
Configuration register is 0xF

3 Case 3: Switch Basic Configuration
3.1 problems
configure the switch to achieve the following object
3.2 program
implementing this case the following procedure is required.
Step 3.3
Step a: Configuration Switch Password
1) arranged to switch Taren1 privileged password
to open the switch command line configuration interface

Switch>en
Switch#conf t
Switch(config)#enable password Taren1

Step Two: save the configuration and restart the device detects availability of the password

Switch(config)#exit
Switch#write
Switch#reload
……….
………
Switch>enable
Password:                            //此时需要输入密码才能进入特权模式

Step Three: Empty Device Configuration

Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]         //此时系统询问是否确定删除,按回车即可
[OK]
Erase of nvram: complete

Step Four: Restart the device condition detection configuration

Switch#reload
Proceed with reload? [confirm]      //此时系统询问是否确定重启,按回车即可

Guess you like

Origin blog.csdn.net/weixin_45048541/article/details/90257628