Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless configuration and startup - The Gentoo way (part 2)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 15, 16, 17  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hyperboloid
n00b
n00b


Joined: 09 Nov 2004
Posts: 1
Location: Chicago

PostPosted: Tue Nov 09, 2004 6:50 am    Post subject: Wired networking no longer working -- RESOLVED Reply with quote

Hello.

I recently installed the new 1.11 baselayout and wireless works fine, but the wired network connection has stopped working. My network interfaces are eth0 and eth1. Before switching to the new baselayout both worked just fine, and eth0 pointed to the wired connection and eth1 pointed to the wireless. Now when I start eth0 I get wireless (but eth0 used to point to the wired connection!) and when I try to start eth1 -- nothing.

I have looked at the scripts and it is not clear how it is determined whether the interface is for wire or wireless. In fact, there does not seem to be any information on how to configure one's wired networking with the new scripts. Anyone have any advice on this?

This is on an IBM Thinkpad T41 with the 2.65 kernel. Both net.eth0 and net.eth1 are symlinked to net.lo and I'm using DHCP for both. Here's the (verbose) output from trying to start eth1:

Code:
# /etc/init.d/net.eth1 start
 * Starting eth1
 *    Loading networking modules for eth1
 *       modules: iwconfig essidnet ifconfig dhcpcd
 *          iwconfig provides wireless
 *          ifconfig provides interface
 *          dhcpcd provides dhcp
 *    Wireless extensions not found for eth1
 *    Bringing up eth1
 *       eth1 dhcp
 *          Running dhcpcd ...                                            [ !! ]

and when I start eth0 here's what I get:
Code:
# /etc/init.d/net.eth0 start
 * Starting eth0
 *    Loading networking modules for eth0
 *       modules: iwconfig essidnet ifconfig dhcpcd
 *          iwconfig provides wireless
 *          ifconfig provides interface
 *          dhcpcd provides dhcp
 *    Configuring wireless network for eth0
 *    Scanning for access points
 *       Found "wlan" at 00:0C:41:B1:3E:A8
 *       Found "linksys" at 00:04:5A:F1:62:58
 *       Found "dl_wifi" at 00:0D:88:28:C8:28
 *    "wlan" is not WEP enabled - ignoring setting
 *    Connecting to "wlan" (WEP Disabled) ...                             [ ok ]
 *       eth0 connected to "wlan" at 00:0C:41:B1:3E:A8
 *       in managed mode on channel 6 (WEP disabled)
 *    Configuring eth0 for "wlan" ...                                     [ ok ]
 *    Bringing up eth0
 *       eth0 dhcp
 *          Running dhcpcd ...                                            [ ok ]
 *          eth0 received address 192.168.1.120

Moreover, the output from ifconfig -a lists just eth0 and lo; eth1 is not listed.

Anyone have any ideas? Sometimes I'd like to plug into a network when wireless AP's are unavailable.


Update: The module was not getting loaded. The scripts work fine.


Last edited by hyperboloid on Tue Nov 16, 2004 5:34 pm; edited 3 times in total
Back to top
View user's profile Send private message
instauration
n00b
n00b


Joined: 07 Apr 2004
Posts: 12
Location: Kent, Ohio

PostPosted: Tue Nov 09, 2004 4:45 pm    Post subject: baselayout-1.11.6-r1 changes situation of 1.11.5 Reply with quote

Before I emerged baselayout-1.11.6-r1 today I had 1.11.5. As mentioned previously, to get my HP zd7000 broadcom wireless to work at boot-up and have init services with 'need net' as a dependancy also start I found that NOT adding net.wlan0 with rc-update was the way to go. Now that I've just emerged baselayout-1.11.6-r1 things are different. `rc-update add net.wlan0 default` is required to get things working smoothly. I'm using ndiswrapper-0.11 (which is loaded in /etc/modules.autoload.d/kernel-2.6) and gentoo-dev-sources-2.6.9-r3.

Still having problems with vmware-config.pl after emerging vmware-workstation-4.5.2-8848-r2. Sometimes sets up bridged networking to /dev/vmnet0 and NAT to /dev/vmnet8, sometimes not.
Back to top
View user's profile Send private message
moonlight
n00b
n00b


Joined: 08 Dec 2003
Posts: 11
Location: Belgium (Hasselt)

PostPosted: Thu Nov 11, 2004 9:24 am    Post subject: Reply with quote

Hi all,

This post is mainly intended for Uberlord himself, but anyone interested in issues with some Medion Laptops, please read further.

After using Gentoo Linux for a while on my old desktop pc, I bought in November 2003 (indeed about a year ago) a Medion Laptop MD 40100. Installing and using Gentoo was fine, after a while I decided to configure my wireless card on Gentoo Linux since working wireless was much more flexible for me (before I was working wireless on Windows XP).

After following this thread, in order to learn more about wireless configurations, I have tried a few times to configure my wireless, but all those tries without success :cry: . Finally I contacted Uberlord himself, spending a whole evening on this subject, ... resulting in 'no wireless' on my laptop. This had nothing to do with Uberlords knowlegde (please read further).

Since about 3 months I swapped from Gentoo Linux towards Debian Linux (I am not starting a discussion which distro is preferable), however I am still following the Gentoo Forums too, since I prefer to have the best of both worlds.

Again I tried a few times to get my wireless working, but the same story, ... still it didn't work.

However, yesterday I found on the web a nice explanation why it didn't work on my Medion 40100 laptop, ... even better, the solution is also described their, ... this solution is usefull for any distro using such kind of laptop.

So if people have problems with this type of laptops, please visit http://home.conceptsfa.nl/~revdmeer/md40100/index.html , the trick described their works :lol: . So after about a year, I am finally running wireless on Linux.

Uberlord, it's maybe worthwile to mention this in your readme file.

Cheers Moonlight
Back to top
View user's profile Send private message
Bushmann
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2002
Posts: 137
Location: Germany

PostPosted: Mon Nov 15, 2004 4:33 pm    Post subject: Reply with quote

Hi, I'm using the wireless-script, and it's working really well for the locations I've been using. But now, I wanted to use the wireless network of the local university, the ESSID of which is "dukath-mv". The problem seems, bash isn't able to handle "-" as a part of varnames, so I always get errors trying to execute the wireless.sh script.
I'm no expert at bash, but is there a possible solution to this problem? Or are ESSIDs with "-" just not supported?
Back to top
View user's profile Send private message
Chaosite
Guru
Guru


Joined: 13 Dec 2003
Posts: 540
Location: Right over here.

PostPosted: Mon Nov 15, 2004 8:12 pm    Post subject: Reply with quote

Bushmann wrote:
Hi, I'm using the wireless-script, and it's working really well for the locations I've been using. But now, I wanted to use the wireless network of the local university, the ESSID of which is "dukath-mv". The problem seems, bash isn't able to handle "-" as a part of varnames, so I always get errors trying to execute the wireless.sh script.
I'm no expert at bash, but is there a possible solution to this problem? Or are ESSIDs with "-" just not supported?


How about escaping it...? Like \-?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Nov 15, 2004 9:46 pm    Post subject: Reply with quote

Bushmann wrote:
Hi, I'm using the wireless-script, and it's working really well for the locations I've been using. But now, I wanted to use the wireless network of the local university, the ESSID of which is "dukath-mv". The problem seems, bash isn't able to handle "-" as a part of varnames, so I always get errors trying to execute the wireless.sh script.
I'm no expert at bash, but is there a possible solution to this problem? Or are ESSIDs with "-" just not supported?


If you read the wireless.example file it tells you to replace non alpha numeric characters (english) with _

So you would use dukath_mv in the var names
Back to top
View user's profile Send private message
Bushmann
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2002
Posts: 137
Location: Germany

PostPosted: Tue Nov 16, 2004 8:08 pm    Post subject: Reply with quote

@chaosite escaping doesn't work, since it's a bash varname and you can't use any '\' in a varname ^^

I'll try the method with '_' again but I'm not sure it'll work, but thanks for the tip.

Something else: When I'm activating the preferred_aps and then try to connect to an access point not included in this list, it just tries to force using the first ESSID of the list, although I didn't activate preferred_only...

Last but not least: Sometimes the script just fails to connect to the AP. When I tryit again it mostly works, but it's a bit annoying always having to log in as root or to remove and insert the pcmcia-card ^^ is there a way to make the script try again in case of failure?

thx
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Nov 16, 2004 9:17 pm    Post subject: Reply with quote

Bushmann wrote:
When I'm activating the preferred_aps and then try to connect to an access point not included in this list, it just tries to force using the first ESSID of the list, although I didn't activate preferred_only...


That variable has been removed and been replaced with "associate_order" - consult wireless.example for how to use it

Quote:
Last but not least: Sometimes the script just fails to connect to the AP. When I tryit again it mostly works, but it's a bit annoying always having to log in as root or to remove and insert the pcmcia-card ^^ is there a way to make the script try again in case of failure?


/etc/init.d/net.eth1 restart

But you have to be root for that. Maybe sudo could help you
Back to top
View user's profile Send private message
moby
n00b
n00b


Joined: 17 Dec 2002
Posts: 29

PostPosted: Thu Nov 18, 2004 1:24 am    Post subject: Old pcmcia card Reply with quote

First off thanks for all the hard work. I've got this working on a newer laptop trying to get it to work on an older one.

Question: The old laptop has a RangeLan-DS card (orinoco_cs driver). The card lights up when put in, but I see nothing when I run iwconfig. My guess is that "RangeLan-DS" isn't defined in the pcmcia config file. It used to be wireless.opts or /etc/pcmcia/config.opts or something. Does this file or an equivelant exist?

I've gotten this card to work in this laptop with other Linux distributions (Mandrake 10, Fedora Core 2 etc..). I usually have to edit that config file to get the card recognized. I'm finally getting around to moving it over to Gentoo.

Thanks for any advice

-moby
Back to top
View user's profile Send private message
MrStaticVoid
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 114
Location: Maryland

PostPosted: Thu Nov 18, 2004 6:04 am    Post subject: Reply with quote

To all the people using the dirty workaround for madwifi scanning:

http://sourceforge.net/mailarchive/forum.php?thread_id=5966999&forum_id=33958

A solution at last (a simple one at that). Hopefully Jean Tourrilhes will have it in for the next wireless-tools release, but until then manually editing the code works and is easy.

This is a good day for me! I finally got suspension and 3d acceleration with the binary ati-drivers working without freezing, and I get a clean solution to the scanning issue.
Back to top
View user's profile Send private message
yangman
n00b
n00b


Joined: 28 Aug 2004
Posts: 57

PostPosted: Thu Nov 18, 2004 6:44 am    Post subject: Reply with quote

I'm uisng iwpriv_ath0="mode 3" and it seems to work with no problems at all connecting to both my .11g network at home and .11b network at school. The preup() workaround is not used.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Nov 18, 2004 9:53 am    Post subject: Re: Old pcmcia card Reply with quote

moby wrote:

Question: The old laptop has a RangeLan-DS card (orinoco_cs driver). The card lights up when put in, but I see nothing when I run iwconfig. My guess is that "RangeLan-DS" isn't defined in the pcmcia config file. It used to be wireless.opts or /etc/pcmcia/config.opts or something. Does this file or an equivelant exist?


I actually have no idea!
I do not use pcmcia-cs or pcmcia-cs-tools as hotplug takes care of everything pcmcia based for me :) In fact, I think you only need pcmcia-cs (as in the package) for 16-bit cards. If you only have 32-bit cards (which you probably do) then you can get rid of that nasty package knows as pcmcia-cs :)

Having removed that, hotplug may be able to load it for you now.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Nov 18, 2004 9:54 am    Post subject: Reply with quote

Mr. Static Void wrote:
To all the people using the dirty workaround for madwifi scanning:

http://sourceforge.net/mailarchive/forum.php?thread_id=5966999&forum_id=33958

A solution at last (a simple one at that). Hopefully Jean Tourrilhes will have it in for the next wireless-tools release, but until then manually editing the code works and is easy.

This is a good day for me! I finally got suspension and 3d acceleration with the binary ati-drivers working without freezing, and I get a clean solution to the scanning issue.


I'm not sure that's a valid solution as I have scanning working fine with older madwifi drivers......

But if it works then the world is good again :)
Back to top
View user's profile Send private message
whschwartz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2004
Posts: 95
Location: Minnesotan living in Colorado

PostPosted: Fri Nov 19, 2004 11:51 pm    Post subject: Reply with quote

I'm having trouble getting my stuff setup right for wireless.

My goal is to setup 3 or 4 different ESSID's (home, work, friends, dad's) and set the preferred set to home.

Currently I'm trying just 1 to get that right and when I have wep turned off and just 2 lines in my /etc/conf.d/wireless it works but I can't get WEP to work.

my wireless file looks like
Code:

key_theschwartz="open s:1111-1111-11"
preferred_aps=( "theschwartz" "linksys" )
associate_order_eth1="forcepreferredonly"



I"ve also tried using
Code:
key_theschwartz="s:1111111111 enc open"
as my key line. I'd prefer 128bit WEP but I don't think the orinoco card in the one system supports that (other systems at home all do).

When I have WEP on and the key set to just 10 1's I get

Code:

gentoo init.d # ./net.eth1 start
 * Starting eth1
 *    Configuring wireless network for eth1
 *    Trying to force preferred in case they are hidden
 *       eth1 connected to "theschwartz" at 00:XX:XX:XX:XX:XX
 *       in managed mode on channel 11 (WEP enabled - )
 *    Bringing up eth1
 *       eth1 dhcp
 *          Running dhcpcd ...                                            [ !! ]gentoo init.d #


and it hangs there.


If I disable WEP it connects fine and gets an IP.

Can anyone show me what a wireless file would look like with 3 ESSID's and WEP enabled? Seems I'm missing something. THis looked pretty straight forward.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sun Nov 21, 2004 7:16 pm    Post subject: Reply with quote

whschwartz wrote:
When I have WEP on and the key set to just 10 1's I get


The problem is that a 64-bit WEP key is 13 characters and not 10. Are you getting confused with passkeys, which is not supported?
Back to top
View user's profile Send private message
computerkammer
n00b
n00b


Joined: 22 Nov 2004
Posts: 5

PostPosted: Mon Nov 22, 2004 5:05 pm    Post subject: Reply with quote

Hi!
I had downloaded the scripts from uberlord's website and just copied everything to the folders.
Maybe that's my problem now.....

I have two entries in etc/conf.d/net:
----------entries-----------------
ifconfig_eth1=("192.168.1.23 netmask 255.255.255.0")
routes_eth1=("default gw 192.168.1.1")
-----------------------------------------------
Then I'm starting manually: ./net.eth1 restart
I get no connection... but have entries in the "wireless" file
With the two commands:
------commands----
iwconf eth1 essid blabla
iwconf eth1 key --mykey--
-------commands end-----

the card works fine.

What to do that it works on startup.
Or better howto make that he reads "wireless"???
Just 2 days on gentoo

Thanks for help
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Nov 22, 2004 8:45 pm    Post subject: Reply with quote

computerkammer wrote:
Hi!
I had downloaded the scripts from uberlord's website and just copied everything to the folders.
Maybe that's my problem now.....


Yup - those scripts are slightly out of date
emerge sys-apps/baselayout-1.11.6-r1 or better :)
Back to top
View user's profile Send private message
computerkammer
n00b
n00b


Joined: 22 Nov 2004
Posts: 5

PostPosted: Tue Nov 23, 2004 12:18 am    Post subject: Reply with quote

Hi Uberlord!

Thankyou for all....

Runs on the first test.... :D

Just remove the scripts on your homepage...costs me 11 hours wasted time.


:D
Back to top
View user's profile Send private message
image
n00b
n00b


Joined: 03 Apr 2004
Posts: 17

PostPosted: Tue Nov 23, 2004 5:44 pm    Post subject: essidnet and macchanger Reply with quote

is it possible to make it so if i connect to a certain ESSID, i can specify a certain mac address to spoof?

i tried this in /etc/conf.d/wireless


mac_ESSID="00:11:22:33:44:55"

and it didn't work as i thought it would.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Nov 23, 2004 5:49 pm    Post subject: Re: essidnet and macchanger Reply with quote

image wrote:
is it possible to make it so if i connect to a certain ESSID, i can specify a certain mac address to spoof?


Do you mean spooing your MAC address and not the AP's MAC address?

If so, look into macchanger - the config for it is now included in baselayout-1.11.6-r1 or newer

If not then I doubt it
Back to top
View user's profile Send private message
whschwartz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2004
Posts: 95
Location: Minnesotan living in Colorado

PostPosted: Wed Nov 24, 2004 9:36 am    Post subject: Reply with quote

I'd like to get my wirelesss file setup so I can connect to say 3 different networks depending on where I'm located.

home
work
linksys (lots of motels use this)

home and work use WEP, the linksys one doesn't

So far in my wireless file I have

Code:

key_home="open 1111111111"
preferred_aps=( "home"  )


And that works for the one. What would the file have to look like to make all 3 work?

thanks.
Bill
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Nov 24, 2004 10:30 am    Post subject: Reply with quote

whschwartz wrote:
I'd like to get my wirelesss file setup so I can connect to say 3 different networks depending on where I'm located.

home
work
linksys (lots of motels use this)

What would the file have to look like to make all 3 work?


Code:

key_home="open 1111111111"
key_work="open 2222222222222"
preferred_aps=( "home" "work" )


That would work. The default settings say "if we cannot find a preferred access point then we connect to the strongest access point broadcasting it's ESSID - if that fails, try the next one until we connect or fail"
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Sat Nov 27, 2004 11:09 am    Post subject: Reply with quote

Hi,

I've just upgraded to baselayout-1.11.6-r1 - and I see the wireless-ebuild scripts still have one big problem AFAIK :)

I have a USB-wireless device on my server (no more pci-slots- small server) - this wireless device can only do ad-hoc mode - which however works fine.

I need the script to default to my home wlan (ie. to adhoc mode) and be able to fallback to Managed mode if default fails. AFAIK it seems these:
# Set the mode of the interface (managed, ad-hoc or master). Managed is default
# If it's ad-hoc or master you also may need to specify the channel below
#mode_eth1="ad-hoc"

# If managed mode fails, drop to ad-hoc mode with the below ESSID?
#adhoc_essid_eth1="WLAN"

should have be reconstructed so one can also choose the fallback_mode.
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
tautology
n00b
n00b


Joined: 08 Jan 2004
Posts: 8
Location: Canada

PostPosted: Mon Nov 29, 2004 3:48 am    Post subject: wlan-ng completely broken with new base layout Reply with quote

Hello,

While I think that the goals strived for with the new "Gentoo way" of wireless configuration, I think that it is WRONG to break all the machines that use wlan-ng by not providing a simple setting to override the new spiffy automagic way. Don't get me wrong, I have wanted something like this for some time and even thought about getting down to writing a solution, but making it impossible to turn off the new iwconfig tools only configuration is just asking for a large number of frustrated users.

Anyways if I have overlooked a method for using my wlan-ng way of doing things that for years has "just worked" please let me know and I will be happy to use that method. For now, I do not have the time to play around with ndiswrapper or wait for wlan-ng to support iwconfig. I will just have to be contented with downgrading baselayout, or manually running dhcpcd.

BTW:
Quote:
Q.Are there any drivers that do not work with this?
A.The only one I know of is linux-wlan-ng. They have their own setup software which is vastly different from anyone elses. All other drivers use wireless-tools which is what my script uses. The developers of linux-wlan-ng are in the process of making their driver support wireless-tools - so eventually it should work. Bug them about this, not me.

is pretty callous. Perhapse, something like:
Quote:

Q.Are there any drivers that do not work with this?
A.The only one I know of is linux-wlan-ng. They have their own setup software which is vastly different from anyone elses. All other drivers use wireless-tools which is what my script uses. The developers of linux-wlan-ng are in the process of making their driver support wireless-tools - so eventually it should work. In the mean time, you can continue to use the old method of configuring your wlan-ng setup by doing X


Thanks
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Nov 29, 2004 9:51 am    Post subject: Re: wlan-ng completely broken with new base layout Reply with quote

tautology wrote:
Hello,

While I think that the goals strived for with the new "Gentoo way" of wireless configuration, I think that it is WRONG to break all the machines that use wlan-ng by not providing a simple setting to override the new spiffy automagic way. Don't get me wrong, I have wanted something like this for some time and even thought about getting down to writing a solution, but making it impossible to turn off the new iwconfig tools only configuration is just asking for a large number of frustrated users.


OK - firstly supporting linux-wlan-ng would require an almost total rewrite. This is something that I cannot do as I don't have any hardware that is supported by linux-wlan-ng.

Secondly, linux-wlan-ng is making their stuff compliant with wireless-tools. Once this is complete, you can use this. This is important as only linux-wlan-ng uses linux-wlan-ng setup. Every other driver works using wireless-tools.

Thirdly, if you actually read /etc/conf.d/net.example you would find you can disable this entire script by doing the following

Code:

modules=( "!iwconfig" )
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 15, 16, 17  Next
Page 8 of 17

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum