2.2 interface

Use this command to start interface (port) configuration. Terminal display switches from (config)# to (config-if)#.

Command Syntax
interface <port_type> [ <port_type_list> ]
Note: It is possible to configure the same parameter for multiple interfaces by using syntax as 1/1–8 (configure same value for ports 1–8), as described in the command example.
Table 2-2. Command Descriptions

Argument

Description

Parameter

<port_type>

Port type GigabitEthernet, LAG, VLAN

[ <port_type_list> ]

List of Port ID, for example, 1/1,2-4 1/1-8 1/1,2,4,8

Default

N.A

Mode

Global Configuration

Usage

Enter interface configuration mode to start configuring port parameters.

Example

Example 1: Enter configuration mode for ports 1 and 4.

(config)# interface GigabitEthernet 1/1,4
(config-if)#

Example 2: Enter configuration mode for ports 1 through 8.

(config)# interface GigabitEthernet 1/1-8
(config-if)#