Pbr Configuration Examples; Packet Type-Based Local Pbr Configuration Example - HP 6125XLG Layer 3 - Ip Routing Configuration Manual

Blade switch
Hide thumbs Also See for 6125XLG:
Table of Contents

Advertisement

Task
Display local PBR configuration and statistics.
Display interface PBR configuration and
statistics.
Clear PBR statistics.

PBR configuration examples

Packet type-based local PBR configuration example

Network requirements
As shown in
Switch A forwards other packets according to the routing table.
Figure 80 Network diagram
Switch A
Configuration procedure
1.
Configure Switch A:
# Create VLAN 10 and VLAN 20.
<SwitchA> system-view
[SwitchA] vlan 10
[SwitchA-vlan10] quit
[SwitchA] vlan 20
[SwitchA-vlan20] quit
# Configure the IP addresses of VLAN-interface 10 and VLAN-interface 20.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 1.1.2.1 24
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ip address 1.1.3.1 24
[SwitchA-Vlan-interface20] quit
# Configure ACL 3101 to match TCP packets.
[SwitchA] acl number 3101
[SwitchA-acl-adv-3101] rule permit tcp
[SwitchA-acl-adv-3101] quit
# Configure Node 5 for policy aaa to forward TCP packets to next hop 1.1.2.2.
[SwitchA] policy-based-route aaa permit node 5
[SwitchA-pbr-aaa-5] if-match acl 3101
Figure
80, configure PBR on Switch A to forward all TCP packets to the next hop 1.1.2.2.
Vlan-int10
1.1.2.1/24
Vlan-int20
1.1.3.1/24
Command
display ip policy-based-route local [ slot slot-number ]
display ip policy-based-route interface interface-type
interface-number [ slot slot-number ]
reset ip policy-based-route statistics [ policy policy-name ]
Switch B
Vlan-int10
1.1.2.2/24
Vlan-int20
1.1.3.2/24
Switch C
318

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5920 series5900 series

Table of Contents