路由器的管理与基础配置
3.6路由器基本命令
show version
show flash
show interface
show ip protocols
show ip router
show host
router(config)#host name hangzhou
banner start_delimiter message end_delimiter
router(config)#banner motd % enter text message,end with the character ‘%’,this the motd banner %
show host
clear host hanzhou
clear host *
router(config)# no ip domain-lookup
telnet ip
exit
<ctrl+shift+6><X>
show sessions
connect_number
disconnect connect_number
ping ip
ping <enter>
extended commands[n]: yes
trace ip
trace <enter>
3.5CLI命令行的使用
c?
clock?
Terminal no history
Terminal history 20
Show history
3.4CDP协议
定时器
router>show cdp
global cdp information
sending cdp packets every 60 seconds
sending a holdtime value of 180 seconds
查看cdp邻居信息
show cdp neighbors
show cdp entry name
show cdp entry *
router(config)# cdp run
router(config)#interface s0
router(cnfig-if)#cdp enable
3.3路由器的配置
配置文件
startup-config nvram
running-config ram
命令提示与模式
command interpreter
router>
router#
router(config)#
router(config-mode)#
setup
rom moniter
配置文件的管理
router#show running-config
router#show startup-config
router#copy stratup-config running-config
route(config)#eraser startup-config
3.2路由器的启动
1 om硬件检测程序
2 om-bootstrap 初步引导
3寻找IOS
register=ox2100
0x2101
0x2102
4 vram-startup-config if no ->SETUP模式
3.1路由器的组成
cpu
rom
flash
nvram
ram
interface
ethernet0,serial1
console port
auxiliary port