Cisco IOS Cookbook 中文精简版第二章路由器管理…

2008-02-23 04:55:08来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

为了安全期间不想让邻近设备发现自己设备的信息

回答

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#cdp run

Router1(config)#interface FastEthernet0/0

Router1(config-if)#no cdp enable

Router1(config-if)#end

Router1#

注释 为了安全期间可以在边界设备上禁止CDP

2.7. 小服务的开启

提问 开启或者禁用一些类似finger的小服务

回答

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#service tcp-small-servers no service tcp-small-servers

Router1(config)#service udp-small-servers (no sercie udp-small-servers)

Router1(config)#end

Router1#

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#ip finger (no ip finger)

Router1#

注释 tcpudp的小服务指开启路由器的echo,discard,daytimechargen服务,为了安全期间都建议将其关闭

2.8. 启用路由器HTTP访问

提问 通过浏览器来配置和管理路由器

回答

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#access-list 75 permit 172.25.1.1

Router1(config)#access-list 75 deny any

Router1(config)#ip http server

Router1(config)#ip http access-class 75

Router1(config)#end

Router1#

注释 由于IOS 12.1(5)之前存在HTTP访问的高危漏洞,所以如果你的IOS版本小于此版本建议不要开启此服务

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Cisco IOS Cookbook 中文精简版第三章用户访问和权限管理

下一篇:Cisco IOS Cookbook 中文精简版第一章路由器配置和文件管理