System configuration 5-8 – SMC Networks SMC2555W-AG User Manual
Page 64
System Configuration
5-8
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.
SMC-AP(config)#interface ethernet
Enter Ethernet configuration commands, one per line.
SMC-AP(if-ethernet)#no ip dhcp
SMC-AP(if-ethernet)#ip address 192.168.1.2
255.255.255.0 192.168.1.253
SMC-AP(if-ethernet)#dns primary-server 192.168.1.55
SMC-AP(if-ethernet)#dns secondary-server 10.1.0.55
SMC-AP(config)#end
SMC-AP#show interface 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
========================================
SMC-AP#