Ethernet Interface Commands
7-93
Related Commands
show interface ethernet (page 7-96)
ip address
This command sets the IP address for the (10/100Base-TX)
Ethernet interface. Use the no form to restore the default IP
address.
Syntax
ip address <ip-address> <netmask> <gateway>
no ip address
ip-address - IP address
netmask - Network mask for the associated IP subnet. This
mask identifies the host address bits used for routing to
specific subnets.
gateway - IP address of the default gateway
Default Setting
IP address: 192.168.2.2
Netmask: 255.255.255.0
Command Mode
Interface Configuration (Ethernet)
Command Usage
DHCP is enabled by default. To manually configure a new
IP address, you must first disable the DHCP client with the
no ip dhcp command.