LinHES Forums
http://forums.linhes.org/

disabling eth0, enabling wlan0
http://forums.linhes.org/viewtopic.php?f=5&t=4756
Page 1 of 1

Author:  kwyjibo [ Tue May 31, 2005 3:16 pm ]
Post subject:  disabling eth0, enabling wlan0

as i have no lan in the living room, i thought it would be a good idea, to make my mythtv box wireless.

after installation of knoppmyth, i unplugged the lan cable and got my ASUS WL-138G PCI wlan card to work, thanks to ndiswrapper, desribed here: http://ndiswrapper.sourceforge.net/phpw ... stallation

when i reboot, i see the following:
Code:
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval n

and this is repeated six times
after that it prints
Code:
failed to bring up eth0


when knoppmyth is up i have no connection to the wlan router. when i run
Code:
dhclient wlan0

it says the same:
Code:
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval n


although i added ndiswrapper to the /etc/modules. so i have to repeat the steps
Code:
iwconfig wlan0 essid ESSID
iwconfig wlan0 mode Managed
iwconfig wlan0 key restricted XXXXXXXX
iwconfig wlan0 essid ESSID
dhclient wlan0


and now my wlan adapter is working... how can i get rid of eth0 and just use wlan0?

Author:  elgordo123 [ Tue May 31, 2005 5:08 pm ]
Post subject: 

When I was using Wlan, I just went into bios and disables the built in lan port. That is the easiest way. If it is a seperate card, then just yank the card.

Author:  Xsecrets [ Tue May 31, 2005 5:52 pm ]
Post subject: 

edit /etc/network/interfaces

remove auto eth0

add auto wlan0

for more wlan options search the forum it's been covered many times.

Author:  kwyjibo [ Wed Jun 01, 2005 1:13 pm ]
Post subject: 

Xsecrets wrote:
for more wlan options search the forum it's been covered many times.


did that, did not help

this is what my /etc/network/interfaces looked
Code:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
iface lo inet loopback
iface eth0 inet dhcp


changed it to
Code:
auto lo wlan0
iface wlan0 inetdhcp
wireless_essid #####
wireless_mode Managed
wireless_key off
dhclient wlan0


during startup it says something he did not know lo=lo
if i just write auto wlan0 at the first line he complains about he did not know wlan0=wlan0...

Author:  kwyjibo [ Wed Jun 01, 2005 1:22 pm ]
Post subject: 

i tried this way as seen here
http://mysettopbox.tv/phpBB2/viewtopic. ... 6&start=0&
Code:
auto lo wlan0
#auto lo eth0
iface lo inet loopback
#iface eth0 inet dhcp
iface wlan0 inet dhcp


still no go

i have now the same problem for wlan0 as i had for eth0

when i reboot, i see the following:

Code:
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval n


and this is repeated six times
after that it prints
Code:
failed to bring up wlan0

Author:  Xsecrets [ Wed Jun 01, 2005 4:49 pm ]
Post subject: 

try this

Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
   wireless_mode managed
   wireless_essid #####
   wireless_key verylongwephexkeyhere #only use this line if you use wep key.


I'm not sure what you use for wpa psk as I haven't really messed with that yet. and you don't need dhclient in there anywhere. and there is a space between inet and dhcp.

Author:  kwyjibo [ Sun Jun 05, 2005 2:00 pm ]
Post subject: 

Xsecrets wrote:
try this

Code:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
   wireless_mode managed
   wireless_essid #####
   wireless_key verylongwephexkeyhere #only use this line if you use wep key.


I'm not sure what you use for wpa psk as I haven't really messed with that yet. and you don't need dhclient in there anywhere. and there is a space between inet and dhcp.


thanks man, that worked perfectly!

Author:  onlybui [ Tue Jun 14, 2005 10:03 pm ]
Post subject: 

Hi both my eth0 and wlan where both working when I installed until I upgraded the kernel using the .conf file.....

but now my wlan netgear USB is not working
when I enter
/etc/init.d/wlan start
starting WLAN devices: FATAL: Module p80211 not found
Failed to load p80211.o

I use the code and edit but still not working

did the kernel not install the module? or do I need to edit something?

Author:  jmcneal [ Sat Jul 09, 2005 5:15 pm ]
Post subject:  front end still looking for eth0

I had a similar issue, installed initially using eth0, then moved to tv room and use wlan0.

My problem now is that when the mythtv user logs in and trys to do anything from the main screen (six circles) the frontend hangs forever. I logged the ouput of mythfrontend, included below. Looks like myth is still looking for the (no longer existing) eth0, and hanging.

How to I tell myth that I'm using wlan0, not eth0?


2005-07-09 15:49:40.573 New DB connection, total: 1
Total desktop width=640, height=480, numscreens=1
<snip>
<date,time> mythfrontend version: 0.18.1.2.20050510-1 www.mythtv.org
<d,t> Enabled verbose msgs : important general
<d,t> Switching to square mode (blue)
mythtv: could not connect to socket
mythtv: Connection refused
<snip>
<d,t> Registering MythMusic Media Handler as a media handler
Failed to find network interface eth0
SIP listening on IP Address :5060 NAT address
SIP: Cannot register; proxy, username or password not set
Destr5oying SipFsm object

Author:  saruman [ Tue Dec 13, 2005 2:14 am ]
Post subject: 

In my experience, it always better to make sure to have EITHER eth0 OR wlan0, since they are most likely on the same exact subnet, and that seems to cause trouble (timeouts, etc.)

I've had both co-exist to debug stuff, but by setting eth0 to be on a different subnet, matching with a laptop connected to it over crossover Ethernet cable.

Author:  kbanse [ Wed Feb 01, 2006 7:49 pm ]
Post subject:  Try this...

http://mysettopbox.tv/phpBB2/viewtopic.php?t=8228

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/