Reference Guide
Interfaces | 417
!
interface GigabitEthernet 1/5
ip address 10.10.10.1 /24
no shutdown
FTOS(conf-if)#
If an interface is in the incorrect layer mode for a given command, an error message is displayed to the
user. In the example below, the command
ip address triggered an error message because the interface is in
Layer 2 mode and the
ip address command is a Layer 3 command only.
FTOS(conf-if)#show config
!
interface GigabitEthernet 1/2
no ip address
switchport
no shutdown
FTOS(conf-if)#ip address 10.10.1.1 /24
% Error: Port is in Layer 2 mode Gi 1/2.
FTOS(conf-if)#
To determine the configuration of an interface, you can use the show config command in INTERFACE
mode or the various
show interface commands in EXEC mode.
To assign an IP address, use both of the following commands in the INTERFACE mode:
You can only configure one (1) primary IP address per interface. You can configure up to 255 secondary IP
addresses on a single interface.
To view all interfaces to see with an IP address assigned, use the
show ip interfaces brief command in the
EXEC mode as shown in View Basic Interface Information.
To view IP information on an interface in Layer 3 mode, use the
show ip interface command in the EXEC
Privilege mode as shown in the example below.
FTOS>show ip int vlan 58
Vlan 58 is up, line protocol is up
Internet address is 1.1.49.1/24
Broadcast address is 1.1.49.255
Address determined by config file
Command Syntax Command Mode Purpose
no shutdown
INTERFACE Enable the interface.
ip address ip-address mask [secondary] INTERFACE Configure a primary IP address and mask on
the interface. The ip-address must be in
dotted-decimal format (A.B.C.D) and the
mask must be in slash format (/xx).
Add the keyword secondary if the IP address
is the interface’s backup IP address.










