![](/images/new-backgrounds/1146391/146391133x1.webp)
Advanced Configuration
CLI Commands for TCP/IP Settings – From the global configuration mode, enter the interface configuration mode with the interface ethernet command. Use the ip dhcp command to enable the DHCP client, or no ip dhcp to disable it. To manually configure an address, specify the new IP address, subnet mask, and default gateway using the ip address command. To specify DNS server addresses use the dns server command. Then use the show interface ethernet command from the Exec mode to display the current IP settings.
| |||
Enter Ethernet configuration commands, one per line. |
| ||
| |||
255.255.255.0 192.168.1.253 | |||
|
| ||
ethernet | |||
Ethernet Interface Information |
| ||
======================================== |
| ||
IP Address | : 192.168.1.2 |
| |
Subnet Mask | : 255.255.255.0 |
| |
Default Gateway | : 192.168.1.253 |
| |
Primary DNS | : 192.168.1.55 |
| |
Secondary DNS | : 10.1.0.55 |
| |
Admin status | : Up |
| |
Operational status | : Up |
|
========================================