auto lo
iface lo inet loopback

auto ath0
iface ath0 inet static
# ensure ath0 is down (never fails because of "true")
pre-up wlanconfig ath0 destroy || true
# set up the ath0 device in AP mode before bringing up the interface (unless you're using AutoCreate)
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ad-hoc 
address 192.168.1.105
netmask 255.255.255.0
gateway 192.168.1.2
wireless-channel 10

wireless-essid wifibotLab
pre-up iwconfig ath0 essid wifibotAP
# IF you use WEP, put the key here:
#wireless-key 1234-1234-1234-1234

auto eth0
iface eth0 inet static
address 192.168.0.105
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.2.105
netmask 255.255.255.0
