填空题
网络技术
2017-01-09
根据如下拓扑图配置(1)~(5)实现拒绝PC2所在网段访问路由器R2,同时只允许主机PC3访问路由器R2的TELNET服务,整个网络配置保证IP的连通性。
参考答案
暂无
答案解析
R2(config)#router rip
R2(config)#version 2
R2(config-router)#network 2.2.2.0 0.0.0.255
R2(config-router)#network 192.168.12.0
R2(config-router)#network 192.168.23.0
R2(config-router)#no auto-summary
R2(config)# (1)access-list 1 172.16.1.0 0.0.0.255 //定义ACL
R2(config)# (2)access-list 1 permit any
R2(config)# (3)int s0/0/0
R2(config-if)#(4)ip access-group 1 in //在接口下应用ACL
R2(config)# (5)access-list 2 permit host 172.16.3.1
R2(config-if)#line vty 0 4
R2(config-line)#access-class 2 in //在vty下应用ACL
R2(config-line)#password cisco
R2(config-line)#login //配置路由器R3
R2(config)#version 2
R2(config-router)#network 2.2.2.0 0.0.0.255
R2(config-router)#network 192.168.12.0
R2(config-router)#network 192.168.23.0
R2(config-router)#no auto-summary
R2(config)# (1)access-list 1 172.16.1.0 0.0.0.255 //定义ACL
R2(config)# (2)access-list 1 permit any
R2(config)# (3)int s0/0/0
R2(config-if)#(4)ip access-group 1 in //在接口下应用ACL
R2(config)# (5)access-list 2 permit host 172.16.3.1
R2(config-if)#line vty 0 4
R2(config-line)#access-class 2 in //在vty下应用ACL
R2(config-line)#password cisco
R2(config-line)#login //配置路由器R3
你可能感兴趣的试题
A.丢掉该分组
B.将该分组分片
C.转发该分组
D.以上答案均不对