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]
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).
EXEC command. Allows you to perform any EXEC commands in this mode (see the “do”). |
|
Exits the config-GigabitEthernet submode and returns you to the EXEC mode. |
|
Sets the IP address and netmask for the Ethernet interface (see the “ip address”). |
|
Configures IPv6 autoconfiguration address and IPv6 address from DHCPv6 server. (see the “ipv6 address autoconfig” and the “ipv6 address dhcp”) |
|
Negates the command in this mode. Two keywords are available: |
|
Shuts down the interface (see the “shutdown”). |
No default behavior or values.
You can use the interface command to configure subinterfaces to support various requirements.
/admin(config)# interface
GigabitEthernet 0
/admin(config-GigabitEthernet)#
ip address (interface configuration mode) |
|
shutdown (interface configuration mode) |
Shuts down the interface (see “shutdown”). |