Computer arp -a arp table view
Computer arp -s IPadd MAC bindings for arp
Computer arp -d to clear the arp cache
View router arp -a arp table
Routers were arp arp IPadd MAC binding
Routers clear arp-cache clear arp cache
ip route NETWORK MASK IPadd configure a static route
Under the current configuration show running-config privileged view (sh run)
Under show startup-config privileged to view the saved configuration (sh star)
Copy running-config startup-config privileged save the current configuration
(= wr = copy run star)
Privilege under erase nvram delete a saved configuration
line con 0, password password, login password console port
enable password password configuration privileged password
enable secret password to configure privileges cipher text password
service password-encryption to encrypt the plaintext password
Router Password Recovery: Hold down Ctrl + break key
modify the value of the register reset confreg 0x2142 Restart
copy startup-config running-config manually load profile
Config-register 0x2102 value back to register
copy running-config startup-config to save the current configuration
Switch Password Recovery: Hold down the mode button
flash_init initialization flash
rename flash:config.text flash:config.old
Config.text modify the file name (not the boot loader configuration file)
Restart the switch boot
copy flash: config.text system: running- config
manually load profile
int vlan 1 enters configuration mode vlan1
line vty 0 4 01 234 Open remote port
ip default-gateway switch configured default gateway IP gateway
copy tftp flash through tftp router IOS upgrade
by backup copy flash tftp tftp IOS router
Return an exit mode
end return directly to the privileged mode
disable return from the global to the privileged mode
vlan vlan database to enter configuration mode
create vlan vlan vlan No.
switchport mode access interface configured to access a mode
switchport access vlan 10 will be assigned to an interface vlan10
View vlan show vlan brief information
show vlan 10 View vlan10
View vlan show vlan-switch information (gns3)
switchport trunk encapsulation isl / dot 1q
configuration vlan encapsulation
switchport trunk native vlan 1配置native vlan
switchport mode trunk interface relay mode
switchport mode dynamic desirable
interface configured to dynamically desired mode
switchport mode dynamic auto
interface configured to dynamically automatic mode
int range f0 / 0 -1 simultaneously enter f0 / 0 to f0 / 1 Interface
dhcp ip dhcp pool NAME defined address pool
network NETWORK MASK allocated segment defined dhcp
default-router GATEWAY gateway allocates defined dhcp
dns-server DNS-IP configuration assigned dns
lease DAYS configuration lease
ip dhcp excluded-address IPadd IPadd
the dhcp address reserved
int f0 / 0.1 enter f0 / 0 interface to a first sub-
encapsulation dot1q 10 vlan10 package label
vtp domain NAME configured and named vtp
vtp mode server / client / transparent
configuration mode vtp
vtp password password configuration vtp password
vtp show vtp status Check configuration confidence
vtp pruning vtp pruning configuration
Note: All capital letters are not fixed command entry
Reproduced in: https: //blog.51cto.com/14373424/2403791