
Access Control List Commands
4-95
4
This shows that the entries in the mask override the precedence in which the rules
are entered into the ACL. In the following example, packets with the source address
10.1.1.1 are dropped because the “deny 10.1.1.1 255.255.255.255” rule has the
higher precedence according the “mask host any” entry.
This shows how to create a standard ACL with an ingress mask to deny access to
the IP host 171.69.198.102, and permit access to any others.
Console(config)#access-list ip standard A2
Console(config-std-acl)#permit 10.1.1.0 255.255.255.0
Console(config-std-acl)#deny 10.1.1.1 255.255.255.255
Console(config-std-acl)#exit
Console(config)#access-list ip mask-precedence in
Console(config-ip-mask-acl)#mask host any
Console(config-ip-mask-acl)#mask 255.255.255.0 any
Console(config-ip-mask-acl)#
Console(config)#access-list ip standard A2
Console(config-std-acl)#permit any
Console(config-std-acl)#deny host 171.69.198.102
Console(config-std-acl)#end
Console#show access-list
IP standard access-list A2:
deny host 171.69.198.102
permit any
Console#configure
Console(config)#access-list ip mask-precedence in
Console(config-ip-mask-acl)#mask host any
Console(config-ip-mask-acl)#exit
Console(config)#interface ethernet 1/1
Console(config-if)#ip access-group A2 in
Console(config-if)#end
Console#show access-list
IP standard access-list A2:
deny host 171.69.198.102
permit any
Console#
Summary of Contents for ES3628C
Page 2: ......
Page 4: ...ES3628C F3 1 0 18 E032005 R01 149100005100H...
Page 38: ...Introduction 1 10 1...
Page 48: ...Initial Configuration 2 10 2...
Page 281: ...IP Routing 3 233 3 Web Click Routing Protocol RIP Statistics Figure 3 133 RIP Statistics...
Page 326: ...Configuring the Switch 3 278 3...
Page 652: ...Command Line Interface 4 326 4...
Page 666: ...Glossary Glossary 8...
Page 672: ...Index 6 Index...
Page 673: ......
Page 674: ...ES3628C E032005 R01 149100005100H...