Ethernet Interface Commands
Related Commands
show interface ethernet (page
ip address
This command sets the IP address for the
Syntax
ip address <ip-address> <netmask> <gateway> no 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.