LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   wifi vs ethernet (http://www.linuxquestions.org/questions/ubuntu-63/wifi-vs-ethernet-331067/)

DAChristen29 06-06-2005 10:10 PM

wifi vs ethernet
 
i installed ubuntu fine. during the install, it detected both network cards, my wifi and my ethernet card. i told it to use the wifi as my main card. now, wheneve ri eject the wifi card, and want to use the ethernet, it wont work. i dont know what the deal is, it cant get an ip address.

rebooting doesnt help (nor does running a hardware detection tool)

and yes, it does work under linux, its a linux compatible card.

Arnaud_B 06-06-2005 10:23 PM

wow wireless working out of the box! :-) that's great!
for your issue did you check route, ifconfig and iwconfig? I'm not sure to understnd your problem... ifup does not work?

bluesman2333 06-06-2005 10:23 PM

Can you see anything in Kmenu > Internet & Network > Network Settings? It should show both interfaces and allow you to reconfigure them.

DAChristen29 06-07-2005 12:10 AM

there is no kmenu, this is gnome, ubuntu, not kubuntu.

ifup only shows eth1 (wifi) and lo. eth0 is the built-in intel ethernet card i cant get working.

the gnome device manager sees the device fine.

aaa 06-07-2005 12:58 AM

Try running "dhclient interface_you_want_to_switch_to" in the commandline as root. For example, to switch to ethernet run "dhclient eth0". Assuming both use dhcp.

DAChristen29 06-07-2005 01:35 PM

Quote:

Originally posted by aaa
Try running "dhclient interface_you_want_to_switch_to" in the commandline as root. For example, to switch to ethernet run "dhclient eth0". Assuming both use dhcp.
this appears to be the solution, thanks. but do i really have to do this every time i switch devices?

aaa 06-07-2005 03:06 PM

You can automate it to run the appropriate command whenever you insert or remove the wireless. Take a look at the /etc/hotplug/net.agent file.

DAChristen29 06-08-2005 04:10 PM

took a look at the file, and i have no idea what im looking at. its all a giant script.

aaa 06-08-2005 04:25 PM

Well if go down you will see a section called "remove|unregister", and you can add commands that will be run when you remove your wireless:
Code:

remove|unregister)
    case $INTERFACE in
        # interfaces that are unregistered after being "down" (?)
        ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
            debug_mesg assuming $INTERFACE is already down
            exit 0
            ;;
        *)
            # Does the interface use dhcpcd? If it does, we must kill the daemon.
            if [ -r /etc/dhcpc/dhcpcd-$INTERFACE.pid ]; then
              debug_mesg killing /etc/dhcpc/dhcpcd-$INTERFACE.pid
              kill -15 `cat /etc/dhcpc/dhcpcd-$INTERFACE.pid`
            fi
            #INSERT COMMANDS HERE
            dhclient eth0 # like this one
            ;;
    esac
    debug_mesg $1 $ACTION event not handled
    ;;


DAChristen29 07-28-2005 09:15 PM

that works. but now i have the reverse problem.

during install (i reinstalled ubuntu after installing another distro). i told ubuntu the default device is eth0, my wired ethernet. now, it detects my wifi card, but i cant switch to it with dhclient. im guessing its looking for a WEP key. currently i removed wep to get this working. how do i tell it to activate my card without wep?


All times are GMT -5. The time now is 01:21 AM.