路由器基本设置

基础命令
#进入特权模式
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
......
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值