Interface Pbr Configuration Example (Based On Packet Type) - HPE 5800 Series Configuration Manual

Layer 3 - ip routing
Hide thumbs Also See for 5800 Series:
Table of Contents

Advertisement

Configuration procedure
Configure Switch A:
1.
# Configure ACL 3101 to match TCP packets.
<SwitchA> system-view
[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 via Vlan-int 10.
[SwitchA] policy-based-route aaa permit node 5
[SwitchA-pbr-aaa-5] if-match acl 3101
[SwitchA-pbr-aaa-5] apply ip-address next-hop 1.1.2.2
[SwitchA-pbr-aaa-5] quit
# Configure local PBR by applying policy aaa on Switch A.
[SwitchA] ip local policy-based-route aaa
# Configure the IP addresses for VLAN-interface 10 and VLAN-interface 20.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 1.1.2.1 255.255.255.0
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ip address 1.1.3.1 255.255.255.0
Configure Switch B:
2.
# Configure the IP address of VLAN-interface 10.
<SwitchB> system-view
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] ip address 1.1.2.2 255.255.255.0
Configure Switch C:
3.
# Configure the IP address of VLAN-interface 20.
<SwitchC> system-view
[SwitchC] interface vlan-interface 20
[SwitchC-Vlan-interface20] ip address 1.1.3.2 255.255.255.0
Verify the configuration:
4.
# Telnet to Switch B (1.1.2.2/24) from Switch A. The operation succeeds.
# Telnet to Switch C (1.1.3.2/24) from Switch A. The operation fails.
# Ping Switch C (1.1.3.2/24) from Switch A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets of
Switch A are forwarded to the next hop 1.1.2.2, and other packets are forwarded via
VLAN-interface 20. The local PBR configuration is effective.

Interface PBR configuration example (based on packet type)

Network requirements
As shown in
VLAN-interface 11 via VLAN-interface 10. Switch A forwards other packets according to the routing
table.
Figure
107, configure interface PBR on Switch A to forward all TCP packets received on
372

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents