Cisco Switch
configuration commands
1. Mode conversion command
User mode ----
privileged mode, use the command "enable"
Privileged mode
---- global configuration mode, use the command "config t"
Global
Configuration Mode ---- interface mode, use the command "interface +
interface type + interface number"
Global
Configuration Mode ---- wire mode, use the command "line + interface type
+ interface number"
Note:
User Mode: View
initialized information
Privileged mode: view
all information, debugging, save the configuration information
Global mode:
configure all the information, aim at all the interfaces of the router or
switch
Interface mode:
configuration for a particular interface
Wire mode:
interface configuration for the router controlling
2. Configuration commands
show running
config Show all configurations
show versin Display the version number and register values
shut down
Close the interface
no shutdown Open the interface
ip add +ip
address Configure the IP
address
secondary+IP address
Configure the second IP address for the interface
show interface +
interface type +interface number View the interface Manageability
show controllers
interface Check whether the interface has the DCE
cable
show history View history memory
show terminal Check the terminal record size
hostname+ host
name Configure the identification of the router
or switch
config memory Modify the startup configuration stored in NVRAM
exec timeout 0 0 Set the session timeout of console panel to be 0
service
password-encryptin Manually encrypt all passwords
enable password +
password Configure the cleartext password
ena sec + password
Configure the ciphertext password
line vty 0 4/15 Enter into the telnet interface
password +
password Configure telnet password
line aux 0 Enter into the AUX interface
password +password
Configure the password
line con 0 Enter into the CON Interface
password +
password Configure the password
bandwidth+ digit Configure Bandwidth
no ip address Delete the configured IP address
show startup
config View configuration information in the NVRAM
copy run-config
atartup config Save information into the NVRAM
erase
startup-config Delete the configuration information of the NVRAM
show ip interface
brief View the summery information of interface
banner motd # +information
+ # Configure the description information of the router or
switch
description+ information Configure the description information of the interface
vlan database Enter into VLAN database mode
vlan +vlan number+
name Create VLAN
switchport access
vlan +vlan number Set an interface for the VLAN
interface vlan
+vlan number Enter intoVLAN interface mode
ip add +ip
address Configure the IP address management for the VLAN
vtp+service/tracsparent/client Configure the VTP mode of SW
vtp +domain+
domain name Configure the VTP domain name of SW
vtp +password +password Configure the password of SW
no vlan +vlan
number Delete VLAN
More related topics:
No comments:
Post a Comment