You can adjust shaping rates to account for different layer 2 encapsulations as well as the ATM cell pad, header, and trailer on interfaces with cell shaping mode using the qos-byte-adjustment application.
![]() |
Note: When you apply a parameter with the qos-byte-adjustment application to an interface with frame shaping mode, you adjust shaping rates to account for different layer 2 encapsulations only. |
To associate a parameter instance with the byte adjustment application:
- host1(config)#traffic-class voice
- host1(config-traffic-class)#exit
- host1(config)#traffic-class best-effort
- host1(config-traffic-class)#exit
- host1(config)#qos-parameter-define byteadjust1
application qos-byte-adjustment
- host1(config-qos-parameter-define)#controlled-interface-type
vlan
- host1(config-qos-parameter-define)#controlled-interface-type
ip
- host1(config-qos-parameter-define)#instance-interface-type
vlan
Frame shaping mode is the default for Ethernet interfaces on all E-series routers. You can only set the cell shaping mode for Gigabit Ethernet and 10-Gigabit Ethernet interfaces configured on the GE-2 line module, the GE-HDE line module, and the ES2 4G LM.
- host1(config)#qos-parameter-define cell-mode
application qos-cell-mode
In this example, parameter instances are created for both the byte adjustment and QoS cell mode applications.
- host1(config)#interface gigabitEthernet 7/0
- host1(config-if)#encapsulation vlan
- host1(config-if)#exit
- host1(config)#interface gigabitEthernet 7/0.1
- host1(config-if)#vlan id 1
- host1(config-if)#qos-parameter byteadjustment
-16
- host1(config-if)#qos-parameter cell-mode 1
- host1(config-if)#ip address 1.1.1.1 255.255.255.0