2015年计算机四级网工考试:路由器配置命令
Router > enable
Password :
Router #
Router # configure terminal
Router (config) #
Router (config) # int f0/12
Router (config-if) #
Router (config) # line vty 0 15
Router (config-line) #
Router (config) # router rip
Router (config-router) #
2、配置远程登录密码
Router (config) # line vty 0 15
Router (config-line) # password 7 zzz307
3、拷贝配置文件到TFTP Server
Router # write network
4、拷贝running-config 到TFTP Server
Router # copy running-config tftp:
5、拷贝bootflash 中的配置文件到TFTP Server
Router # copy bootflash : tftp :
6、从TFTP Server 拷贝配置文件到路由器
Router # copy tftp : running-config
7、将TFTP Server 上的配置文件拷贝到bootflash
Router # copy tftp : bootflash :
8、配置路由器的主机名
Router (config) #hostname Router-phy
9、配置超级用户口令
Router (config) # enable secret phy123
10、设置系统时钟
Router # calendar set 10:24:00 30 march 2009
11、保存配置
Router # write memory
Router # write network tftp
12、删除配置
Router # write erase
13、基本检测命令(telnet、ping、trace)
Router > telnet paris/222.34.27.1
Router > ping 182.105.130.110
Router > trace 137.189.11.73
Router > traceroute www.cisco.com
14、查看flash、系统时钟、软硬件版本、路由器配置、查看路由表、IP路由协议的详细信息
Router > show flash
Router > sh clock
Router > sh version
Router # sh configuration
Router # sh ip route
Router # sh ip protocols
15、配置接口描述信息
Router (config-if) # description To-BeiJing Foreign Studies University
16、配置接口带宽
Router (config-if) # bandwidth 2500,000
17、配置接口的IP地址
Router (config-if) # ip address 202.112.7.249 255.255.255.252
18、接口的开启与关闭
Router (config-if) # shutdown/no shutdown
19、不作ARP代理
Router (config-if) # duplex ful
l# no ip directed-broadcast
# no ip proxy-arp
20、配置异步串行接口
Router (config) # interface a1
Router (config-if) # ip unnumbered ethernet0
Router (config-if) # encapsulation ppp
Router (config-if) # async default ip address 202.112.7.129
Router (config-if) # async dynamic routing
Router (config-if) # async mode interactive
Router (config-if) # no shutdown
Router (config-if) # exit
Router (config) # exit
Router (config) #