One way is to login from the Debug Serial Port and type:
netusg20 ~ # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:04:25:ac:00:46 inet addr:192.168.1.29 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::204:25ff:feac:46/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2857 errors:33 dropped:0 overruns:0 frame:29 TX packets:270 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:175887 (171.7 KiB) TX bytes:12757 (12.4 KiB) Interrupt:21 Base address:0x4000
In this case the IP is: 192.168.1.29
The easiest way to discover the FOX IP is to read it from the DHCP server web page. You can easily identify the IP searching for hostname netusg20 of MAC address 00:04:25:xx:xx:xx.
Another way is by using the free utility Angry IP scanner (http://www.angryip.org/w/Download) available for Windows, Linux and MAC. With this utility it's possible to scan all the hosts wired on your LAN:
A not very fast method to discover your FOX Board G20 IP address is using this simple script:
#!/bin/sh echo "Usage: $0 <base_network_ip>" i=1 while [ "$i" -lt 254 ] do ping -c 1 -W 1 "$1.$i" > /dev/null if [ "$?" -ne 1 ] then echo "$1.$i SUCCESS !" else echo "$1.$i fail" fi i=$(( $i + 1 )) done
Save it in a file (for example scanip.sh) and enable ad executable file with chmod +x scanip.sh then execute providing the base address of your LAN. For example:
./scanip.sh 192.168.1
It will ping all the addresses from 1 to 254 on your LAN in that way:
Usage: ./scanip.sh <base_network_ip> 192.168.1.1 SUCCESS ! 192.168.1.2 SUCCESS ! 192.168.1.3 fail 192.168.1.4 fail 192.168.1.5 fail 192.168.1.6 fail ...
The timeout on fail condition is 1 second so the test need max 254 second to scan a C class network.