OcNOS-RON : Quality of Service Guide : Quality of Service Configuration Guide : WRED Configuration : L2/L3 Interface
L2/L3 Interface
The following steps describe how to configure WRED.
 
#configure terminal
Enter configure mode.
(config)#qos enable
Enable QoS globally.
(config)#qos statistics
Enable QoS statistics.
(config)#commit
Committing the configuration
(config)#class-map type qos match-all C1
Configure class-map of type qos with name C1, and enter into class-map mode
(config-cmap-que)#match cos 1
Configure match cos value 1
(config-cmap-que)#exit
Exit out of class-map mode
(config)#policy-map type qos p1
Configure plicy-map of type qos with name p1, and enter into policy-map mode
(config-cmap-que)#class type qos C1
Enter class-map configuration mode
(config-pmap-c-qos)# police cir 100 mbps pir 200 mbpsexit
Configure police rate of cir 100 mbps and pir 200 mbpsExit out of class-map mode
(config-pmap-c-qos)#exit
Exit out of policy-class mode
(config-pmap-qos)#exit
Exit out of policy-class mode
(config)#policy-map type queuing default p3
Configure policy-map of type queuing with name p3, and enter into policy-map mode
(config-pmap-que-def)#class type queuing default q0
Enter class type of type queuing default configuration mode for q0
(config-pmap-c-que-def)#wrr-queue weight 10
Configure WRR weight of 10
(config-pmap-c-que-def)#random-detect min-threshold 50 max-threshold 80 kbytes
Configure WRED for minimum threshold of 50 kbytest and maximum threshold of 80 kbytes of queue size.
(config-pmap-c-que-def)#random-detect weight 1
Configure random-detect weight 1
(config-pmap-c-que-def)#exit
Exit out of class configuration mode
(config-pmap-que-def)#exit
Exit out of configuration mode
(config)#interface xe3
Enter interface mode
(config-if)#service-policy type queuing output P3
Attach service-policy p3 of type queuing on out direction
(config-if)#exit
Exit out of interface mode
(config)#interface xe2
Enter interface mode
(config-if)#service-policy type qos input p1
Attach service-policy p1 of type qos on in direction
(config-if)#exit
Exit out of interface mode
(config)#bridge 1 protocol rstp vlan-bridge
Specify VLAN for bridge 1.
(config)#vlan database
Enter the VLAN configuration mode.
(config-vlan)#vlan 2-3 bridge 1 state enable
Enable VLAN (2-3) on bridge 1. Specifying the enable state.
(config-vlan)#exit
Exit the VLAN configuration mode.
(config)#interface vlan1.2
Enter interface mode.
(config-if)# ip address 10.1.1.2/24
Configure the IP address.
(config-if)#exit
Exit the interface mode.
(config)#interface vlan1.3
Enter interface mode.
(config-if)# ip address 20.1.1.1/24
Configure the IP address.
(config-if)#exit
Exit the interface mode.
(config)#interface xe2
Enter interface mode.
(config-if)#switchport
Configure xe2 as a Layer 2 port.
(config-if)#bridge-group 1
Associate the interface with bridge group 1.
(config-if)#switchport mode trunk
Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all
Allow all the VLANs on the xe3 interface.
(config-if)#exit
Exit the interface mode.
(config)#interface xe3
Enter interface mode.
(config-if)#switchport
Configure xe3 as a Layer 2 port.
(config-if)#bridge-group 1
Associate the interface with bridge group 1.
(config-if)#switchport mode trunk
Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all
Allow all the VLANs on the xe3 interface.
(config-if)#exit
Exit the interface mode.
(config)#commit
Committing the configuration
Last modified date: 07/14/2023