
ACL question
Task:
Using a minimal numer of config lines, allow R1 to accept only the following routes from R8:
172.16.107.0/24
192.168.2.0/24
192.168.3.0/24
My answer:
ip access-list standard ALLOW-ROUTES
permit 128.0.2.0 108.184.105.0
Router EI 20
distribute-list ALLOW-ROUTES in
This works.
Answer book suggests:
access-list 10 permit 0.0.2.0 255.255.253.0
Anyone care to suggest what automatic grading would do in this scenario?
Comments
Hi,
After doing the binary math I see that your answer is correct :
1010 1100 0001 0000 0110 1011 00000000
1100 0000 1010 1000 0000 0010 00000000
1100 0000 1010 1000 0000 0011 00000000
—————————————————————————————
10000000 00000000 00000010 00000000 = > 128.0.2.0
01101100 10111000 01101001 0000 0000 = > 108.184.105.0
The grading script could do smth similar to this :
show ip rou eigrp | i IP_ADD_OF_R8
check output vs the 3 subnets
Or depeding on the restrictions, probably that a scenario like this would be graded just by matching the output of sh access-list X.