interface

Selects an interface and places the CLI into interface context, or deconfigures an interface.

Syntax

[no] interface <string>

Syntax Description

Keyword
Description

no

(Optional) Causes the specified interface to be deconfigured.

string

The name of the interface to be configured.

Defaults

The CLI is in global context by default.

Usage Guidelines

This command must be given before issuing any commands that modify an interface. The specified interface remains the “selected” interface until another interface command or the end command is issued.

The “no” form of this command deletes all configuration information, both learned and manually-configured, from the specified interface. For physical interfaces (e.g., Ethernet), the interface is placed into automatic configuration mode. For virtual interfaces, the interface is deleted from the system.

Examples

interface en0
no interface vlan14
duplexip (interface context)speed

Last updated