05-Interface Configuration Commands
05-Interface Configuration Commands
Table of Contents
Table of Contents
Chapter 1 Interface Configuration Commands .................................................................................. 1
1.1 Interface Configuration Commands ..................................................................................... 1
1.1.1 interface..................................................................................................................... 1
1.1.2 description ................................................................................................................. 2
1.1.3 bandwidth .................................................................................................................. 3
1.1.4 delay .......................................................................................................................... 3
1.1.5 shutdown ................................................................................................................... 4
1.1.6 show interface ........................................................................................................... 5
1.1.7 show running-config interface ................................................................................... 6
1.2 Configuration Example ........................................................................................................ 7
-I-
Interface Configuration Commands
Interface
description
bandwidth
delay
shutdown
show interface
1.1.1 interface
Syntax
To enter the interface configuration mode, run the above-mentioned command. If the
logical port is inexistent, you have to create this port first and then enter the port mode.
If the physical port is inexistent, the command will fail to be executed. The negative
form of this command has different functions for the physical port and the logical port.
Parameter
Parameter Description
Port Stands for the existent physical or logical port.
Default value
-1-
Interface Configuration Commands
Remarks
When you execute this command in configuration mode, you have to enable this
command to be in port configuration mode first. When the port command is configured,
you shall use the exit command to exit from the port mode.
Example
The following example shows how to enter the port mode of port g0/1.
Switch_config#
Switch_config#interface gigaEthernet0/1
Switch_config_g0/1#exit
Switch_config#
1.1.2 description
Syntax
Parameter
Parameter Description
Stands for the character string of the description information,
line
among which space may exist.
Default value
Remarks
Example
The following example shows how to set the description information of port g0/1 to up
link.
Switch_config# interface gigaEthernet0/1
Switch_config_g0/1# description uplink
-2-
Interface Configuration Commands
1.1.3 bandwidth
Syntax
Parameter
Parameter Description
Means the bandwidth of port, which ranges from 1 to 10000000
kilobps
kbps.
Default value
The default bandwidths of the 100M port, gigabit port and 10G port are 100000kbps,
1000000kbps and 10000000kbps respectively.
Remarks
Note:
The configured bandwidth does not mean the actual bandwidth of a port, but is used
by some protocol to calculate the port cost.
Example
1.1.4 delay
Syntax
Parameter
Parameter Description
-3-
Interface Configuration Commands
Default value
Remarks
Example
The following example shows how to set the delay of an interface to 10.
Switch_config_g0/1# delay 10
1.1.5 shutdown
Syntax
[no] shutdown
Parameter
N/A
Default value
Remarks
Example
-4-
Interface Configuration Commands
Syntax
Parameter
Parameter Description
Port Name of an interface If a specific port is not in the command,
the system will show the statuses of all ports.
Default value
N/A
Remarks
This command can be used in EXEC and configuration modes to show the physical
status and packet reception statistics of a port.
Example
-5-
Interface Configuration Commands
0 sqettest, 0 deferred
0 single, 0 multiple, 0 excessive, 0 late
0 L3 forwards
Syntax
Parameter
Parameter Description
Port Stands for the existent port.
Default value
N/A
Remarks
This command can be executed in EXEC or configuration mode to browse the settings
of a port.
Example
Current configuration:
!
interface GigaEthernet0/1
shutdown
description uplink
bandwidth 10000000
delay 10
Switch_config#
-6-
Interface Configuration Commands
The following example shows how to create a VLAN port, set its description information
and IP address and browse the status and settings of this port.
Switch_config#
Switch_config_v1#
Switch_config_v1# exit
Switch_config#
Building configuration...
Current configuration:
interface VLAN1
description uplink
Description uplink
Encapsulation ARPA
-7-
Interface Configuration Commands
Switch_config#
-8-