Reference Guide
406 | Interfaces
www.dell.com | support.dell.com
If an interface is in the incorrect layer mode for a given command, an error message is displayed. For
example, in Figure 21-6, the
ip address command triggered an error message because the interface is in
Layer 2 mode and the
ip address command is a Layer 3 command only.
Figure 21-6. Error Message When Trying to Add an IP Address to a Layer 2 Interface
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 with an IP address assigned, use the
show ip interfaces brief command in the EXEC
mode as shown in Viewing Basic Interface Information.
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.
Dell(conf-if)#show config
!
interface TenGigabitEthernet 1/2
no ip address
switchport
no shutdown
Dell(conf-if)#ip address 10.10.1.1 /24
% Error: Port is in Layer 2 mode TenGig 1/2.
Dell(conf-if)#
Error message










