Setting the bandwidth value for a tunnel interface

The current bandwidth value for a tunnel interface can be set and communicated to higher-level protocols such as OSPF.
Note: ICX 7150 devices do not support tunnels.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface tunnel command and specify a value to configure a tunnel interface.
    device(config)# interface tunnel 2
  3. Enter the tunnel mode gre ip command to enable GRE IP encapsulation on the tunnel interface.
    device(config-tnif-2)# tunnel mode gre ip
  4. Enter the tunnel source command and specify an IP address to configure the source address for the tunnel interface.
    device(config-tnif-2)# tunnel source 10.0.0.1
  5. Enter the tunnel destination command and specify an IP address to configure the destination address for the tunnel interface.
    device(config-tnif-2)# tunnel destination 10.10.0.1 
  6. Enter the ip address command and specify an IP address and a network mask to assign an IP address to the tunnel interface.
    device(config-tnif-2)# ip address 10.0.0.1/24
  7. Enter the bandwidth command and specify a value to set the bandwidth value on the interface.
    device(config-tnif-2)# bandwidth 2000

This example sets the bandwidth to 2000 kbps on a specific tunnel interface .

device# configure terminal
device(config)# interface tunnel 2
device(config-tnif-2)# tunnel mode gre ip
device(config-tnif-2)# tunnel source 10.0.0.1
device(config-tnif-2)# tunnel destination 10.10.0.1
device(config-tnif-2)# ip address 10.0.0.1/24
device(config-tnif-2)# bandwidth 2000

The bandwidth specified in this example results in the following OSPF interface costs, assuming the auto-cost is 100:

  • OSPF Interface Cost for the Trunk Group is equal to ((100 * 1000) + (2000 - 1)÷ 2000) = 50
  • OSPF Interface Cost for the GRE/IPv6 tunnel is equal to ((100 * 1000) + (2000 - 1)÷ 2000) = 50