TCP / IP Settings
4-8 Advanced Configuration
Using the CLI to Configure TCP/IP
TCP/IP Configuration
Fromtheconfigmode,entertheinterfaceconfigurationmodewiththeinterfaceethernet
command.UsetheipdhcpcommandtoenabletheDHCPclient,ornoipdhcptodisableit.To
manuallyconfigureanaddress,specifythenewIPaddress,subnetmask,anddefaultgateway
usingtheipaddresscommand.
TospecifyaDNSserveraddress,usethednsservercommand.
ThenusetheshowinterfaceethernetcommandfromtheExecutivemodetodisplaythecurrent
IPsettings.
Example
RoamAbout 4102#configure
Enter configuration commands, one per line. End with CTRL/Z
RoamAbout 4102(config)#interface ethernet
Enter Ethernet configuration commands, one per line.
RoamAbout 4102(if-ethernet)#no ip dhcp
DHCP client state has changed. Please reset AP for change to take effect.
RoamAbout 4102(if-ethernet)#exit
RoamAbout 4102#reset board
Reboot system now? <y/n>: y
Username: admin
Password:********
RoamAbout 4102#configure
Enter configuration commands, one per line. End with CTRL/Z
RoamAbout 4102(config)#interface ethernet
Enter Ethernet configuration commands, one per line.
RoamAbout 4102(if-ethernet)#ip address 192.168.1.2 255.255.255.0 192.168.1.253
RoamAbout 4102(if-ethernet)#dns primary-server 192.168.1.55
RoamAbout 4102(if-ethernet)#dns secondary-server 10.1.0.55
RoamAbout 4102(if-ethernet)#end
RoamAbout 4102(config)#end
RoamAbout 4102#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
Untagged VlanId : 1
========================================
RoamAbout 4102#