IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-14
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 add defaultroute interface ip3
See also
ip add route, ip add route disabled, ip set route enabled
ip add defaultroute gateway, ip add defaultroute gateway
disabled
ip set rip advertisedefault
ip set rip defaultroutecost
4.1.8.2.5 IP ADD INTERFACE
Syntax
IP ADD INTERFACE <name> [<ipaddress> [<netmask>]]
Description
This command adds a named interface and optionally sets its IP address. The IP address is
not mandatory at this stage, but if it is not specified in this command, the interface will be
unconfigured. There are three ways that the IP address can be set later:
•
Using the IP SET INTERFACE IPADDRESS command
•
You can set the interface to obtain its configuration via dynamic host configuration
protocol (DHCP) using the IP SET INTERFACE DHCP ENABLED command. By
default, DHCP is disabled.
This interface can obtain its IP configuration via PPP IPCP (
Internet Protocol Control Protocol
) negotiation.
See
PPPoA CLI commands
or
PPPoE CLI commands
.
The IP stack automatically creates a loopback interface for address 127.0.0.1 subnet
mask 255.0.0.0. This interface is not displayed by the IP LIST INTERFACES command.
You can use this command to add unnumbered interfaces.
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).
Option
Description
Default Value
interface
The name of the existing interface that this route will
use. To display interface names, use the IP LIST INTER-
FACES command.
N/A
Option
Description
Default Value
name
An arbitrary name that identifies the ip interface. It can
be made up of one or more letters or a combination of
letters and digits, but it cannot start with a digit.
N/A