INTERFACE mode command details
end
Returns to CONFIGURE mode.
Example
/config-if#end
/config#
/config-vlan#end
/config#
ip address
Configures the IP address and mask of the interface you specified in the interface command. The interface is one of the following:
- a physical interface when in INTERFACE GigabitEthernet mode.
- a VLAN interface when in INTERFACE VLAN mode. Before you can configure the IP address of a VLAN interface, create the VLAN interface, using the command physical interface GigabitEthernet.
Specify the following parameters:
Table: ip address command parameters
Parameter | Description |
|---|---|
IP address | IP address of the physical network interface when in INTERFACE GigabitEthernet mode. IP address of the VLAN interface when in INTERFACE VLAN mode. |
mask | The netmask of the interface. |
Example
/config#interface GigabitEthernet 2
/config-if#ip address 10.10.17.27 255.255.255.0
no
Use the no command in INTERFACE mode as described in the following table.
Table. no command parameters
:Command | Description |
|---|---|
no ip address | Resets the IP address and mask of the interface that you specified in the interface command. The interface can be a physical or VLAN interface. This command sets both the IP address and the mask to 0.0.0.0. |
no shutdown | Enables the GigibitEthernet or VLAN interface that you specified in the interface command. |
physical interface GigabitEthernet
Creates a VLAN interface on the specified physical interface. This command is available only in INTERFACE VLAN mode.
Table: physical interface GigabitEthernet parameters
Parameter | Description |
|---|---|
GigabitEthernet interface number | A value between 1 and 6 that specifies the GigabitEthernet interface on which to create the VLAN interface. |
Example
/config#interface vlan 1
/config-vlan#
/config-vlan#physical interface GigabitEthernet 1
shutdown
Disables the VLAN or physical interface that you specified in the interface command. To enable the interface, use no shutdown. See no.
Example
The following command disables a physical interface:
/config#interface GigabitEthernet 1
/config-if#shutdown /config-if#
The following command disables a VLAN interface:
/config#interface vlan 1
/config-vlan#shutdown /config_vlan#
