398
C
HAPTER
5: N
ETWORK
P
ROTOCOL
undo ip address [ ip-address net-mask [sub] ]
View
Interface view
Parameter
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.
Description
Using the ip address command, you can set an IP address for an interface. Using
the undo ip address command, you can delete an IP address of the interface.
By default, no IP address is configured.
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 ip-address net-mask
sub indicates to delete the slave address. All the slave addresses must be deleted
before the master IP address can be deleted.
In addition, any two IP addresses configured for all interfaces on a router cannot
be located in the same subnet.
For the related commands, see ip route-static, display ip interface, and display
interface.
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.
Summary of Contents for Router 3031
Page 6: ......
Page 686: ...686 CHAPTER 6 ROUTING PROTOCOL...
Page 758: ...758 CHAPTER 7 MULTICAST COMMON CONFIGURATION COMMANDS...