Rule (Ipv6 Basic Acl View) - HP 6125G Command Reference Manual

Acl and qos command reference
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

Within an ACL, the permit or deny statement of each rule must be unique. If the ACL rule you are creating
or editing has the same deny or permit statement as another rule in the ACL, your creation or editing
attempt will fail.
To view rules in an ACL and their rule IDs, use the display acl ipv6 all command.
If an IPv6 advanced ACL is for QoS traffic classification or packet filtering:
Do not specify the fragment or routing keyword, or specify neq for the operator argument.
Do not specify the flow-label keyword if the ACL is for outbound QoS traffic classification or
outbound packet filtering.
The counting keyword (even if specified) does not take effect for QoS traffic classification.
Related commands: acl ipv6, display ipv6 acl, step, and time-range.
Examples
# Create an IPv6 ACL rule to permit TCP packets with the destination port 80 from 2030:5060::/64 to
FE80:5060::/96.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule permit tcp source 2030:5060::/64 destination fe80:5060::/96
destination-port eq 80
# Create IPv6 advanced ACL rules to permit all IPv6 packets but the ICMPv6 packets destined for
FE80:5060:1001::/48.
<Sysname> system-view
[Sysname] acl ipv6 number 3001
[Sysname-acl6-adv-3001] rule permit ipv6
[Sysname-acl6-adv-3001] rule deny icmpv6 destination fe80:5060:1001:: 48
# Create IPv6 advanced ACL rules to permit inbound and outbound FTP packets.
<Sysname> system-view
[Sysname] acl ipv6 number 3002
[Sysname-acl6-adv-3002] rule permit tcp source-port eq ftp
[Sysname-acl6-adv-3002] rule permit tcp source-port eq ftp-data
[Sysname-acl6-adv-3002] rule permit tcp destination-port eq ftp
[Sysname-acl6-adv-3002] rule permit tcp destination-port eq ftp-data
# Create IPv6 advanced ACL rules to permit inbound and outbound SNMP and SNMP trap packets.
<Sysname> system-view
[Sysname] acl ipv6 number 3003
[Sysname-acl6-adv-3003] rule permit udp source-port eq snmp
[Sysname-acl6-adv-3003] rule permit udp source-port eq snmptrap
[Sysname-acl6-adv-3003] rule permit udp destination-port eq snmp
[Sysname-acl6-adv-3003] rule permit udp destination-port eq snmptrap

rule (IPv6 basic ACL view)

Syntax
rule [ rule-id ] { deny | permit } [ counting | fragment | routing [ type routing-type ] | source
{ ipv6-address prefix-length | ipv6-address/prefix-length | any } | time-range time-range-name ] *
undo rule rule-id [ counting | fragment | routing | source | time-range ] *
28

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents