383
Task Command
Remarks
Display VLAN QoS policy
information.
display qos vlan-policy
{
name
policy-name
|
vlan
vlan-id
} [
slot
slot-number
] [
inbound
|
outbound
]
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in
any view
Display information about global
QoS policies.
display qos policy global
[
slot
slot-number
]
[
inbound
|
outbound
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in
user view
PBR configuration examples
Configuring local PBR based on packet type
Network requirements
As shown in
, configure PBR on Switch A, so that all TCP packets are forwarded to next hop
1.1.2.2 and other packets are forwarded according to the routing table.
Switch A is directly connected to Switch B and Switch C. Switch B and Switch C are unreachable to each
other.
Figure 123
Network diagram
Configuration procedure
1.
Configure Switch A:
# Define 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 of 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
[SwitchA-pbr-aaa-5] apply ip-address next-hop 1.1.2.2
[SwitchA-pbr-aaa-5] quit
# Apply policy
aaa
to Switch A.
[SwitchA] ip local policy-based-route aaa
# 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 255.255.255.0
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20