Command Line Interface User’s Guide
To set up an IP address and subnet mask for the Ethernet interface, use the following command
after the prompt of [1234 @ home]$.
ifconfig -o <interface-name> inet <address> [parameters]
ifconfig -o -a displays the information of the interfaces
ifconfig -o -l
parameters- mtu <n 72-1500>, broadcast <address>, netmask <mask>, up, down
COMMAND DESCRIPTION
<interface name>
The LAN interface to be configured. Type eth0 for Interface Ethernet 1, and type eth0 for
Interface Ethernet 2.
<address>
The IP address or subnet mask to be assigned to the interface. Dot-notation is used to enter the IP
address (for example 192.168.2.1).
netmask <mask>
The netmask is used to extract the network portion of the IP address. It also specifies how much
of the IP address is to be reserved for subdividing the network into sub networks, which are
taken from the host field of the address. Netmask is added with the interface IP address to get a
network ID that is used in routing to indicate that this network is reachable through these
interfaces. The mask can be specified as a single hexadecimal number with a leading 0x for
example 0xffffff00, or with a dot-notation Internet address 255.255.255.0
alias <address>
To add the alias IP address
-alias <address>
To delete the alias IP address
2.5.1
Primary IP address
To assign an IP address of 172.0.0.1 with a 24-bit subnet mask to the eth1 interface, use this
command:
ifconfig eth1 172.0.0.1 netmask 255.255.255.0
After typing the command, the home prompt displays. Save the changes by typing save. The
following message displays and shows that the changes are successful.
Configuration saved successfully
24 1800-A2-GB20-00