l
Names of DiffServ domains
l
802.1p priorities of packets from Branch 1 and Branch 2 of the enterprise
l
CoS of Branch 1 and Branch 2 of the enterprise
Procedure
Step 1
Create VLANs and configure interfaces.
# Create VLANs 100, 200, and 300.
<Quidway>
system-view
[Quidway]
sysname Switch
[Switch]
vlan batch 100 200 300
# Configure the type of GE 0/0/1, GE 0/0/2, and GE 0/0/3 as trunk, add GE 0/0/1 to VLAN 100,
add GE 0/0/2 to VLAN 200, and add GE 0/0/3 to VLAN 100, VLAN 200, and VLAN 300.
[Switch]
interface gigabitethernet0/0/1
[Switch-GigabitEthernet0/0/1]
port link-type trunk
[Switch-GigabitEthernet0/0/1]
port trunk allow-pass vlan 100
[Switch-GigabitEthernet0/0/1]
quit
[Switch]
interface gigabitethernet0/0/2
[Switch-GigabitEthernet0/0/2]
port link-type trunk
[Switch-GigabitEthernet0/0/2]
port trunk allow-pass vlan 200
[Switch-GigabitEthernet0/0/2]
quit
[Switch]
interface gigabitethernet0/0/3
[Switch-GigabitEthernet0/0/3]
port link-type trunk
[Switch-GigabitEthernet0/0/3]
port trunk allow-pass vlan 100 200 300
[Switch-GigabitEthernet0/0/3]
quit
# Create VLANIF 300 and assign interface IP address uo192.168.1.1/24 to VLANIF 300.
[Switch]
interface vlanif 300
[Switch-Vlanif300]
ip address 192.168.1.1 24
NOTE
Assign IP address 192.168.1.2/24 to the interface connecting the router and the Switch.
Step 2
Create and configure DiffServ domains.
# Create DiffServ domains
ds1
and
ds2
and map 802.1p priorities of packets from Branch 1 and
Branch 2 of the enterprise to PHBs and colors.
[Switch]
diffserv domain ds1
[Switch-dsdomain-ds1]
8021p-inbound 0 phb af4 green
[Switch-dsdomain-ds1]
quit
[Switch]
diffserv domain ds2
[Switch-dsdomain-ds2]
8021p-inbound 0 phb af2 green
[Switch-dsdomain-ds2]
quit
Step 3
Bind DiffServ domains to interfaces.
# Bind DiffServ domains
ds1
and
ds2
to GE 0/0/1, and GE 0/0/2 respectively.
[Switch]
interface gigabitethernet0/0/1
[Switch-GigabitEthernet0/0/1]
trust upstream ds1
[Switch-GigabitEthernet0/0/1]
quit
[Switch]
interface gigabitethernet0/0/2
[Switch-GigabitEthernet0/0/2]
trust upstream ds2
[Switch-GigabitEthernet0/0/2]
quit
----End
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
40