Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to change network interface on my home server, from a wirebased (eth0) to a wireless (wlan0) using a USB-wlan card. I've installed the RT73-drivers using http://ubuntuforums.org/showthread.php?t=400236 and it seems to be working.

My problem is that wlan0 only works when the wire for eth0 is connected. As soon as I disconnect the wire, the wireless interface goes down.

I'm guessing that it has something to do with my /etc/network/interfaces so here it is:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.19
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search workgroup

auto wlan0
iface wlan0 inet static
        address 192.168.1.20
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1
        dns-search workgroup

        pre-up ifconfig wlan0 up
        pre-up iwpriv wlan0 set AuthMode=WPAPSK
        pre-up iwpriv wlan0 set EncrypType=TKIP
        pre-up iwpriv wlan0 set WPAPSK=MY_PASSWORD
        pre-up iwpriv wlan0 set SSID=MY_SSID
        pre-up iwpriv wlan0 set NetworkType=Managed

Both interfaces are connected to the same router.

I'm running Ubuntu Server 8.04

share|improve this question

migrated from serverfault.com Jan 19 '10 at 3:13

This question came from our site for professional system and network administrators.

1 Answer 1

My problem is that wlan0 only works when the wire for eth0 is connected. As soon as I disconnect the wire, the wireless interface goes down.

Because your wireless interface is not working to begin with.

For one, you've set it up completely wrong.

change all the pre-up commands to just

wpa-ssid MY_SSID
wpa-psk MY_PASSWORD

then see where you stand.

share|improve this answer
    
Tried those commands. But I just got: ioctl[SIOCSIWENCODEEXT]: Operation not supported. Tried adding wpa-driver rt73 but got Unsupported driver 'rt73'. –  Joel Jan 17 '10 at 17:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.