ifaddr
The ifaddr command configures a network interface.
Command Format
ifaddr ifname ipaddr[:ifparameters] ifaddr ifname bootp
where:
| ifname | name of the interface |
| ipaddr | ip address assigned to the interface |
| ifparameters | optional configuration parameters |
Functional description
The ifaddr command is used to configure IP-addresses on interfaces accessible within PMON. The interface can be configured using parameters such as ipaddress, netmask, gateway etc directly or via the bootp protocol.
To configure an interface using the bootp protocol the command:
PMON> ifaddr fxp0:bootp
is used. PMON2000 will then issue a bootp request to a bootpserver available on the same network as the interface and configure the interface with the given parameters. A set of environment variables will also be set which describes the configuration.
When configuring the interface manually the minimum required parameters is the interface name and an IP address such as:
PMON> ifaddr fxp0:192.168.16.10
By adding ':' separated additional parameters netmask, broadcast and default gateway can be specified. The format of the config string is:
interface:ipaddress:netmask:broadcast:gateway
An example:
PMON> ifaddr fxp0:192.168.16.10:255.255.255.0::192.168.16.1
Note that when a parameter is omitted, like the broadcast address in the example, the field should be left empty by just typing the ':' separator. Unless a specific need for a non standard netmask or broadcast address is requiered these fields are typically left empty. Netmask and broadcast address is calculated from the IP address.
Environment
The command uses no environment variable.
See Also
The ifconfig environment variable.
- Login to post comments
