F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
950
Default
No IPv6 policy is applied on an interface.
Views
Interface view
Default command level
2: System level
Parameters
policy-name: Specifies the policy name, a string of 1 to 19 characters.
Usage guidelines
You can apply only one policy on an interface. If you perform this command multiple times, only the last
specified policy takes effect.
Examples
# Apply IPv6 policy AAA on GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ipv6 policy-based-route AAA
ipv6 policy-based-route (system view)
Use ipv6 policy-based-route to create an IPv6 policy node, and enter IPv6 policy node view. If the
specified IPv6 policy node already exists, the command directly places you into IPv6 policy node view.
Use undo ipv6 policy-based-route to remove an IPv6 policy, an IPv6 policy node, or both.
Syntax
ipv6 policy-based-route policy-name [ deny | permit ] node node-number
undo ipv6 policy-based-route policy-name [ deny | node node-number | permit ]
Views
System view
Default command level
2: System level
Parameters
policy-name: Specifies a policy name, a string of 1 to 19 characters.
deny: Specifies the match mode of the policy node as deny.
permit: Specifies the match mode of the policy node as permit.
node node-number: Specifies the number of the IPv6 policy node, in the range of 0 to 65535. Packets are
matched against the node with a smaller node-number first.
Examples
# Create permit-mode of Node 10 for IPv6 policy aaa, and enter IPv6 policy node view.
<Sysname> system-view
[Sysname] ipv6 policy-based-route aaa permit node 10
[Sysname-pbr6-aaa-10]