interface

To configure an interface type and enter the interface configuration mode, use the interface command in Configuration mode. This command does not have a no form.

Note VMware virtual machine may have a number of interfaces available that depends on how many network interfaces (NIC) are added to the virtual machine.

interface GigabitEthernet [0 | 1| 2 | 3]

Syntax Description

interface

The command to configure an interface.

GigabitEthernet

Configures the Gigabit Ethernet interface.

0 - 3

Number of the Gigabit Ethernet port to configure.

Note After you enter the Gigabit Ethernet port number in the interface command, you enter the config-GigabitEthernet configuration submode (see the following Syntax Description).

do

EXEC command. Allows you to perform any EXEC commands in this mode (see the “do”).

end

Exits the config-GigabitEthernet submode and returns you to the EXEC mode.

exit

Exits the config-GigabitEthernet configuration submode.

ip

Sets the IP address and netmask for the Ethernet interface (see the “ip address”).

ipv6

Configures IPv6 autoconfiguration address and IPv6 address from DHCPv6 server. (see the “ipv6 address autoconfig” and the “ipv6 address dhcp”)

no

Negates the command in this mode. Two keywords are available:

 • ip—Sets the IP address and netmask for the interface.

 • shutdown—Shuts down the interface.

shutdown

Shuts down the interface (see the “shutdown”).

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You can use the interface command to configure subinterfaces to support various requirements.

Examples

/admin(config)# interface GigabitEthernet 0

/admin(config-GigabitEthernet)#

Related Commands

Command

Description

show interface

Displays information about the system interfaces.

ip address (interface configuration mode)

Sets the IP address and netmask for the interface.

shutdown (interface configuration mode)

Shuts down the interface (see “shutdown”).