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.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
interface tunnelcommand and specify a value to configure a tunnel interface. - Enter the
tunnel mode gre ipcommand to enable GRE IP encapsulation on the tunnel interface. - Enter the
tunnel sourcecommand and specify an IP address to configure the source address for the tunnel interface. - Enter the
tunnel destinationcommand and specify an IP address to configure the destination address for the tunnel interface. - Enter the
ip addresscommand and specify an IP address and a network mask to assign an IP address to the tunnel interface. - 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 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: