No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a User ACL6

Configuring a User ACL6

A User ACL6 defines rules to filter packets.

Usage Scenario

To process different types of traffic, users can configure a User ACL6 to perform traffic policing, traffic shaping, or traffic classification on traffic that matches the ACL6 rules.

Configuration Procedures

Figure 11-7 Flowchart for configuring a user ACL6

(Optional) Creating a Validity Period in Which an ACL6 Rule Takes Effect

You can create a validity period for an ACL6 rule to control network traffic in a specified period.

Context

To control certain types of traffic in a specified period, you can configure the validity period of an ACL6 rule to determine the time traffic passes through. For example, to ensure reliable transmission of video traffic at prime time at night, you need to limit the volume of traffic for common online users.

After this configuration task is performed, a time range is created. Then, you can specify the time range as the validity period when creating an ACL6 rule.

The validity period of an ACL6 rule can be either of the following types:

  • Absolute time range: The validity period is fixed.

  • Relative time range: The validity period is a periodic period, for example, each Monday.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run time-range time-name { start-time to end-time days &<1-7> | from time1 date1 [ to time2 date2 ] }

    A validity period is created.

    • You can configure up to 256 time ranges.
    • Up to 32 relative time ranges (periodic time ranges) and 12 absolute time ranges can share one time range name.

  3. Run commit

    The configuration is committed.

Creating a User ACL6

You can create a user ACL6 and configure parameters for the ACL6.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run acl ipv6 { name ucl-acl6-name ucl | number ucl-acl6-number } [ match-order { auto | config } ]

    A user ACL6 is created.

    The user ACL6 number ranges from 6000 to 9999.

  3. (Optional) Run step step

    An ACL6 step is set.

    You can use an ACL6 step to maintain ACL6 rules and add new ACL6 rules conveniently.
    NOTE:
    Assume that a user has created four rules numbered from 1 to 4 in an ACL6. The user can reconfigure the ACL6 step, for example, to 2 by running the step 2 command in the ACL6 view. The original rule numbers 1, 2, 3, and 4 are renumbered as 2, 4, 6, and 8, respectively. After that, the user can run the rule 3 xxxx command to add a rule numbered 3 between the renumbered rules 2 and 4.

  4. (Optional) Run description text

    The ACL6 description is configured.

    The description command configures a description for an ACL6 in any of the following situations:

    • A large number of ACL6s are configured, and their functions are difficult to identify.
    • An ACL6 is used at a long interval, and its function may be left forgotten.
    • Names of named ACL6s cannot fully explain the ACL6s' functions.

  5. Run commit

    The configuration is committed.

Configuring a User ACL6 Rule

User ACL6s match packets based on the source/destination IPv6 address, source/destination service group, source/destination user group, source/destination port number, and protocol type.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run acl ipv6 { name ucl-acl6-name ucl | number ucl-acl6-number } [ match-order { auto | config } ]

    The user ACL6 view is displayed.

  3. Run any of the following commands to create an advanced ACL6 rule:

    • When protocol is specified as UDP, run:

      rule [ rule-id ] [ name rule-name ] { deny | permit } { protocol | udp } [ [ dscp dscp | [ precedence precedence | tos tos ] * ] | source { ipv6-address { source-ipv6-address { prefix-length | source-wildcard } | source-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | destination { ipv6-address { destination-ipv6-address { prefix-length | destination-wildcard } | destination-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | source-port operator port-number | destination-port operator port-number | fragment | traffic-class traffic-class | time-range time-name | logging ] *

    • When protocol is specified as TCP, run:

      rule [ rule-id ] [ name rule-name ] { deny | permit } { protocol | tcp } [ [ dscp dscp | [ precedence precedence | tos tos ] * ] | source { ipv6-address { source-ipv6-address { prefix-length | source-wildcard } | source-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | destination { ipv6-address { destination-ipv6-address { prefix-length | destination-wildcard } | destination-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | source-port operator port-number | destination-port operator port-number | fragment | traffic-class traffic-class | time-range time-name | logging ] *

    • When protocol is specified as ICMPv6, run:

      rule [ rule-id ] [ name rule-name ] { deny | permit } { protocol | icmpv6 } [ [ dscp dscp | [ precedence precedence | tos tos ] * ] | source { ipv6-address { source-ipv6-address { prefix-length | source-wildcard } | source-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | destination { ipv6-address { destination-ipv6-address { prefix-length | destination-wildcard } | destination-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | icmp6-type { icmp6-type-name | icmp6-type icmp6-code } | fragment | traffic-class traffic-class | time-range time-name | logging ] *

    • When protocol is specified as a protocol other than TCP, UDP, and ICMPv6, run:

      rule [ rule-id ] [ name rule-name ] { deny | permit } { protocol | gre | ipv6-esp | ipv6 | ipv6-ah | ospf } [ [ dscp dscp | [ precedence precedence | tos tos ] * ] | source { ipv6-address { source-ipv6-address { prefix-length | source-wildcard } | source-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | destination { ipv6-address { destination-ipv6-address { prefix-length | destination-wildcard } | destination-ipv6-address/prefix-length | any } | any | [ service-group { service-group-name | any } | user-group { user-group-name | any } ] } | fragment | traffic-class traffic-class | time-range time-name | logging ] *

    Adding new rules to an ACL6 will not affect the existing rules.

    When an existing rule is edited and the edited contents conflict with the original contents, the edited contents take effect.

  4. (Optional) Run rule description text

    The description for an ACL6 rule is configured.

    The description of an ACL6 rule can contain the functions of the ACL6 rule. Configuring a description for an ACL6 rule is recommended to prevent misuse of the rule in the following situations:
    • A large number of ACL6s are configured, and their functions are difficult to identify.
    • An ACL6 is used at a long interval, and its function may be left forgotten.

  5. Run commit

    The configuration is committed.

Applying a User ACL6

User ACL6s can be used in QoS services.

Context

Table 11-5 describes the typical applications of User ACL6s.

Table 11-5 Typical applications of User ACL6s

Typical Application

Usage Scenario

Operation

QoS

To process different types of traffic, users can configure a User ACL6 to perform traffic policing, traffic shaping, or traffic classification on traffic that matches the ACL6 rules.

To find out more about the procedures for processing different types of traffic, see how to configure traffic policing, traffic shaping, and traffic behavior.

Verifying the Configuration of a User ACL6

After configuring a user ACL6, verify the configuration.

Prerequisites

All configurations of the user ACL6 are configured.

Procedure

  • Run the display acl ipv6 { acl6-number | name acl6-name | all } command to view user ACL6 configurations.
  • Run the display time-range { time-name | all } command to view the configuration and status in a specified time range or all time ranges.

Example

Run the display acl ipv6 command to view the ACL6 number, rule quantity, and rule information.

<HUAWEI> display acl ipv6 6000
UCL IPv6 ACL 6000, 3 rules
IPv6 ACL's step is 5
 rule 1 permit icmp
 rule 5 permit ipv6 source ipv6-address 2001:DB8:100::/48 destination ipv6-address 2001:DB8:200::/48 
 rule 10 deny ipv6 source service-group any destination user-group any 

Run the display time-range command to view the configuration and status in the current time range.

<HUAWEI> display time-range all
Current time is 2015-03-15 10:01:45 Wednesday

Time-range : time1 ( Inactive )
 10:00 to 12:00 daily
Time-range : time2 ( Inactive )
 from 13:00 2006/4/1 to 23:59 2099/12/31  
Time-range : active1 ( Active )
 14:00 to 00:00 daily  
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 21922

Downloads: 48

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next