background image
Answers to the Chapter 7 Q&A Section 761
15
Describe the types of packets that this filter would discard, and tell at what point they
would be discarded.
Only packets coming from Andy exit Mayberry's Serial 0 interface. Packets originating
inside the Mayberry router--for example, a ping command issued from Mayberry, will
work because the IOS will not filter packets originating in that router. Opie is still out of
luck--he'll never get (a packet) out of Mayberry!
16
Does the access list in Example A-1 stop packets from getting to Web server Governor?
Why or why not?
Packets from Andy can get to Web server Governor; packets from Mount Pilot can be
delivered to Governor if the route points directly from Mount Pilot to Raleigh so that the
packets do not pass through Mayberry. Therefore, the access list, as coded, stops only
hosts other than Andy on the Mayberry Ethernet from reaching Web server Governor.
17
Referring to Figure A-1, create and enable access lists so that access to Web server
Governor is allowed from hosts at any site, but so that no other access to hosts in Raleigh
is allowed.
! this access-list is enabled on the Raleigh router
access-list 130 permit tcp 180.3.5.0 0.0.0.255 host 144.155.3.99 eq www
access-list 130 permit tcp 180.3.7.0 0.0.0.255 host 144.155.3.99 eq www
!
interface serial 0
ip access-group 130 in
This access list performs the function, but it also filters IGRP updates as well. That is part
of the danger with inbound access lists; with outbound lists, the router will not filter
packets originating in that router. With inbound access lists, all packets entering the
interface are examined and could be filtered. An IGRP protocol type is allowed in the
extended access-list command; therefore, IGRP updates easily can be matched. The
command access-list 130 permit igrp any performs the needed matching of IGRP
updates, permitting those packets. (This command would need to appear before any
statements in list 130 that might match IGRP updates.)
Example A-1
Access List at Mayberry
access-list 44 permit 180.3.5.13 0.0.0.0
!
interface serial 0
ip access-group 44
apA.fm Page 761 Monday, March 20, 2000 5:24 PM