[疑惑] CCNA考试求解

楼主: ichiro1987 (shiang)   2016-04-28 16:40:30
请教各位高手
小弟本人最近去考CCNA遇到的实作题类似如下:
CORRECT TEXT
A network associate is adding security to the configuration of the Corp1
router. The user on host C should
be able to use a web browser to access financial information from the Finance
Web Server. No other hosts from the LAN nor the Core should be able to use a
web browser to access this server. Since there are multiple resources for the
corporation at this location including other resources on the Finance Web
Server, all other traffic should be allowed.
The task is to create and apply an access-list with no more than three
statements that will allow ONLY host C web access to the Finance Web Server.
No other hosts will have web access to the Finance Web Server. All other
traffic is permitted.
Access to the router CLI can be gained by clicking on the appropriate host.
All passwords have been temporarily set to "cisco".
The Core connection uses an IP address of 198.18.196.65.
The computers in the Hosts LAN have been assigned addresses of 192.168.33.1
192.168.33.254
- host A 192.168.33.1
- host B 192.168.33.2
- host C 192.168.33.3
- host D 192.168.33.4
The servers in the Server LAN have been assigned addresses of 172.22.242.17 -
172.22.242.30.
The Finance Web Server is assigned an IP address of 172.22.242.23.
附上解答
Answer:
Select the console on Corp1 router Configuring ACL
Corp1>enable
Corp1#configure terminal
Corp1(config)#access-list 100 permit tcp host 192.168.33.3 host 172.22.242.23
eq 80
Corp1(config)#access-list 100 deny tcp any host 172.22.242.23 eq 80
Corp1(config)#access-list 100 permit ip any any
Corp1(config)#interface fa 0/1
Corp1(config-if)#ip access-group 100 out
Corp1(config-if)#end
Corp1#copy running-config startup-config
我按照他的方式去输入答案,在执行到下面这行指令的时候出现这样的结果
Corp1(config)#access-list 100 permit tcp host 192.168.33.3 host 172.22.242.23
eq 80
% Invalid input detected at ‘^’ marker.
一时之间不知道该如何修正,后来也就GG了只好再去考一次,有哪位高手可以救救我一下
让我知道我错在哪里
作者: voodist (小虫)   2016-04-28 20:29:00
自己用模拟器跑跑看不就知道了......
作者: gv390 (我讨厌我喜欢妳)   2016-05-01 14:46:00
我印象当初考这题没问题啊..刚刚还跑去翻考古题会不会是你指令打错?Corp1的IP show一下,或许一开始就有问题了
作者: wst2080   2016-05-03 15:49:00
考虑试试看用 access-list 101

Links booklink

Contact Us: admin [ a t ] ucptt.com