XGS 3-42000R(config-if-Vlan3)#ipv6 address 3100::1/64
XGS 3-42000R(config-if-Vlan3)#ipv6 neighbor 3100::2 00-00-00-00-00-03 interface Ethernet 1/5
XGS 3-42000R(config)# ipv6 access-list extended b1
XGS 3-42000R(config-IP v6-Ext-Nacl-b1)# permit tcp 2000:: /64 any-destination
XGS 3-42000R(config-IP v6-Ext-Nacl-b1)#exit
XGS 3-42000R(config)#mls qos
XGS 3-42000R(config)#class-map c1
XGS 3-42000R(config-ClassMap)#match ipv6 access-group b1
XGS 3-42000R(config-ClassMap)# exit
XGS 3-42000R(config)#policy-map p1
XGS 3-42000R(config-P olicyMap)#class c1
XGS 3-42000R(config-P olicy-Class)# set ipv6 nexthop 3100::2
XGS 3-42000R(config--Policy-Class)#exit
XGS 3-42000R(config-P olicyMap)#exit
XGS 3-42000R(config)#interface ethernet 1/1
XGS 3-42000R(config-Ethernet1/1)#service-policy input p1
Configuration result:
First, set an ACL containing one ent ry, names it as b1, matching source IP segment 2000::/64(permit).
Globally enable QoS function, create a class-map:c1, and match ACL b1 in the class-map. Create a
policy-map: p1, quoting c1 in p1, and set the next hop as 3100::2. Apply this policy-map on port ethernet 1/1.
After that, the messages whose source IP are within the segment 2000::/64 received on port ethernet 1/1 will
be forwarded through 3100::2.
19.4 PBR Troubleshooting Help
At present, policy-map can only be bound to input port but not output port.
Since hardware resources are limited, if the policy is too complicated to configure, relative information
will be noticed to users.
19-3