Common Cisco command

Router experiment:
Router> enable from user mode to enter the privileged mode
router # disable or exit to exit from privileged mode to user mode
router # show sessions View TELNET session on this machine
router # disconnect close all TELNET session
router # show users to view the machine users on the
router # erase startup-config to delete the configuration in NVRAM
router # reload and reboot the router
router # config terminal to enter the privileged mode from user mode
router (config) #hostname r1 configure a user named r1
router (config) # Configuring Power is available for purchase Banner discourse
router # show controllers serial0 0 See serial physical layer information, primarily to see the DTE / the DCE
Router # Show View IP interface IP configuration of a port
router # show hosts See table host
end or ctrl + z exit from the configuration mode to the various privileged mode

R1 (config) #no IP-Lookup Domain
R1 (config) #ip-Domain Lookup
after r1 (config) #ip name-server 202.106.0.20 open specify the DNS Dynamic DNS Service
r1 (config) #interface serial 0 into the serial 0 the interface configuration mode
r1 (config) # no shutdown router factory default all ports are closed, use this command to open
r1 (config-if) #encapsulation ppp package the PPP
R1 (config-IF) #clockrate 64000 If the clock rate needs to be set so that DCE , if it is not necessary to provide DTE
r1 (config-if) #bandwidth 64 is provided to port bandwidth 64K
R1 (config-IF) # Ctrl ctrl + z + C or shortcut key to exit privileged mode
r1 # show interface serial 0 s0 view information, if test the serial and line protocol showed up, explained at both ends of the link setup success
r1 # show cdp neighbors view the CDP neighbor information
r1 (config-if) #ip add 10.0.0.1 255.0.0.0 enter the interface, assign an IP address
r1 # ping 10.0.0.2 use the ping command to check the neighbor connectivity
r1 # show ip route routing table
r1 (config-if) #route rip Enable RIP routing protocol
r1 (config-router) #network 10.0.0.0 release segment.
r1 # show ip protocol to view the configuration of routing protocols
r1 (config) #router igrp 300 plus pay attention behind the IGRP autonomous system number
r1 (config) #line vty0 4 to enter the virtual thread configuration mode, you can telnet to function in this mode configuration
r1 (config-line) #password cisco configuration telnet password, default network devices telnet function is turned off automatically after opening configured password
r1 (config) #enable password cisco password to enter the configuration mode enable case-sensitive
r1 ( config) #enable serect ciscocisco enable entering the configuration mode code, encryption, show run invisible
R1 (config) #line Console 0
R1 (config-Line) #login
R1 (config-Line) #Password Cisco configuration mode user enters the password
r1 (config-line) #logging sysnchronous input synchronization
r1 (config-line) # exec -timeout 0 0 prohibited because there is no input period of time out of
r1 # copy running-config startup- config save the configuration

Guess you like

Origin www.cnblogs.com/fenlinji/p/11934916.html