30
Figure 7 Network diagram
Configuration procedure
1.
Configure trusting port priority:
# Set the port priority of GigabitEthernet 1/0/1 to 3.
<Router> system-view
[Router] interface gigabitethernet 1/0/1
[Router-GigabitEthernet1/0/1] qos priority 3
[Router-GigabitEthernet1/0/1] quit
# Set the port priority of GigabitEthernet 1/0/2 to 4.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] qos priority 4
[Router-GigabitEthernet1/0/2] quit
# Set the port priority of GigabitEthernet 1/0/3 to 5.
[Router] interface gigabitethernet 1/0/3
[Router-GigabitEthernet1/0/3] qos priority 5
[Router-GigabitEthernet1/0/3] quit
2.
Configure the priority mapping table:
# Configure the 802.1p-to-local mapping table to map 802.1p priority values 3, 4, and 5 to local
precedence values 2, 6, and 4. This guarantees the R&D department, management
department, and marketing department decreased priorities to access the public server.
[Router] qos map-table dot1p-lp
[Router-maptbl-dot1p-lp] import 3 export 2
[Router-maptbl-dot1p-lp] import 4 export 6
[Router-maptbl-dot1p-lp] import 5 export 4
[Router-maptbl-dot1p-lp] quit
Host
Server
R & D
department
Internet
Router
GE1/0/1
GE1/0/2
GE1/0/3
GE1/0/4
Marketing
department
Host
Server
Host
Server
Management
deparment
Public servers
GE1/0/5
Data server
Mail server