Ipv4 Pbr Configuration Example (Using A Qos Policy) - HPE 5800 Series Configuration Manual

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

Advertisement

# Configure the IP address of VLAN-interface 10.
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] ip address 1.1.2.2 255.255.255.0
Configure Switch C:
3.
# Configure a static route to subnet 10.110.0.0/24.
<SwitchC> system-view
[SwitchC] ip route-static 10.110.0.0 24 1.1.3.1
# Configure the IP address of VLAN-interface 20.
[SwitchC] interface vlan-interface 20
[SwitchC-Vlan-interface20] ip address 1.1.3.2 255.255.255.0
Verify the configuration:
4.
Configure the IP address 10.110.0.20/24 for Host A, and specify its gateway address as
10.110.0.10.
On Host A, Telnet to Switch B that is directly connected to Switch A. The operation succeeds.
On Host A, Telnet to Switch C that is directly connected to Switch A. The operation fails.
Ping Switch C from Host A. The operation succeeds.
Telnet uses TCP and ping uses ICMP. The preceding results show that all TCP packets
received on VLAN-interface 11 of Switch A are forwarded to the next hop 1.1.2.2, and other
packets are forwarded via VLAN-interface 20. The interface PBR configuration is effective.

IPv4 PBR configuration example (using a QoS policy)

Network requirements
As shown in
hop 202.1.1.2.
Figure 108 Network diagram
Configuration procedure
# Configure ACL 2000.
<SwitchA> system-view
[SwitchA] acl number 2000
[SwitchA-acl-basic-2000] rule 0 permit source any
[SwitchA-acl-basic-2000] quit
# Define a match criterion for class a to match ACL 2000.
[SwitchA] traffic classifier a
[SwitchA-classifier-a] if-match acl 2000
[SwitchA-classifier-a] quit
Figure
108, redirect all packets received on GigabitEthernet 1/0/1 of Switch A to the next
374

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents