Command Reference Guide

3Com Router 5000 Family and Router 6000 Family ip address 181
Command Reference
ip address
Purpose Use the ip address command to set an IP address for an interface.
Use the undo ip address command to delete an IP address of the interface.
Syntax ip address ip-address net-mask [ sub ]
undo ip address [ ip-address net-mask [sub] ]
Parameters ip-address
Interface IP address, in dot delimitated decimal format.
net-mask
The mask of the corresponding subnet, in dot
delimitated decimal format.
sub
To enable communications among different subnets,
the configured slave IP address should be used.
Default By default, no IP address is configured.
Example Configure the interface Serial 0/0/0 with the master IP address as 129.102.0.1, the
slave IP address is 202.38.160.1, and the subnet mask of both is 255.255.255.0.
[3Com-Serial1/0/0] ip address 129.102.0.1 255.255.255.0
[3Com-Serial1/0/0] ip address 202.38.160.1 255.255.255.0 sub
View This command can be used in the following views:
Interface view
Description IP address is classified into five types, and users can select proper IP subnet according
to actual conditions. Moreover, in the case that part of the host address is composed
of 0 or the entire host address is composed of 1, the address has some special use
and can not be used as ordinary IP address.
The mask identifies the network number in an IP address.
Under normal conditions, one interface only needs to be configured with one IP
address. However, to enable one interface of a router to connect to several subnets,
one interface can be configured with several IP addresses. Among them, one is
master IP address, and others are slave IP addresses. Following is the relationship
between the master and slave IP addresses:
If a master IP address is configured while there’s already an existing master IP
address, the original one will be deleted and the newly configured will take effect.
The command undo ip address without parameters indicates to delete all the
IP addresses of the interface. The command
undo ip address ip-address
net-mask
indicates to delete the master IP address and undo ip address