Cisco router: commond configuration overview (3)
Set the host name:
Router (config hostname set-hostname) #
Router (config) # ^ Z
Router (config) # ^ Z
Set user mode code:
Router (config) line console 0 #
Router (config-line) # login
Router (config-line password set-password) #
Router (config-line) # ^ Z
Set the telnet password:
Router (config) line vty 04 #
Router (config-line) # login
Router (config-line password set-password) #
Router (config-line) # ^ Z
Set the privileged mode password:
Router (config) enable password set-password # < -- the password is not encrypted, password -- >
Router (config) enable secret set-password # < -- the encrypted password -- >
Router (config) # ^ Z
For all the password encryption:
Router (config) service password-ancryption set-password-here #
Router (config) no service password-ancryption # < -- cancel encryption -- >
Router (config) # ^ Z
Set the login banner:
Router (config banner MOTD) # separator set-banner-information-here delimiters < -- before and after the delimiter must agree -- >
Set interface description information:
Router (config-if description set-port-information-here) #
Router (config) # ^ Z
The control of cdp:
Router (config-if CDP enable) # < -- in the designated port enable CDP, default -- >
Router (config-if) no CDP enable # < -- close CDP -- > in the designated port
Router (config CDP run) # < -- that all ports enable CDP -- >
Router (config) no CDP run # < -- that all ports closed CDP -- >
The use of ping:
Router# Ping IP-address
Router# Ping < -- extended ping command -- >
Protocol [ip]:[protocol-type] < -- select the protocol type -- >
Target IP address:ip-address < -- input test address -- >
Repeat count [5]: < -- choose to send ICMP packet number -- >
Datagram size [100]: < -- choose the size of each package -- >
Timeout in seconds [2]: < -- set each packet timeout -- >
Extended commands [n]:y < -- using the extended ping command -- >
Sweep range of sizes [n]:
The use of tra>Router# trace IP-address [host-name]
Cisco 4000 router specified media type:
Router (config-if media-type 10baset) # < -- the AUI (the default) failure, modified to use RJ-45 -->
Router (config-if) # ^ Z
Change the startup sequence of routers:
Router (config) boot system flash ios-filename #
Router (config) boot system TFTP ios-filename tftp-ip-address #
Router (config) boot system ROM #
Router (config) # ^ Z
Modify register values:
Router (config config-register value) # < -- Cisco default value = 0x2102, value range: 0x2100(enter ROM monitor), 0x2101 (the system boot from ROM to 0x210f (0x2102), enables the system to boot from NVRAM). 0x1 = 0x2101, starting from the smallest bit change -- >
Change the register values in the ROM monitor:
> o/r value
Router password recovery:
Cold shutdown, then start again and in 60 seconds press ctrl>+ to enter the ROM monitor mode
> o/r 0x2142 > > confreg <--25xx router or 0x2142 <--16xx router
Router> I
Router> n
Router> enable
Router# copy startup-config running-config
Router# configure terminal
Router (config) enable secret new-password #
Router (config config-register 0x2102) #
Router (config) # ^ Z
Router# copy running-config startup-config
Router# reload
Configuration name - main entrance:
Router (config) # IP host set-name [tcp-port-number] IP-address [IP-address 2..
Router (config) # ^ Z
The definition of the DNS host:
Router (config) IP name-server server-address # [server-address 2..
Router (config) # ^ Z
Disable dns:
Router (config) no IP domain-lookup #
Router (config) # ^ Z configuration level segmentation:
Router (config-if IP split-horizon) #
Router (config-if) no IP split-horizon #
Router (config-if) # ^ Z
Static router configuration:
Router (config) IP route IP-address subnet-mask # [next-hop-address [distace local-out-port]] |
< -- distance range: 1 ~ 255, equivalent to the priority, the smaller the better. Rip=120;dspf=110; igrp=100; eigrp=90 -- >
Router (config) # ^ Z
Configure a default router:
Router (config) IP defoult-network IP-address # < -- Dynamic default route -- >
Router (config) IP route 0.0.0.0 0.0.0.0 # [next-hop-address local-out-port [distace]] | < -- Staticdefault route -- >
Router (config) # ^ Z
Other commands:
Router# show version
Router# show running-config
Router# show startup-config
Router# show flash
Router# show interface [type port]
Router# show buffers
Router# show protocol
Router# show mem
Router# show stacks
Router# show processes
Router# show CDP entry [device-name] < -- display the specified neighbor three layers of information -- >
Router# show cdp neighbors
Router# show cdp neighbors detail < -- shows all the neighbors three layers of information - >
Router# show IP router
Router# show IPX router
Router# show host
Router# show ip protocol
Router# show IP interface type port
Router# show IPX interface type port
Router# show IPX servers
Router# show IPX traffic
Router# show access-lists [acl-number]
Router# show ISDN status
Router# show dialer < -- Viewing the ISDN dial information -- >
Router# show ISDN active
Router# show frame-relay PVC
Router# show frame-relay map
Router# show frame-relay LMI
Router# erase startup-config
Router# reload
Router# setup
Router# copy running-config startup-config
Router# copy startup-config running-config
Router# copy TFTP running-config
Router# copy running-config TFTP
Router# debug IPX routing activity
Router# debug IPX SAP
Router# debug ISDN q921
Router# debug ISDN Q931
Router# debug dialer
Router# debug IP rip
Router# clear interface bri
Cisco 2911 price discount news on 3anetwork.com.