Reference Guide
IPv4 Routing | 485
To assign an IP address to an interface, use these commands in the following sequence, starting in the 
CONFIGURATION mode: 
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, 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.
• For a 40-Gigabit Ethernet interface, enter the keyword 
fortyGigE followed by the slot/port information.
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.










