Cisco网络教材:路由器的配置详细解析
145.1.1.1为运行TFTP的服务器,也是路由器配置文件所在的主机。
如出现提示:“There are no usable interface configured for ip”表明路由器的Ethernet 0(以太网口)未配置好。
配置Ethernet 0:
router#conf t
router(config)#int e0
router(config-if)ip address 145.1.1.5
router(config-if)#no shutdown
router(config-if)#exit
router(config)#exit
router#wr(保存到启动配置中)
Name of configuration file[router-config]?2511(配置文件名)
configure using 2511 from 145.1.1.1?[confirm]
显示:
Loading 2511 from 145.1.1.1(via Ethernet0)
[ok-1553/32723 bytes]
拷贝运行配置到启动配置文件NVRAM中:
Router#copy runnig-config startup-config
输入Router#i或重新开启路由器电源以重新启动路由器。
备份运行配置到服务器中:
router#copy runnig-config ftfp
Remote host[]145.1.1.1
Name of configuration file to write
[router-config] 2511bf
write file 2511bf on host 145.1.1.1?[confirm]
显示:Writing 2511bf!![ok] 至此,路由器配置完成。