interface ethernet

Changes the configuration mode to interface or range of interfaces.

Syntax

Interface ethernet IFNAME

Parameters

IFNAME
Specifies the interface name in slot/port format. Example: 1/1.

Modes

Config mode

Usage Guidelines

This command is available only to users with admin role.

Examples

The following examples change the config mode to interface configuration mode.

device# configure terminal
device(config)# interface ethernet 1/10-14
device(config-if-eth 1/10-14)#

device(config)# int e 1/1-16,2/1-16
device(config-if-eth-1/1-16,2/1-16)#

device(config-hardware)# int e 1/2:1-4,2/1-16
device(config-if-eth-1/2:1-4,2/1-16)#

device(config)# int ethernet abcd
Error: IFNAME must be in slot/port format:
Example: 1/1 Range Example: 1/1-3,5,2/7-9

device(config)# int e 1/222
Error: IFNAME must be in slot/port format: 
Example: 1/1 Range Example: 1/1-3,5,2/7-9