SMC Networks SMC2555W-AG Network Router User Manual


 
Advanced Configuration
5-9
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 6-68
Enter Ethernet configuration commands, one per line.
SMC-AP(if-ethernet)#no ip dhcp 6-71
SMC-AP(if-ethernet)#ip address 192.168.1.2
255.255.255.0 192.168.1.253 6-69
SMC-AP(if-ethernet)#dns primary-server 192.168.1.55 6-68
SMC-AP(if-ethernet)#dns secondary-server 10.1.0.55 6-68
SMC-AP(config)#end 6-12
SMC-AP#show interface ethernet 6-72
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#