Reference Guide

IPv4 Addressing | 457
To assign an IP address to an interface, use these commands in the following sequence, starting in the
CONFIGURATION mode:
To view the configuration, use the show config command in the INTERFACE mode as shown in the first
example below or
show ip interface in the EXEC privilege mode as shown in the second example.
show config Command Example in the INTERFACE Mode
FTOS(conf-if)#show conf
!
interface GigabitEthernet 0/0
ip address 10.11.1.1/24
no shutdown
!
FTOS(conf-if)#
Step Command Syntax Command Mode Purpose
1
interface interface CONFIGURATION Enter the keyword interface followed by the type of interface
and slot/port information:
For a 1-Gigabit Ethernet interface, enter the keyword
GigabitEthernet followed by the slot/port information.
For a Loopback interface, enter the keyword loopback
followed by a number from 0 to 16383.
For the Management interface on the RPM, enter the
keyword
ManagementEthernet followed by the slot/port
information. The slot range is 0-1 and the port range is 0.
For a port channel interface, enter the keyword
port-channel followed by a number from 1 to 255 for
TeraScale and ExaScale.
For a SONET interface, enter the keyword sonet followed
by the slot/port information.
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet followed by the slot/port
information.
For a VLAN interface, enter the keyword vlan followed by
a number from 1 to 4094.
E-Series ExaScale platforms support 4094 VLANs with
FTOS version 8.2.1.0 and later. Earlier ExaScale
supports 2094 VLANS.
2
no shutdown
INTERFACE Enable the interface.
3
ip address
ip-address mask
[secondary]
INTERFACE Configure a primary IP address and mask on the interface.
ip-address mask: IP address must be in dotted decimal
format (A.B.C.D) and the mask must be in slash
prefix-length format (/24).
Add the keyword secondary if the IP address is the interface’s
backup IP address. You can configure up to eight secondary IP
addresses.