interface
To enter the interface configuration mode to configure a Gigabit Ethernet or port channel interface, use the interface command in switch configuration mode.
interface { gigabitEthernet { interface-id | interface-range} | port-channel { portchannel-id | range portchannel-range} }
Syntax Description
gigabitEthernet |
Specifies Gigabit Ethernet as the interface type. |
interface-id |
Specifies an interface ID. |
interface-range |
Specifies a range for the Giganit Ethernet interfaces. Enter the range in the following format: 1/1-3. |
port-channel |
Specifies port channel as the interface type. |
portchannel-id |
Specifies a port channel. |
range portchannel-range |
Specifies a range for port channels. Enter the range in the following format: 1-3 |
Command Default
None
Command Modes
Switch configuration (config-switch)
Command History
Release | Modification |
---|---|
3.6.1 |
The port-channel and range parameters are added. |
3.5.1 |
This command was introduced. |
Examples
Use the following example to enter the configuration mode for the interfaces 1/0 and 1/1.
nfvis(config-switch)# interface gigabitEthernet 1/0-1
nfvis(config-switch-if)#
Examples
Use the following example to enter the configuration mode for port channels 1 and 2.
nfvis(config-switch)# interface port-channel range 1-2
nfvis(config-switch-if)#