To set the inherited and received bandwidth values for an interface, use the
bandwidth command in interface or virtual network interface config mode. To restore the default values, use the
no form of this command.
bandwidth [receive] {kbps | inherit [kbps]}
no bandwidth [receive] {kbps | inherit [kbps]}
Syntax Description
kbps
|
Intended bandwidth, in kilobits per second. The range is from 1 to 10000000. For a full bandwidth DS3 line, enter the value
44736.
|
inherit
|
(Optional) Specifies how a subinterface inherits the bandwidth of its main interface.
|
receive
|
(Optional) Enables asymmetric transmit/receive operations so that the transmitted (inherit kbps ) and received bandwidth are different.
|
Command Default
Default bandwidth values are set during startup. The bandwidth values can be displayed using the
show interfaces or
show ipv6 interface command. If the
receive keyword is not used, by default, the transmit and receive bandwidths will be assigned the same value.
Command Modes
Interface configuration (config-if)
Virtual network interface (config-if-vnet)
Command History
Release
|
Modification
|
10.0
|
This command was introduced.
|
12.2T
|
This command was modified. The
inherit keyword was added.
|
12.4(6)T
|
This command was modified. Support for IPv6 was added.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends
on your feature set, platform, and platform hardware.
|
Cisco IOS XE Release 2.1
|
This command was implemented on Cisco ASR 1000 Aggregation Services Series Routers.
|
Cisco IOS XE Release 3.2S
|
This command was modified. Support was added for this command in virtual network interface configuration mode.
|
15.1(03)S
|
This command was modified. Support was added for the
receive keyword.
|
Usage Guidelines
Bandwidth Information
The
bandwidth command sets an informational parameter to communicate only the current bandwidth to the higher-level protocols; you cannot
adjust the actual bandwidth of an interface using this command.
Note
|
This is only a routing parameter. It does not affect the physical interface.
|
Changing Bandwidth
For some media, such as Ethernet, the bandwidth is fixed; for other media, such as serial lines, you can change the actual
bandwidth by adjusting the hardware. For both classes of media, you can use the
bandwidth command to communicate the current bandwidth to the higher-level protocols.
Bandwidth Inheritance
Before the introduction of the
bandwidth inherit command option, when the bandwidth value was changed on the main interface, the existing subinterfaces did not inherit the
bandwidth value. If the subinterface was created before the bandwidth was changed on the main interface, the subinterface
would receive the default bandwidth of the main interface, and not the configured bandwidth. Additionally, if the router was
subsequently reloaded, the bandwidth of the subinterface would then change to the bandwidth configured on the main interface.
The
bandwidth inherit command controls how a subinterface inherits the bandwidth of its main interface. This functionality eliminates inconsistencies
related to whether the router has been reloaded and what the order was in entering the commands.
The
no bandwidth inherit command enables all subinterfaces to inherit the default bandwidth of the main interface, regardless of the configured bandwidth.
If the
bandwidth inherit command is used without configuring a bandwidth on a subinterface, all subinterfaces will inherit the current bandwidth of
the main interface. If you configure a new bandwidth on the main interface, all subinterfaces will use this new value.
If you do not configure a bandwidth on the subinterface and you configure the
bandwidth inherit
kbps command on the main interface, the subinterfaces will inherit the specified bandwidth.
In all cases, if an explicit bandwidth setting is configured on an interface, the interface will use that setting, regardless
of whether the bandwidth inheritance setting is in effect.
Bandwidth Receipt
Some interfaces (such as Asymmetric Digital Subscriber Line (ADSL), V.35, RS-449, and High-Speed Serial Interface (HSSI))
can operate with different transmit and receive bandwidths. The
bandwidth receive command permits this type of asymmetric operation. For example, for ADSL, the lower layer detects the two bandwidth values
and configures the Integrated Data Base (IDB) accordingly. Other interface drivers, particularly serial interface cards on
low- and midrange-platforms, can operate in this asymmetric bandwidth mode but cannot measure their clock rates. In these
cases, administrative configuration is necessary for asymmetric operations.
Examples
The following example shows how to set the full bandwidth for DS3 transmissions:
Router(config)# interface serial 0
Router(config-if)# bandwidth 44736
The following example shows how to set the receive bandwidth:
Router(config)# interface serial 0
Router(config-if)# bandwidth receive 1000