Article directory
Cisco Simulation Software:Cisco Packet Tracer Student
1. Multiple modes and switching of switches
1. How to enter the command line user interface (Command Line Interface) of the switch configuration
enter进入到普通用户模式
2.Normal mode mode
普通用户模式下的
命令提示符:>
Switch>?
Exec commands:
connect Open a terminal connection
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
exit Exit from the EXEC
logout Exit from the EXEC
ping Send echo messages
resume Resume an active network connection
show Show running system information
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
Copy and paste from the command line:
shift+insert: Copy the content on the command line
shift+delete: Paste the latest contents of the clipboard to the command line
Convert ordinary user mode to privileged user mode:
Switch>enable
Switch#
3. Privileged user mode
特权用户模式下的命令提示符:#
Switch#?
Exec commands:
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
connect Open a terminal connection
copy Copy from one file to another
debug Debugging functions (see also 'undebug')
delete Delete a file
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
erase Erase a filesystem
exit Exit from the EXEC
logout Exit from the EXEC
more Display the contents of a file
no Disable debugging informations
ping Send echo messages
reload Halt and perform a cold restart
resume Resume an active network connection
setup Run the SETUP command facility
show Show running system information
ssh Open a secure shell client connection
--More--
more means that due to screen size, some content is not displayed:
- Enter key: Display down one line at a time
- Spacebar: Display down one screen at a time
Convert privileged user mode to global configuration mode:
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
ps:
Configure terminal means configuring the terminal. The word is long. The following solutions can be used:
- Tab key auto-completion
- Abbreviated as conf t
4. Global configuration mode
特权用户模式下的命令提示符:(configure)+#
Switch(config)#?
Configure commands:
access-list Add an access list entry
banner Define a login banner
boot Boot Commands
cdp Global CDP configuration subcommands
clock Configure time-of-day clock
crypto Encryption module
do To run exec commands in config mode
enable Modify enable password parameters
end Exit from configure mode
exit Exit from configure mode
hostname Set system's network name
interface Select an interface to configure
ip Global IP configuration subcommands
line Configure a terminal line
logging Modify message logging facilities
mac MAC configuration
mac-address-table Configure the MAC address table
no Negate a command or set its defaults
port-channel EtherChannel configuration
privilege Command privilege parameters
service Modify use of network based services
snmp-server Modify SNMP engine parameters
--More--
View the 24 ports in configuration mode:
ps: The word FastEthernet0/1 means Fast Ethernet 0/1
Convert global configuration mode to interface configuration mode:
Switch(config-if)#interface f0/1
Switch(config-if)#
Convert global configuration mode to vlan configuration mode:
Switch(config)#vlan 4
Switch(config-vlan)#
5. Mode switching diagram
2. Switch name, password and other settings
1. In global mode-rename the switch
In global mode:
Switch(config)#hostname song
song(config)#
2. In interface mode - configure port speed and working mode
2.1 Configure port speed
song(config-if)#speed ?
10 Force 10 Mbps operation
100 Force 100 Mbps operation
auto Enable AUTO speed configuration
ps: By default, it will automatically match 10Mbps or 100Mbps
song(config-if)#speed 10
song(config-if)#speed 100
song(config-if)#speed auto
song(config-if)#
2.2 Configure working mode
song(config-if)#duplex ?
auto Enable AUTO duplex configuration
full Force full duplex operation
half Force half-duplex operation
3. In privileged mode - View switch history commands
In principle, you can scroll up to find all the historical commands one by one, but it is inconvenient.
song#show running-conf
Building configuration...
Current configuration : 975 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname song
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
--More--
4.Revocation of order
Some commands can be overwritten to achieve the purpose of undoing and writing again, but some commands can only be completed by undoing and writing again.
song(config-if)#speed 100
song(config-if)#no speed 100
song(config-if)#