4-20
Cisco ONS 15501 User Guide
78-14134-01, Release 1.0
Chapter 4 Command Reference
ip-config
ip-config
To display or modify the IP address, IP subnet mask and IP default gateway, use the ip-config command.
ip-config [ip-addr [ip-subnet-mask [def-gateway-ip]]]
Syntax Description
Defaults If no values are entered, the command displays the current IP address, IP subnet mask and IP default
gateway.
If a value is entered for ip-addr, but not for ip-subnet-mask, the default IP subnet mask is 255.255.255.0.
If a value is entered for ip-addr, but not for def-gateway-ip, the default IP default gateway is 0.0.0.1.
Command Types Changes configuration
Command Modes User password protected
Command History
Examples The following example shows how to display the IP address, IP subnet mask and IP default gateway.
edfa > ip-config
10.1.2.221 255.255.255.0 10.1.2.1
The following example shows how to display or modify the IP address, IP subnet mask and IP default
gateway.
edfa > ip-config 192.168.0.10 255.255.255.240 192.168.0.1
ip-addr Specifies the IP address.
ip-subnet-mask Specifies the IP subnet mask.
def-gateway-ip Specifies the IP address of the default gateway.
Release Modification
EDFA 1.0 This command was introduced.