思科路由器命令
1、show inventory
查看思科设备序列号
2、show module
查看思科设备模块
3、思科设备添加ACL
(1)show access-lists
查看ACL
(2)configure terminal
进入配置模式
(3)ip access-list standard telnet-filter(ACL名字)
进入特定ACL列表修改
(4)40 permit 172.16.186.175
添加允许策略
4、思科设备配置备份
(1)copy running-config tftp:
(2)172.16.45.101
远程tftp服务器IP
(3)输入生成的文件名
5、ssh版本升级
(1)show ip ssh
查看ssh版本
(2)crypto key generate rsa
生成rsa秘钥对
(3)2048
模数长度,越长越安全,至少768才能使用版本2
(4)configure terminal
进入配置模式
(5)ip ssh version 2
设置版本号为2
参考链接:
https://blog.csdn.net/manml/article/details/71004200
6、思科设备命名
hostname XXXX
7、show ospf neighbor
查看ospf邻居
8、cdp enable
在接口下开启cdp协议,cdp是cisco的设备发现协议
9、show platform
查看电源模块状态
10、show clock
查看时间
11、ospf链路密文认证
(1)声明验证方式为密文验证
ip ospf authentication message-digest
(2)设置MD5秘钥,链路两端路由器秘钥要相同
ip ospf message-digest-key key-id md5 key
https://wenku.baidu.com/view/ca74ca2d31b765ce050814bc.html
12、write
保存配置