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-configcommand.

ip-config[ip-addr [ip-subnet-mask [def-gateway-ip]]]

Syntax Description

 

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.

 

 

 

 

 

 

 

 

 

 

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 gateway is xx.yy.zz.1; where

 

xx.yy.zz are obtained by binary AND of first three bytes of ip-addrand ip-subnet-mask.

 

 

 

 

 

Command Types

Changes configuration

 

 

 

 

 

 

Command Modes

User password protected for display; master password protected for modification.

 

 

 

 

 

Command History

 

Release

Modification

 

 

 

 

 

 

 

 

EDFA 1.0

This command was introduced.

 

 

 

 

 

 

 

 

 

 

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

 

Cisco ONS 15501 User Guide

4-22

78-14134-02, Release 2.0

Page 62
Image 62
Cisco Systems 15501 manual Ip-config