05-AS2300 Interface Configuration Commands
05-AS2300 Interface Configuration Commands
I
Interface Configuration Commands
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
II
Interface Configuration Commands
interface
description
bandwidth
delay
shutdown
show interface
1.1.1 interface
Syntax
To enter the interface configuration mode, run this 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.
To return to the default settings of the physical port, run this command.
no interface physical-port
no interface logical-port
Parameters
Parameters Description
Port Stands for the existent physical or logical port.
1
Interface Configuration Commands
Default Value
Usage Guidelines
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
Parameters
Parameters Description
Stands for the character string of the description information,
line
among which space may exist.
Default Value
Usage Guidelines
Example
The following example shows how to set the description information of port g01/1 to up
link.
Switch_config# interface gigaEthernet0/1
2
Interface Configuration Commands
1.1.3 bandwidth
Syntax
Parameters
Parameters Description
kilobps port bandwidth, the value ranges from 1 to 10000000(kbps).
Default Value
The default value of the 100M port is 100000 and the default value of gigabit port is
1000000.
Usage Guidelines
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
Parameters
3
Interface Configuration Commands
Parameters Description
tensofmicroseconds port delay, the value ranges from 1 to 10000000 (10
microseconds)
Default Value
Usage Guidelines
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
Parameters
None
Default Value
Usage Guidelines
Example
4
Interface Configuration Commands
Syntax
Parameters
Parameters 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
None
Usage Guidelines
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
Parameters
Parameters Description
Port Stands for the existent port.
Default Value
None
Usage Guidelines
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. To browse the port status and
configuration, run show command.
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#