What is my board's IP address?
You can use the command ifconfig -a
to check the status. New development boards ship with DHCP enabled. Older boards ship with a static IP Address of 192.168.0.203. You can change it by entering a command like:
ifconfig eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255 up
To change it, edit the network file which can be found in either the /etc/rc.d/init.d/ or the /etc/init.d/ directory, depending on which root file system you are using. If your root file system is a ramdisk you will have to update the ramdisk image to make the changes permanent.
To change the board's IP address, netmask, or broadcast address setting, modify the corresponding element in ifconfig:
ifconfig eth0 192.168.0.203 netmask 255.255.255.0 broadcast 192.168.0.255 up
To set the gateway, modify the route configuration:
route add -net default gw 192.168.0.2
To set the DNS, modify /etc/resolv.conf on your ramdisk image:
search localdomain
nameserver x.x.x.x
nameserver y.y.y.y
30-Dec-2003: jlackey - update information related to the root file system