TCP/IP command reference
IP
4-39
iMG/RG Software Reference Manual (IPNetwork Functions)
See also
IP SET INTERFACE MTU
IP SET INTERFACE DHCP
IP LIST INTERFACES
IP SET INTERFACE NETMASK
4.1.8.2.41 IP SET INTERFACE IPADDRESS
Syntax
IP SET INTERFACE {<name>|<number>} IPADDRESS <ipaddress> [<netmask>]
Description
This command sets the IP address for an existing IP interface.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip set interface ip4 ipaddress 192.168.102.3 255.255.255.0
See also
IP SET INTERFACE MTU
IP SET INTERFACE DHCP
IP LIST INTERFACES
IP SET INTERFACE NETMASK
Option
Description
Default Value
name
An existing IP interface. To display interface names, use
the IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers,
use the IP LIST INTERFACES command. The number
appears in the first column under the heading ID.
N/A
ip address
The IP address of the interface displayed in the following
format: 192.168.102.3. If the IP address is set to the
special value 0.0.0.0, the interface is marked as unconfig-
ured. This value is used when the interface address is
obtained automatically.
For unnumbered interfaces, the
IP address parameter is used to specify the router-id of
the interface. The router-id should be the same as the
IP address of one of the router’s numbered interfaces.
0.0.0.0
netmask
The netmask address of the interface displayed in the
following format: 255.255.255.0.
The special value
255.255.255.255 indicates an unnumbered interface,
that is configured by setting the IP address to the inter-
face’s router-id value, and setting netmask to
255.255.255.255.
If no IP address is
supplied, the natu-
ral mask of the IP
address is used.