R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
290
[RouterA-gigabitethernet2/0/1] port link-mode bridge
[RouterA-gigabitethernet2/0/1] quit
# Create VLAN 100 and VLAN 200 on Router A and assign GigabitEthernet 2/0/0 and
GigabitEthernet 2/0/1 to VLAN 100 and VLAN 200 respectively.
[RouterA] vlan 100
[RouterA-vlan100] quit
[RouterA] vlan 200
[RouterA-vlan200] quit
[RouterA] interface gigabitethernet2/0/0
[RouterA-gigabitethernet2/0/0] port access vlan 100
[RouterA-gigabitethernet2/0/0] quit
[RouterA] interface gigabitethernet2/0/1
[RouterA-gigabitethernet2/0/1] port access vlan 200
[RouterA-gigabitethernet2/0/1] quit
# Create advanced ACL 3000.
[RouterA] acl number 3000
[Route A-acl-adv-3000]rule permit ip
[Route A-acl-adv-3000] quit
# Create a policy and define node 1, setting the next hop to 30.1.1.2 for packets matching ACL 3000.
[Route A] policy-based-route aaa node 1
[Route A-pbr-aaa-1] if-match acl 3000
[Route A-pbr-aaa-1] apply ip-address next-hop 30.1.1.2
[Route A-pbr-aaa-1] quit
# Configure interface PBR on VLAN-interface 200.
[Route A] interface Vlan-interface 200
[Route A-Vlan-interface200] ip policy-based-route aaa
[Route A-Vlan-interface200] quit
# Create a class named aaa, and use ACL 3000 as the match criterion in the class. Create a behavior
named aaa, and configure the action of redirecting traffic to the next hop 30.1.1.2.
[Route A] traffic classifier aaa
[Route A-classifier-aaa] if-match acl 3000
[Route A-classifier-aaa] quit
[Route A] traffic behavior aaa
[Route A-behavior-aaa] redirect next-hop 30.1.1.2
[Route A-behavior-aaa] quit
[Route A] qos policy 1
[Route A-qospolicy-1] classifier aaa behavior aaa
[Route A-qospolicy-1] quit
[Route A ]qos vlan-policy 1 vlan 200 inbound