Configuration Commands
Page 96 7750 SR OS Router Configuration Guide
address
Syntax address {ip-address/mask | ip-address netmask} [broadcast {all-ones | host-ones}]
no address
Context config>router>interface ip-int-name
Description This command assigns an IP address, IP subnet, and broadcast address format to an IP interface. Only
one IP address can be associated with an IP interface.
An IP address must be assigned to each IP interface. An IP address and a mask combine to create a
local IP prefix. The defined IP prefix must be unique within the context of the routing instance. It
cannot overlap with other existing IP prefixes defined as local subnets on other IP interfaces in the
same routing context within the router.
The local subnet that the address command defines must not be part of the services address space
within the routing context by use of the config router service-prefix command. Once a portion of
the address space is allocated as a service prefix, that portion is not available to IP interfaces for
network core connectivity.
The IP address for the interface can be entered in either CIDR (Classless Inter-Domain Routing) or
traditional dotted decimal notation. Show commands display CIDR notation and are stored in
configuration files.
By default, no IP address or subnet association exists on an IP interface until it is explicitly created.
The no form of the command removes the IP address assignment from the IP interface. Interface-
specific configurations for IGP protocols like OSPF are also removed. The no form of this command
can only be performed when the IP interface is administratively shut down. Shutting down the IP
interface will operationally stop any protocol interfaces or MPLS LSPs that explicitly reference that
IP address. When a new IP address is defined, the IP interface can be administratively enabled (no
shutdown), which reinitializes the protocol interfaces and MPLS LSPs associated with that IP
interface.
To change an IP address, perform the following steps:
1. Shut down the router interface.
2. Assign the new IP address.
3. Reconfigure the interface-specific parameters for IGP protocols such as OSPF.
4. Enable the router interface.
If a new address is entered while another address is still active, the new address will be rejected.
Default No IP address is assigned to the IP interface.
Parameters ip-address — The IP address of the IP interface. The ip-addr portion of the address command
specifies the IP host address that will be used by the IP interface within the subnet. This address
must be unique within the subnet and specified in dotted decimal notation.
Values 1.0 .0.0 – 223.255.255.255
/ — The forward slash is a parameter delimiter that separates the ip-addr portion of the IP address
from the mask that defines the scope of the local subnet. No spaces are allowed between the ip-