ip address

Last Updated : Jun 14, 2018 |

Assigns an IP address and mask to an interface. Use no ip address to delete an IP interface.

Syntax

ip address {ip_address mask [admin_state|negotiated

no ip address

Parameters

Parameter

Description

Possible Values

Default Value

ip_address

The IP address assigned to the interface

mask

Mask for the associated IP subnet

admin_state

The administration status.

up, down

up

negotiated

Keyword specifying that the interface receive address and mask from a remote device

User level

read-write

Context

Interface: Serial (DS1 PPP L2-L3, DS1 PPP L3, DS1 FR-SUB L2-L3, DS1 FR-SUB L3, USP PPP L2-L3, USP PPP L3), FastEthernet (L2-L3, L3, PPP L2-L3, PPP L3), VLAN (L2-L3, L3), USB-modem, Loopback (L2-L3, L3), Tunnel (L2-L3, L3), Dialer (L2-L3, L3)

Example

To assign the IP address 192.168.22.33 with mask 255.255.255.0 to the FastEthernet interface:

Gxxx-001(if:FastEthernet 10/3)# ip address 192.168.22.33 255.255.255.0