To assign an IP address to an interface, use these commands in the following sequence, starting in the
CONFIGURATION mode:
Step
Command Syntax
interface
1
interface
no shutdown
2
ip address
3
ip-address
[ secondary ]
mask
To view the configuration, use the
ip interface
in the EXEC privilege mode
Figure 21-1. 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)#
Figure 21-2. show ip interface Command Example
Command Mode
Purpose
Enter the keyword interface followed by the type of
CONFIGURATION
interface and slot/port information:
•
•
•
•
•
•
•
INTERFACE
Enable the interface.
INTERFACE
Configure a primary IP address and mask on the interface.
•
Add the keyword secondary if the IP address is the
interface's backup IP address. You can configure up to eight
secondary IP addresses.
show config
command
(Figure
247).
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, 1 to 32 for EtherScale.
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.
IP address must be in dotted decimal
ip-address mask:
format (A.B.C.D) and the mask must be in slash
prefix-length format (/24).
(Figure 246)
in the INTERFACE mode or
show
IPv4 Addressing | 465