Bug 10864 - static ip setup fails until restart
: static ip setup fails until restart
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: Setup
: unspecified
: PC Other
: -- normal (vote)
: MP
Assigned To: Ben Klaas
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-27 15:54 UTC by Ben Klaas
Modified: 2009-09-08 09:27 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-01-27 15:54:51 UTC
configuring a fab4 for static IP on the wireless does not work until the unit is restarted. In other words, files are being written correctly but something associated with the ifup command is failing

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:20:22:00:1D  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29409 (28.7 KiB)  TX bytes:7023 (6.8 KiB)
          Base address:0x8000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2448 (2.3 KiB)  TX bytes:2448 (2.3 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:04:20:22:00:1D  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14383 (14.0 KiB)  TX bytes:8087 (7.8 KiB)

# cat /etc/network/interfaces 
auto lo
iface lo inet loopback

iface eth0 inet dhcp
        script /etc/network/udhcpc_action
mapping wlan0
        script /etc/network/if_mapping
auto wlan0=squeezewifi
iface squeezewifi inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns 192.168.1.1
        up echo 'nameserver 192.168.1.1' > /etc/resolv.conf
# cat /etc/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant
update_config=1

network={
        ssid="squeezewifi"
        key_mgmt=NONE
}
#
Comment 1 Ben Klaas 2009-01-27 15:57:24 UTC
bringing wlan0 up on the command line appears to work but does not. IP address shows in ifconfig but NETDEV WATCHDOG errors being printed to screen. Interface is non-operational until reboot, when it comes online.

# ifup wlan0=squeezewifi
# NETDEV WATCHDOG: wlan0: transmit timed out
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:20:22:00:1D  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:369 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:39279 (38.3 KiB)  TX bytes:7023 (6.8 KiB)
          Base address:0x8000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4376 (4.2 KiB)  TX bytes:4376 (4.2 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:04:20:22:00:1D  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22555 (22.0 KiB)  TX bytes:8087 (7.8 KiB)
# NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
NETDEV WATCHDOG: wlan0: transmit timed out
Comment 2 Blackketter Dean 2009-03-25 17:10:32 UTC
Ben: is this still an issue?
Comment 3 Richard Titmuss 2009-03-26 03:24:28 UTC
This is fixed now, QA please confirm before MP.