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.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the vlan command and specify a value to configure a VLAN.
    device(config)# vlan 10
  3. Enter the tagged ethernet command and specify an interface to add a port that is connected to the device and host in the same port-based VLAN.
    device(config-vlan-10)# tagged ethernet 1/1/1
  4. Enter the router-interface ve command and specify a value to create a virtual interface as the routing interface for the VLAN.
    device(config-vlan-10)# router-interface ve 10 
    Creates VE 10 as the routing interface for the VLAN.
  5. Enter the interface ve command and specify a value.
    device(config-vlan-10)# interface ve 10 
    Creates a VE interface with the VLAN ID of 10.
  6. Enter the bandwidth command and specify a value to set the bandwidth value on the interface.
    device(config-vif-10)# bandwidth 2000

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