H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – NAT, Netstream, Policy Routing
H3C S7500 Series Ethernet Switches Chapter 3
Policy Routing Configuration Commands
3-2
Matches: Acl 2000 rule 0 running
Redirected to: next-hop 3.3.3.3 slot 6
# Display policy routing configuration on VLAN–interface 2.
<H3C> display qos-vlan 2 traffic-redirect
Vlan 2 traffic-redirect
Inbound:
Matches: Acl 2000 rule 0 running
Redirected to: next-hop 3.3.3.3 slot 6
3.1.2 traffic-redirect inbound ip-group
Syntax
1) Redirect packets to a specified VLAN interface
traffic-redirect inbound ip-group { acl-number | acl-name } [ rule rule [ system-index
index ] ] interface vlan-interface interface-number [ remark { dscp dscp |
{ precedence precedence | tos tos }* } ] slot slot-number
undo traffic-redirect inbound ip-group { acl-number | acl-name } [ rule rule ]
2) Redirect packets to a specified IP address
traffic-redirect inbound ip-group { acl-number | acl-name } [ rule rule [ system-index
index ] ] next-hop ipaddr &1-3 [ remark { dscp dscp | { precedence precedence | tos
tos }* } ] slot slot-number
undo traffic-redirect inbound ip-group { acl-number | acl-name } [ rule rule ]
View
VLAN view
Parameters
acl-number: ACL number, ranging from 2000 to 3999.
acl-name: ACL name, a string of 1 to 32 characters.
rule rule: Specifies a rule in the ACL. The rule argument represents the number of an
ACL rule and ranges from 0 to 127. If rule rule is not provided, all rules in the specified
ACL will be applied.
system-index index: Specifies a system index for the specified ACL rule. The two
parameters are optional. The index argument ranges from 0 to 4,294,967,295. When
an ACL rule is applied, the system automatically assigns a system index to the rule for
search purpose. But you can also manually specify a system index for an ACL rule
when executing these commands. Generally, you are not recommended to do so.
interface vlan-interface interface-number: Specifies the VLAN interface to which
packets are redirected. The interface-number argument is the index of a VLAN
interface, which ranges from 2 to 4094.