Change Foxboard IP and ethernet mac address

This page explain how to change default Foxboard IP and macaddress for eth0 interface.
You can change those values both on running foxboard or SDK before firmware creation.

Using CrisOs DarwinFox SDK you can simply edit the <darwinfox trunk>/openwrt/target/linux/etrax/base-files/etc/conf/network according to explanation above, on running system you must edit /etc/conf/network.

Change Foxboard Ip

CrisOs use dhcp by default. If you like to use a fixed ip you can simply change the needed file like this:

config interface lan
	option ifname	eth0
	option type	none
	option proto	static
	option ipaddr	192.168.0.90 #<--- change this value
	option netmask	255.255.255.0

The default dhcp configuration file is like this:

config interface lan
	option ifname	eth0
	option type	none
	option proto	dhcp

Change the mac address

When you deploy a system or use more then one foxboard per lan you must change eth0 mac address, it can be easly done adding option macaddr to configuration file. The original firmware uses the boards serial number to compute the mac address, unfortunately this serial number is erased by the CrisOS flashing procedure. You may want to write down the boards original mac address before flashing to be able to restore the correct mac address.
An example that use dhcp on eth0 with mac address 00:40:8C:CD:AB:01 :

config interface lan
	option ifname	eth0
	option type	none
	option proto	dhcp
	option macaddr  00:40:8c:cd:ab:01

The same using fixed ip 192.168.0.90 :

config interface lan
	option ifname	eth0
	option type	none
	option proto	static
	option macaddr  00:40:8c:cd:ab:01
	option ipaddr	192.168.0.90
	option netmask	255.255.255.0
documentation/wiki/dhcp_macaddr.txt · Last modified: 2010/02/06 11:02 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0