The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Kubuntu ipw3945 Says 'Connected' But Can't Surf.

    Discussion in 'Linux Compatibility and Software' started by raid517, Dec 4, 2006.

  1. raid517

    raid517 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    Hi, I have an Intel 3945ABG Wireless Chip on my laptop. This chip works perfectly in Debian Kanotix/Sid.

    However I cannot get it to work properly in Ubuntu. I used wireless assistant to connect - and it says I am connected.

    Wireless assistant is fairly easy to set up.

    To do so I do the following:

    I enter a static IP address of 192.168.1.104

    25) I then enter a network mask of 255.255.255.0

    26) I enter the broadcast address as 192.168.1.255

    27) I enter the default gateway as 192.168.1.1

    28 ) I enter the nameserver as 192.168.1.1

    In the final step I enter my ASCII 13 character WEP key.

    I then click on connect and a few seconds later I get a message saying I am connected. However when I try to surf the internet or browse my network nothing happens.

    Previously in Debian Sid/Kanotix my /etc/network/interfaces file was set up as follows:

    Code:
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
    
    # The loopback interface
    # automatically added when upgrading
    auto lo eth0 eth2
    iface lo inet loopback
    
    iface eth0 inet static
    	address 192.168.2.104
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    #	gateway 192.168.1.1
    
    
    
    
    
    iface eth2 inet static
    	address 192.168.1.102
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    	gateway 192.168.1.1
     wireless-mode Managed
     wireless_key s:MYWEPKEY
    
    However in Kubuntu /etc/network/interfaces is configured  as follows:
    
    [CODE]auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    auto eth1
    iface eth1 inet dhcp
    
    auto eth2
    iface eth2 inet dhcp
    
    auto ath0
    iface ath0 inet dhcp
    
    auto wlan0
    iface wlan0 inet dhcp
     wireless-essid MYNETWORK
    [/CODE]

    Which is formatted really quite differently. I tried simply substituting my Kanotix /etc/network/interfaces file for the Kubuntu one - but that didn't work - and indeed even my wired network failed after a reboot. (Thankfully I had backed my original /etc/network/interfaces file up).

    The output of ifconfig and iwconfig are as follows:


    Code:
    eth0      Link encap:Ethernet  HWaddr 00:A0:D1:41:75:19
              inet addr:192.168.1.112  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::2a0:d1ff:fe41:7519/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:15719 errors:0 dropped:0 overruns:0 frame:0
              TX packets:9528 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:18719228 (17.8 MiB)  TX bytes:966007 (943.3 KiB)
    
    
    eth1      Link encap:Ethernet  HWaddr 00:13:02:71:F2:A2
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:63283 errors:1482 dropped:1488 overruns:0 frame:0
              TX packets:401 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:389469 (380.3 KiB)  TX bytes:17951 (17.5 KiB)
              Interrupt:185 Base address:0x2000 Memory:da000000-da000fff
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:133 errors:0 dropped:0 overruns:0 frame:0
              TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:14896 (14.5 KiB)  TX bytes:14896 (14.5 KiB)
    Code:
    :~$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    eth1      IEEE 802.11g  ESSID:"Jebus97"
              Mode:Managed  Frequency:2.462 GHz  Access Point: 00:14:C1:19:0F:0C
              Bit Rate:54 Mb/s   Tx-Power:15 dBm
              Retry limit:15   RTS thr:off   Fragment thr:off
              Power Management:off
              Link Quality=93/100  Signal level=-36 dBm  Noise level=-37 dBm
              Rx invalid nwid:0  Rx invalid crypt:1388  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:6   Missed beacon:0
    So as you can see the network is associated, but it appears to be unable to obtain an IP address, or any routing/default gateway information etc.

    The question is, how can I enter these details manually so that the system is able to correctly identify IP/routing/gateway information etc - and also so that I can ensure that this information is retained after each reboot?
     
  2. raid517

    raid517 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    I also did
    Code:
    /sbin/iwconfig eth1 mode managed channel 11 key open s:mywepkey essid mynet
    From the command line, but I still can't connect to anything.

    I also tried Network-Manager but it refused to launch after I installed it - so that's a no go.
     
  3. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Notice how your eth1 interface is the wireless one? Set up your wireless connection info for that one. And if you notice, the syntax is actually exactly the same, it's just that your debian one had settings for a static IP, rather than a DHCP assigned address.

    As for network-manager, it won't work right if you've tried to manually goof with the different settings from what I can tell. You might consider seeing if you can reinstall or reset the configuration of your networking stuff to the defaults and it should start up. Have you tried starting network-manager from the shell and seeing if it throws any errors?
     
  4. raid517

    raid517 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    Yes thanks I know my wireless network interface is eth1. But I don't see where my Ubuntu /etc/network/iftercaces and my Kanotix/Sid /etc/network/iftercaces are the same. They don't seem o have the same syntax at all. Besides which I already tried just swapping both out. I swapped my Ubuntu /etc/network/interfaces for my Kanotix /etc/network/interfaces - but as I said previously this did not work - and I even lost wireless networking after a reboot.

    Here is my Kanotix: /etc/network/interfaces file:

    Code:
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
    
    # The loopback interface
    # automatically added when upgrading
    auto lo eth0 eth2
    iface lo inet loopback
    
    iface eth0 inet static
    	address 192.168.2.104
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    #	gateway 192.168.1.1
    
    iface eth2 inet static
    	address 192.168.1.102
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    	gateway 192.168.1.1
     wireless-mode Managed
     wireless_key s:MyKey
     wireless-essid MYESSID
    And now my Ubuntu /etc/network/interfaces

    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    auto eth1
    iface eth1 inet dhcp
    
    auto eth2
    iface eth2 inet dhcp
    
    auto ath0
    iface ath0 inet dhcp
    
    auto wlan0
    iface wlan0 inet dhcp
    The syntax does look diferent to me.

    To be clear I don't want to use DHCP - I want to use a static IP address only.

    My static IP address/route/gateway information etc are all listed above. These settings work very well indeed in Kanotix/Sid.
     
  5. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Basically all Debian did was change the order of a few things. Swapping them wholesale won't work because of the different interfaces. Just put the line:
    Code:
    auto eth2
    	iface eth2 inet static
    	address 192.168.1.102
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    	gateway 192.168.1.1
     wireless-mode Managed
     wireless_key s:MyKey
     wireless-essid MYESSID
    Into your ubuntu config where you currently have
    Code:
    auto eth2
    iface eth2 inet dhcp
    I'd just comment out (put a # at the beginning of the line) those two lines and paste in the ones I gave you, fix it to match your network settings, and it should work. The ubuntu guys know much more about the wireless settings than I do, as I've gotten wireless to work with network-manager. You should try the ubuntu forums for your answer, I know it's out there.
     
  6. raid517

    raid517 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    Right, I never caught that. In Kanotix my wireless was eth2.

    Sorry that was dumb of me not to spot that.

    I will try it.
     
  7. raid517

    raid517 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    Yeah, that works great thanks!