I am trying to configure wireless for raspberry pi wheesy
when i set myself up with the static address i kept on getting there errors - ifplugd(eth0)[1881]: client: /etc/network/interfaces:8: too many parameters for iface line
Code:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static address 192.168.1.12 netmask 255.255.255.0 gateway 192.168.1.1
wpa-ssid "foo"
wpa-psk "bar"
here are the errors
Code:
Jan 13 02:53:15 raspberrypi kernel: [ 6.734385] usbcore: registered new interface driver rtl8192cu
Jan 13 02:53:15 raspberrypi kernel: [ 11.328850] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Jan 13 02:53:15 raspberrypi kernel: [ 11.800154] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Jan 13 02:53:15 raspberrypi ifplugd(wlan0)[1916]: ifplugd 0.28 initializing.
Jan 13 02:53:16 raspberrypi /usr/sbin/cron[1960]: (CRON) INFO (pidfile fd = 3)
Jan 13 02:53:16 raspberrypi /usr/sbin/cron[1962]: (CRON) STARTUP (fork ok)
Jan 13 02:53:16 raspberrypi /usr/sbin/cron[1962]: (CRON) INFO (Running @reboot jobs)
Jan 13 02:53:16 raspberrypi ifplugd(wlan0)[1916]: Using interface wlan0/80:1F:02:CC:72:33 with driver <rtl8192cu> (version: )
Jan 13 02:53:16 raspberrypi ifplugd(wlan0)[1916]: Using detection mode: wireless extension
Jan 13 02:53:16 raspberrypi ifplugd(wlan0)[1916]: Initialization complete, link beat not detected.
Jan 13 02:53:17 raspberrypi kernel: [ 24.386887] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SS
Jan 13 02:53:17 raspberrypi kernel: [ 24.691521] smsc95xx 1-1.1:1.0: eth0: link up, 10Mbps, half-duplex, lpa 0x0020
Jan 13 02:53:17 raspberrypi ifplugd(eth0)[1881]: Link beat detected.
Jan 13 02:53:17 raspberrypi ifplugd(eth0)[1881]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
Jan 13 02:53:18 raspberrypi ifplugd(eth0)[1881]: client: /etc/network/interfaces:8: too many parameters for iface line
Jan 13 02:53:18 raspberrypi ifplugd(eth0)[1881]: client: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Jan 13 02:53:18 raspberrypi ifplugd(eth0)[1881]: client: run-parts: /etc/ifplugd/action.d//ifupdown exited with return code 1
Jan 13 02:53:18 raspberrypi ntpd[2065]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:57 UTC 2012 (1)
Jan 13 02:53:18 raspberrypi ntpd[2099]: proto: precision = 1.000 usec
Jan 13 02:53:18 raspberrypi ntpd[2099]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Jan 13 02:53:18 raspberrypi ntpd[2099]: Listening on routing socket on fd #17 for interface updates
Jan 13 02:53:18 raspberrypi ntpd[2099]: restrict: error in address '::' on line 38. Ignoring...
Jan 13 02:53:18 raspberrypi ntpd[2099]: restrict: error in address '::1' on line 42. Ignoring...
Jan 13 02:53:18 raspberrypi ifplugd(eth0)[1881]: Program execution failed, return value is 1.
however when i change iface line for wlan0, i don't get any error.
Code:
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.12
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid "foo"
wpa-psk "bar"
what is the difference - there is nothing in the man 5 interfaces that says that the address,. netmask and gatway parameterneed to be on seperate lines. the error was for eth0 but the only change that i made was on the iface line of wlan0