Lantronix Network Hardware EDS2100 Manuale Utente

Pagina di 15
3 Target Setup 
Linux Software Developers Kit (SDK) Quick Start Guide 
Configuring an IP Address 
By default, the target device (MatchPort AR, XPort Pro, or EDS1100 / 2100) will attempt to obtain an IP 
address via the DHCP protocol. Type the following command at the Linux shell prompt to determine the 
IP address: 
$ ifconfig eth0 
The ifconfig command can also be used to set an address, but it will not persist across a reboot.  
 
To set a temporary static address, issue the following command (replace angle bracketed items with 
actual values): 
$ ifconfig eth0 <target_ip_address> <target_subnet_mask> 
 
To set a static address that persists across reboots: 
1.  Use the vi text editor to edit /usr/local/etc/netcfg. (Consult a vi manual for details on using this text 
editor). 
2.  Add the following lines to the netcfg file (replace angle bracketed items with actual values) 
IPADDR=<target_ip_address> 
NETMASK=<target_subnet_mask> 
GATEWAY=<target_gateway_address> 
3.  Write the changes to the file and exit the from the vi editor. 
4.  Issue the ‘reboot’ command to reset the target for changes to take effect.