The second permit entry is necessary because an implicit deny -all condition is at the end of each IPv6 access
list.
Switch(config)#
ipv6 access-list CISCO
Switch(config-ipv6-acl)#
deny tcp any any gt 5000
Switch config-ipv6-acl)#
deny ::/0 lt 5000 ::/0 log
Switch(config-ipv6-acl)#
permit icmp any any
Switch(config-ipv6-acl)#
permit any any
Example: Applying IPv6 ACLs
This example shows how to apply the access list Cisco to outbound traffic on a Layer 3 interface.
Switch(config-if)# no switchport
Switch(config-if)# ipv6 address 2001::/64 eui-64
Switch(config-if)# ipv6 traffic-filter CISCO out
Example: Configuring PACL Mode and Applying IPv6 PACL on an Interface
Device#
configure terminal
Device(config)#
ipv6 access-list list1
Device(config-ipv6-acl)#
exit
Device(config-if)#
ipv6 traffic-filter list1 in
Example: IPv6 ACL Extensions for Hop by Hop Filtering
Device(config)#
ipv6 access-list hbh_acl
Device(config-ipv6-acl)#
permit tcp any any hbh
Device(config-ipv6-acl)#
permit tcp any any
Device(config-ipv6-acl)#
permit udp any any
Device(config-ipv6-acl)#
permit udp any any hbh
Device(config-ipv6-acl)#
permit hbh any any
Device(config-ipv6-acl)#
permit any any
Device(config-ipv6-acl)#
hardware statistics
Device(config-ipv6-acl)#
exit
! Assign an IP address and add the ACL on the interface.
Device(config)#
interface FastEthernet3/1
Device(config-if)#
ipv6 address 1001::1/64
Device(config-if)#
ipv6 traffic-filter hbh_acl in
Device(config-if)#
exit
Device(config)#
exit
Device#
clear counters
Clear "show interface" counters on all interfaces [confirm]
Device#
! Verify the configurations.
Device#
show running-config interface FastEthernet3/1
Building configuration...
Current configuration : 114 bytes
!
interface FastEthernet3/1
no switchport
ipv6 address 1001::1/64
ipv6 traffic-filter hbh_acl
end
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1231
Configuration Examples for IPv6 ACLs
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......