最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

路由器基本设置

常识 admin 4浏览 0评论

路由器基本设置

基础命令

#进入特权模式
Router>en
进入全局配置模式
Router#conf ter
#退出
Router(config)#exit  
保存配置到
Router#copy running-config startup-config   
重载配置
Router#reload     
#保存配置到tftp服务器 
Router#copy running-config tftp:172.20.78.1



文件流

show命令

CDP

cdp实验图

R1#conf ter
R1(config)#int e0/0
R1(config-if)#no shutdown
R1(config-if)#int s1/1 
R1(config-if)#no shutdown
R1(config-if)#end
R2>en
R2#cont ter
R2#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#int e0/0
R2(config-if)#no shutdown
R2(config-if)#int s1/1
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#end
R1#show cdp
Global CDP information:
        Sending CDP packets every 30 seconds
        Sending a holdtime value of 120 seconds
        Sending CDPv2 advertisements is  enabled
.....
R1#show cdp int  
........
R1#show cdp neighbors
......
R1#show cdp entry R2
.......
R1#clear cdp table
R1(config-if)#exit
R1(config)#no cdp run //以上是在整个路由器上关闭cdp
R1(config)#cdp run //在整个路由器上打开cdp
R1(config)#cdp timer 30 //调整CDP 消息发送时间为30 秒
R1(config)#cdp holdtime 120
//调整CDP 消息的holdtime 为120 秒,对方收到该路由器发送的CDP 消息后将保持120 秒
R1#show cdp
......

路由器基本设置

基础命令

#进入特权模式
Router>en
进入全局配置模式
Router#conf ter
#退出
Router(config)#exit  
保存配置到
Router#copy running-config startup-config   
重载配置
Router#reload     
#保存配置到tftp服务器 
Router#copy running-config tftp:172.20.78.1



文件流

show命令

CDP

cdp实验图

R1#conf ter
R1(config)#int e0/0
R1(config-if)#no shutdown
R1(config-if)#int s1/1 
R1(config-if)#no shutdown
R1(config-if)#end
R2>en
R2#cont ter
R2#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#int e0/0
R2(config-if)#no shutdown
R2(config-if)#int s1/1
R2(config-if)#no shutdown
R2(config-if)#clock rate 128000
R2(config-if)#end
R1#show cdp
Global CDP information:
        Sending CDP packets every 30 seconds
        Sending a holdtime value of 120 seconds
        Sending CDPv2 advertisements is  enabled
.....
R1#show cdp int  
........
R1#show cdp neighbors
......
R1#show cdp entry R2
.......
R1#clear cdp table
R1(config-if)#exit
R1(config)#no cdp run //以上是在整个路由器上关闭cdp
R1(config)#cdp run //在整个路由器上打开cdp
R1(config)#cdp timer 30 //调整CDP 消息发送时间为30 秒
R1(config)#cdp holdtime 120
//调整CDP 消息的holdtime 为120 秒,对方收到该路由器发送的CDP 消息后将保持120 秒
R1#show cdp
......
发布评论

评论列表 (0)

  1. 暂无评论