2.1.9. interface

Syntax

interface IF_PORTS interface range IF_PORTS

Parameter

IF_PORTS

Specify the port to select. This parameter allows partial port name and ignore case. For Example:fa1 FastEthernet3 Gigabit4If port range is specified, the list format is also available. For Example:fa1,3,5fa2,gi1-3

Default

No default value for this command.

Mode

Global Configuration

Usage

Some configurations are port based. In order to configure these configurations, we need to enter Interface Configuration mode to configure them. Use “interface” command to enter the Interface Configuration mode and select the port to be configured. In Interface Configuration mode, the prompt will show as Switch(config-if)#.

Example

This example shows how to enter Interface Configuration mode

Switch# configure
Switch(config)# interface fa1
Switch(config-if)#