启用路由器HTTP访问
: e0 o, ^! s+ E, q2 w8 X 提问 通过浏览器来配置和管理路由器1 x. F3 |2 s- g5 g
回答
2 R7 b0 X% s8 z, W: l s0 U Router1#configure terminal
: u/ x8 i4 r$ \ Enter configuration commands, one per line. End with CNTL/Z.
1 n |. t4 D+ s- e: ` Router1(config)#access-list 75 permit 172.25.1.1
5 V, M& ]/ t/ ~6 [( o Router1(config)#access-list 75 deny any4 E- x/ D+ M1 Y6 N; Y
Router1(config)#ip http server4 u2 d2 j( Z( Z6 ]; E6 T3 s# L
Router1(config)#ip http access-class 75+ B: D I2 P6 ]: `, c, Q) i1 s" o
Router1(config)#end
1 H' G& R7 V% E* ~ s Router1#& t# \. @! n/ o1 ~* M
注释 由于IOS 12.1(5)之前存在HTTP访问的高危漏洞,所以如果你的IOS版本小于此版本建议不要开启此服务 |