Setting the Bandwidth Value for a VE Interface
The current bandwidth value for a VE interface can be set and communicated to higher-level
protocols such as OSPF.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
vlancommand and specify a value to configure a VLAN. - Enter the
tagged ethernetcommand and specify an interface to add a port that is connected to the device and host in the same port-based VLAN. - Enter the
router-interface vecommand and specify a value to create a virtual interface as the routing interface for the VLAN.Creates VE 10 as the routing interface for the VLAN. - Enter the
interface vecommand and specify a value.Creates a VE interface with the VLAN ID of 10. - Enter the
bandwidthcommand and specify a value to set the bandwidth value on the interface.
This example sets the bandwidth to 2000 kbps on a specific VE interface .
device# configure terminal device(config)# vlan 10 device(config-vlan-10)# tagged ethernet 1/1/1 device(config-vlan-10)# router-interface ve 10 device(config-vlan-10)# interface ve 10 device(config-vif-10)# bandwidth 2000
The bandwidth specified in this example results in the following OSPF cost, assuming the auto-cost is 100:
OSPF cost is equal to ((100 * 1000) + (2000 - 1)/ 2000) = 50