LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-06-2005, 10:10 PM   #1
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Rep: Reputation: 30
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.
 
Old 06-06-2005, 10:23 PM   #2
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
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?
 
Old 06-06-2005, 10:23 PM   #3
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Rep: Reputation: 30
Can you see anything in Kmenu > Internet & Network > Network Settings? It should show both interfaces and allow you to reconfigure them.
 
Old 06-07-2005, 12:10 AM   #4
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
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.
 
Old 06-07-2005, 12:58 AM   #5
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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.
 
Old 06-07-2005, 01:35 PM   #6
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
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?
 
Old 06-07-2005, 03:06 PM   #7
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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.
 
Old 06-08-2005, 04:10 PM   #8
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
took a look at the file, and i have no idea what im looking at. its all a giant script.
 
Old 06-08-2005, 04:25 PM   #9
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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
    ;;
 
Old 07-28-2005, 09:15 PM   #10
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switch ethernet- to wireles - to ethernet? pterandon Linux - Networking 0 05-06-2005 04:28 PM
vector 4.3 wifi-ethernet bridge for XP client Qarbon Linux - Wireless Networking 0 11-20-2004 01:37 PM
Ralink WIFI with Asus@Home WIFI wavemachine Linux - Hardware 0 10-20-2004 03:10 PM
Can't Bring Ethernet Up / Can't Active Ethernet / Guigo Linux - Newbie 8 04-03-2004 08:31 AM
Ethernet/Wifi laptop connection problems killahwave Linux - Wireless Networking 6 03-09-2004 09:35 PM


All times are GMT -5. The time now is 03:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration