|
|||||||
CCNA: Access Control Lists
This is the command syntax format of a standard ACL. access-list access-list-number {permit|deny} Standard ACL example: access-list 10 permit 192.168.2.0 0.0.0.255 This list allows traffic from all addresses in the range 192.168.2.0 to 192.168.2.255 Note that when configuring access lists on a router, you must identify each access list uniquely by assigning either a name or a number to the protocol's access list. There is an implicit deny added to every access list. If you entered the
command: access-list 10 permit 192.168.2.0 0.0.0.255 Extended Access Control Lists: Extended IP ACLs allow you to permit or deny traffic from specific IP addresses to a specific destination IP address and port. It also allows you to have granular control by specifying controls for different types of protocols such as ICMP, TCP, UDP, etc within the ACL statements. Extended IP ACLs range from 100 to 199. In Cisco IOS Software Release 12.0.1, extended ACLs began to use additional numbers (2000 to 2699). The syntax for IP Extended ACL is given below:access-list access-list-number {deny | permit} protocol source
source-wildcard Note that the above syntax is simplified, and given for general understanding only. Extended ACL example:access-list 110 - Applied to traffic leaving the office (outgoing) access-list 110 permit tcp 92.128.2.0 0.0.0.255 any eq 80 ACL 110 permits traffic originating from any address on the 92.128.2.0 network. The 'any' statement means that the traffic is allowed to have any destination address with the limitation of going to port 80. The value of 0.0.0.0/255.255.255.255 can be specified as 'any'. Applying an ACL to a router interface:After the ACL is defined, it must be applied to the interface (inbound or outbound). The syntax for applying an ACL to a router interface is given below: interface <interface> An Access List may be specified by a name or a number. "in" applies the ACL to the inbound traffic, and "out" applies the ACL on the outbound traffic. Example: To apply the standard ACL created in the previous example, use the following commands: Rouer(config)#interface serial 0 Example Question: Which command sequence will allow only traffic from network 185.64.0.0 to enter interface s0? A. access-list 25 permit 185.64.0.0 255.255.0.0 B. access-list 25 permit 185.64.0.0 255.255.0.0 C. access-list 25 permit 185.64.0.0 0.0.255.255 D. access-list 25 permit 185.64.0.0 0.0.255.255 Correct answer: D Explanation: The correct sequence of commands are:
|
|||||||
|
Copyright © 2000-2012 SimulationExams.com practice tests and certification training |