Enter keywords to search.
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 ACL-based Redirection
Configuring ACL-based Redirection
ACL-based redirection allows the device to redirect packets matching an ACL to the CPU, a specified interface, or a specified next hop address.
Procedure
Configuring ACL-based redirection globally or in a VLAN
Run:
system-view
The system view is displayed.
Run the following commands as required.
Run:
traffic-redirect [ vlan vlan-id ] inbound acl { [ ipv6 ] { bas-acl | adv-acl | name acl-name } | l2-acl | user-acl } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device is configured
to redirect incoming packets matching an ACL.
Run:
traffic-redirect [ vlan vlan-id ] inbound acl l2-acl [ rule rule-id ] acl { bas-acl | adv-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device
is configured to redirect incoming packets matching Layer 2 and Layer 3 ACLs.
Run:
traffic-redirect [ vlan vlan-id ] inbound acl { bas-acl | adv-acl } [ rule rule-id ] acl { l2-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device
is configured to redirect incoming packets matching Layer 2 and Layer 3 ACLs.
Run:
traffic-redirect [ vlan vlan-id ] inbound acl name acl-name [ rule rule-id ] acl { bas-acl | adv-acl | l2-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device is configured to redirect incoming packets matching Layer 2 and Layer 3 ACLs.
Configuring ACL-based redirection on an interface
Run:
system-view
The system view is displayed.
Run:
interface interface-type interface-number
The interface view is displayed.
Run the following commands as required.
Run:
traffic-redirect inbound acl { [ ipv6 ] { bas-acl | adv-acl | name acl-name } | l2-acl | user-acl } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device is configured to redirect incoming packets matching an ACL.
Run:
traffic-redirect inbound acl l2-acl [ rule rule-id ] acl { bas-acl | adv-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device is configured to redirect incoming packets matching Layer 2 and Layer 3 ACLs.
Run:
traffic-redirect inbound acl { bas-acl | adv-acl } [ rule rule-id ] acl { l2-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device is configured to redirect incoming packets matching
Layer 2 and Layer 3 ACLs.
Run:
traffic-redirect inbound acl name acl-name [ rule rule-id ] acl { bas-acl | adv-acl | l2-acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip-nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop }
The device
is configured to redirect incoming packets matching Layer 2 and Layer 3 ACLs.
Updated: 2020-12-26
Document ID: EDOC1000141882
Views: 67616
Downloads: 26
Average rating:
This Document Applies to these Products