The prerequisites for Policy Routing feature setting are:
1, the firmware of the switch is k.15.06 and later version;
2, the switch hardware module is the V2 version of the module. Here is a set of my own Policy Routing cases, please refer to, thank you!
Assume that traffic sent from the 10.0.8.1/24 network segment to the 15.29.16.104/24 network segment is forwarded from the 20.0.0.1:
Hpswitch (config) #classipv4test新增名为test的class
Hpswitch (Config-class) #matchip10.0.8.1/2415.29.16.104/24 set the traffic that conforms to 10.0.8.1/24 source, 15.29.16.104/24 for the purpose
Hpswitch (Config-class) #exit
Hpswitch (config) #policypbrabc创建名为abc的策略路由
Hpswitch (POLICY-PBR) #classipv4test启用之前设定名为test的class
Hpswitch (policy-pbr-class) #actionipnext-hop20.0.0.1 set to the next hop IP for 20.0.0.1
Hpswitch (Policy-pbr-class) #exit
Hpswitch (POLICY-PBR) #exit
Hpswitch (config) #vlan10进入vlan
Hpswitch (vlan-10) #service-policyabcin Apply Policy Routing to the corresponding VLAN