You are not logged in.

#51 2008-01-23 08:56:16

Mo
Member
Registered: 2007-01-18
Posts: 92

Re: netcfg v2.0.3

I updated my ppp.subr. It now brings the interface up before connecting.
I also updated the network profile as I suggested. You have to insert the basename of the peer and not it's complete path now as pppd only recognizes the basename.

ppp.subr: http://pastebin.archlinux.org/24714
ppp.example: http://pastebin.archlinux.org/24716

I hope it works, at leat for me it does.
Regards, Mo.

Offline

#52 2008-01-23 22:44:32

diamondmind
Member
From: Lexington
Registered: 2007-12-19
Posts: 31

Re: netcfg v2.0.3

Dumb question, but I haven't found the answer here or on the wiki page. hmm

How do you connect to unsecured (non-WPA/WEP) networks? I was trying to use it to connect to the wireless network on campus but got nothing. I don't have my exact config file in front of me ATM, but I took the wpa.example and changed SECURITY="none" and KEY="". I can use my ethernet (static) and WPA profiles to connect to a wired network and my WPA networks at home just fine.

Here's the profile I'm using (as best I can remember off the top of my head .. I'll post the real one when I get a chance).

CONNECTION="wireless"
INTERFACE=eth1
SCAN="yes"
SECURITY="none"
ESSID="someSSID"
KEY=""                  <--- I tried both "" and nothing (KEY=)
IP="dhcp"
TIMEOUT=20

Offline

#53 2008-01-23 23:01:39

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: netcfg v2.0.3

diamondmind wrote:

How do you connect to unsecured (non-WPA/WEP) networks?

I haven't had to use it in a while, but the following profile worked for me in December using the new netcfg v2 scripts:

$ cat /etc/network.d/open 
CONNECTION="wireless"
DESCRIPTION="Generic connection for open WEP networks"
INTERFACE=wlan0
SCAN="yes"
SECURITY="none"
ESSID="*"
IP="dhcp"
TIMEOUT=20

thayer williams ~ cinderwick.ca

Offline

#54 2008-01-24 12:46:39

cu3edweb
Member
From: USA
Registered: 2007-10-07
Posts: 291

Re: netcfg v2.0.3

iphitus wrote:

cu3edweb: Add PRE_UP="ifconfig $INTERFACE up" to your config. Odd though, as netcfg already does ifconfig interface up.

I added PRE_UP="ifconfig wlan0 up" to my rc.conf still the same result it says scanning for networks and then a few seconds later it says failed with no connection. I must be doing something wrong. It works fine if I just list my connection "home" in the networks line.

Offline

#55 2008-01-24 15:23:37

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.3

cu3edweb wrote:
iphitus wrote:

cu3edweb: Add PRE_UP="ifconfig $INTERFACE up" to your config. Odd though, as netcfg already does ifconfig interface up.

I added PRE_UP="ifconfig wlan0 up" to my rc.conf still the same result it says scanning for networks and then a few seconds later it says failed with no connection. I must be doing something wrong. It works fine if I just list my connection "home" in the networks line.

Oh I see. I meant to the profile, but that doesnt matter now.

Just add to line 16 of /usr/bin/netcfg-auto-wireless

ifconfig $INTERFACE up

And it should work. I'll add it in the next version

James

Offline

#56 2008-01-24 21:15:52

diamondmind
Member
From: Lexington
Registered: 2007-12-19
Posts: 31

Re: netcfg v2.0.3

thayer wrote:
diamondmind wrote:

How do you connect to unsecured (non-WPA/WEP) networks?

I haven't had to use it in a while, but the following profile worked for me in December using the new netcfg v2 scripts:

Removing the KEY= line completely got it working. Thanks!

Maybe that should be added somewhere in the documentation .. maybe?

Last edited by diamondmind (2008-01-24 21:16:38)

Offline

#57 2008-01-24 23:32:12

cu3edweb
Member
From: USA
Registered: 2007-10-07
Posts: 291

Re: netcfg v2.0.3

iphitus wrote:
cu3edweb wrote:
iphitus wrote:

cu3edweb: Add PRE_UP="ifconfig $INTERFACE up" to your config. Odd though, as netcfg already does ifconfig interface up.

I added PRE_UP="ifconfig wlan0 up" to my rc.conf still the same result it says scanning for networks and then a few seconds later it says failed with no connection. I must be doing something wrong. It works fine if I just list my connection "home" in the networks line.

Oh I see. I meant to the profile, but that doesnt matter now.

Just add to line 16 of /usr/bin/netcfg-auto-wireless

ifconfig $INTERFACE up

And it should work. I'll add it in the next version

James

Thanks that works great!

Offline

#58 2008-01-25 05:32:11

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: netcfg v2.0.3

+1 for the Broadcom BCM4306. The funny thing was that I was thinking too hard. I kept trying to mess with too many configuration files. Once I stopped screwing with things and let the scripts do the work, everything went great. Nice work iphitus.

Offline

#59 2008-01-26 02:02:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: netcfg v2.0.3

I have a strange problem. Between this post and my last post I rebuilt my system from ground up. Now when I want to auto start the wireless, it doesn't work right. If I simply put auto-wireless <whatever> in rc.conf, it won't find a network. If I put auto-wireless <whatever> <profile>, it will fail on 'whatever', but it will work on 'profile'. The interesting thing is that I have the profile timeout set to 50 seconds, but it will only try the first listing for about three. Also, netcfg2 <profile> works, but netcfg-auto-wireless <interface> fails. What silly thing am I forgetting?

EDIT

I'm forgetting that I'm retarded. Simply having the profile name in the NETWORKS line is enough.

Last edited by skottish (2008-01-26 20:55:54)

Offline

#60 2008-01-26 05:45:15

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Offline

#61 2008-01-27 17:01:04

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: netcfg v2.0.3

Hello!

I need to use 3 differents settings to connect to Internet:

1- At home ==> dhcp with my router
2- At school ==> dhcp wifi without security
3- In a school lab ==> static ip and dns

I installed netcfg and tried to configure it but I have a problem.

I did not test yet my 2 school profiles but I home profile did not work:
http://pastebin.archlinux.org/24922

The connection is fine but it's very slow to resolve domain name.
Normally my router did the dns job and dhcpcd put this in my /etc/resolv.conf:

# Generated by dhcpcd for interface eth0
nameserver 192.168.0.1

When I use netcfg, I find the same settings in resolv.conf but every request is slow.

Thank for helping me.

EDIT: It seem to work better if I add GATEWAY="192.168.0.1" in my profile...
Any explanation?

Last edited by Shaika-Dzari (2008-01-27 17:13:37)

Offline

#62 2008-01-28 23:03:00

psyspy80
Member
From: London
Registered: 2008-01-26
Posts: 21

Re: netcfg v2.0.3

Hi,

I'm a new user having a problem connecting to my router through netcfg2. Here is the tread:

http://bbs.archlinux.org/viewtopic.php?id=43062

I hope someone can help me out.

Offline

#63 2008-02-01 09:30:31

n8schicht
Member
From: Südbaden
Registered: 2006-12-27
Posts: 138
Website

Re: netcfg v2.0.3

I just tested netcfg2 on my laptop with iwl4965-driver, and it works great! Even auto-wireless is working (after I added ifconfig $INTERFACE up in /usr/bin/netcfg-auto-wireless, as suggested).

One question: Are there plans of creating a little tool like netcfg-menu, so if you are in a new environment you can create a new profile in a semi-graphical way? This would be extremly useful for laptop-users.

When will netcfg2 be in the normal repo?

Offline

#64 2008-02-08 20:37:44

danpos
Member
Registered: 2008-01-30
Posts: 10

Re: netcfg v2.0.3

@iphitus

First all I've to say thank you for this neat piece of software. I've used several GNU/Linux distributions and all of them always have yours flaws with regards on network connections...With netcfg and the powerful ARCH WIKI, I've got success to create profiles for my wireless card (rtl8180 chipset) and wired nic (e100 chipset), which are present at my old Acer Travelmate laptop.

Regards,

Danpos

Last edited by danpos (2008-02-08 20:38:52)

Offline

#65 2008-02-11 00:05:30

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: netcfg v2.0.3

n8schicht wrote:

I just tested netcfg2 on my laptop with iwl4965-driver, and it works great! Even auto-wireless is working (after I added ifconfig $INTERFACE up in /usr/bin/netcfg-auto-wireless, as suggested).

One question: Are there plans of creating a little tool like netcfg-menu, so if you are in a new environment you can create a new profile in a semi-graphical way? This would be extremly useful for laptop-users.

When will netcfg2 be in the normal repo?

Same wlan card here, works like a charm with WPA2 setups BUT:

One has to escape some characters like " or ` in the "KEY" line, otherwise the script wont parse it completely wink

Is support for wpa-enterprise planned?
I need that for university.

Offline

#66 2008-02-11 02:42:28

syscrash2k
Member
Registered: 2005-05-07
Posts: 13

Re: netcfg v2.0.3

Does this support WPA-EAP?

My school uses it and the wiki doesn't mention this at all.
Here are the configuration instructions provided by the school:
http://ics.mcgill.ca/al/12/14/1925.html#wpa
(Yes, they tell you how to configure wpa_supplicant!!)

If not, consider this a feature request =P

Offline

#67 2008-02-11 02:48:26

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: netcfg v2.0.3

I don't know if netcfg2 supports EAP directly, but you could create a profile containing the line SECURITY="wpa-config", and let your wpa_supplicant.conf handle the EAP details...

Offline

#68 2008-02-11 18:08:47

Venator85
Member
From: Italy
Registered: 2007-10-18
Posts: 62

Re: netcfg v2.0.3

Working nice with iwl3945 / WPA2! Wonderful work!:cool:

Now a question:
I have configured a 'wired' profile and some wireless profiles.
I set up my rc.conf like this:

NETWORKS=(wired auto-wireless wlan0)

When the network cable is connected and I'm in range with a WLAN I've configured a profile for, both the wired and WLAN profiles are activated.
Instead, I'd like to activate the WLAN profile only if the first profile fail to activate.
The matter is: stop trying profiles as soon as one of them is successfully activated.
Could it be done? tongue

Thanks for your great work.
Bye wink

Offline

#69 2008-02-13 10:12:16

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2.0.3

Please keep any future posts in the v2.0.6 thread unless they directly to an existing post/problem here:
http://bbs.archlinux.org/viewtopic.php?id=43863

Offline

Board footer

Powered by FluxBB