UMN:CLI User Manual
V5808
76
ip address A.B.C.D/M secondary
Assigns a secondary IP address to an interface.
Assigns an IP address from a DHCP server.
no ip address [A.B.C.D/M]
Clears an IP address assigned to an interface.
no ip address A.B.C.D/M
secondary
Clears a secondary IP address assigned to an
interface.
Stops assigning an IP address from a DHCP server.
The ip address dhcp command is for configuring an interface as a DHCP client. For the
detail of configuring a DHCP client, see Section 8.5.9.
To display an assigned IP address, use the following command.
Shows an IP address assigned to an interface.
4.3.3 Static Route and Default Gateway
The static route is a predefined route to a specific network and/or device such as a host.
Unlike a dynamic routing protocol, static routes are not automatically updated and must
be manually reconfigured if the network topology changes. Static route includes destina-
tion address, neighbor address, and etc. To configure a static route, use the following
command.
ip route A.B.C.D SUBNET-MASK
{GATEWAY | null | INTERFACE}
[<1-255>]
Configures a static route.
A.B.C.D: destination IP prefix
A.B.C.D/M: destination IP prefix with mask
GATEWAY: gateway address
INTERFACE: IP gateway interface name
1-255: distance value for this route
src: binding source IP address
ip route A.B.C.D/M {GATEWAY |
null | INTERFACE} [<1-255> | src
A.B.C.D]
To delete a configured static route, use the following command.
no ip route A.B.C.D SUBNET-
MASK {GATEWAY | null} [<1-
255>]
Deletes a configured static route.
no ip route A.B.C.D/M
{GATEWAY | null | INTERFACE}
[<1-255>]
To configure a default gateway, use the following command.