You are not logged in.

#1 2007-04-05 21:55:10

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Are There Still No Available Solutions for Networking ?

Hi There,

I have 7 network profiles on my laptop for different locations. I'm always changing locations so changing the profile is always a problem for me. I really can't find a suitable solution for this. Here are the problems:

1) When I'm at the dormitory, I need to use pppoe. First, I call the cable profile to get a random IP for eth1 with dhcp. By starting adsl daemon (or calling pppoe-start) I connect to the internet. There's no solution available right now to call the adsl daemon with cable network profile or at least I can't find it.

2) When I get back home, I connect to my wireless router with the network profile home by using a password. I don't call any daemons for that, it works out of the box. But at least I have to open the terminal and restart the network daemon. (or netcfg..)

3) I tried NetworkManager.. But the document in the wiki is not good enough to explain things.. I don't know how to use my network profiles with NetworkManager and that's really annoying.. sad


Quis custodiet ipsos custodiet?

Offline

#2 2007-04-05 22:03:08

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

Re: Are There Still No Available Solutions for Networking ?

http://wiki.archlinux.org/index.php/Network_Scripts
i'm about to change the format of the config files, but give it a shot anyway.

the wireless and ethernet components seem very stable, i've tried them under a range of settings on my laptop with no problems, and flip between a range of wireless networks daily with no problems. The new detection support works awesomely.

however -- the ppp(oe) module is seeminly useless, as I don't have PPP and have yet to had someone help and fix it. It'd be great if you could fix this. If you're having trouble with the code, we could meet on IRC to discuss it.

James

Last edited by iphitus (2007-04-05 22:06:54)

Offline

#3 2007-04-05 22:38:08

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: Are There Still No Available Solutions for Networking ?

I'm on the irc.. (nick: alperkanat)

I have a few questions.. I just installed your scripts by pacman -Sf..

1) Will the profiles in /etc/network.d/ by now ?

2) Can I start using ethernet profile and call pppoe-start in post_up() ? Is it safe ? Or should I do something else ?

3) What are those daemons like net-rename and etc ?

4) There seems to be no $PROFILE_DIR defined on my system.. Should I define that ? Where ?

I can be a tester of this new system if you tell me more about it..


Quis custodiet ipsos custodiet?

Offline

#4 2007-04-05 22:39:30

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: Are There Still No Available Solutions for Networking ?

The detection system ? How to you flip between different networks ?


Quis custodiet ipsos custodiet?

Offline

#5 2007-04-06 09:14:31

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

Re: Are There Still No Available Solutions for Networking ?

T-u-N-i-X wrote:

I'm on the irc.. (nick: alperkanat)

I have a few questions.. I just installed your scripts by pacman -Sf..

1) Will the profiles in /etc/network.d/ by now ?

Yes.

2) Can I start using ethernet profile and call pppoe-start in post_up() ? Is it safe ? Or should I do something else ?

Nope, that won't work. try the ppp profile... which is kinda useless currently, as I have no idea whatsoever about ppp.

Could you answer these.......

Do you run the adsl/ppp daemon on boot, and *then* set it up as if it were a normal network interface?

What configuration do you go through to setup your connection?
What would you recommend to be configurable for the ppp module?
Do you know the exact commands to start the ppp part, or do you just use the daemon?

3) What are those daemons like net-rename and etc ?

network is the daemon for rc.conf network config

netfs is the old daemon for mounting network filesystems on boot.

net-rename is for ifrename, man ifrename, allows you to rename network interfaces on various critera, look in /etc/iftab for examples.

net-profiles is the daemon for the profiles on boot.

4) There seems to be no $PROFILE_DIR defined on my system.. Should I define that ? Where ?

it's defined internally within the scripts. /usr/lib/netcfg/conf. If the scripts are erroring out, post the error.

I can be a tester of this new system if you tell me more about it..

Documentation is... sparse smile, I'm writing it slowly. The most developed areas are wireless and ethernet, so these have detailed example configs in /etc/network.d/examples/

James

Last edited by iphitus (2007-04-06 09:16:16)

Offline

#6 2007-04-06 23:13:45

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: Are There Still No Available Solutions for Networking ?

Hi There,

I've had bad experiences with the scripts like I wasn't able to restart network daemon and couldn't also stop the network daemon as well.. So I re-installed my initscripts back.. But here are the answers to your questions:

1) I run adsl daemon to automatically connect to pppoe. It shows up as ppp0 in ifconfig output. I run a cable network profile to get a local IP like 10.0.0.77 and after I run network daemon, I run adsl daemon to start ppp0.

2) I think I use rp-pppoe package to setup all stuff about pppoe. I type pppoe-setup to configure my ppp scripts. I only use the variables for username, password and dns (since i use my own dns server).

3) I know the commands: pppoe-start, pppoe-stop, pppoe-status to control it.

4) Writing pppoe-start; in post_up() in ethernet worked for me. And pppoe-stop; do post_down.. But I know that it's not a good solution.


Quis custodiet ipsos custodiet?

Offline

#7 2007-04-07 07:38:19

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

Re: Are There Still No Available Solutions for Networking ?

T-u-N-i-X wrote:

Hi There,

I've had bad experiences with the scripts like I wasn't able to restart network daemon and couldn't also stop the network daemon as well.. So I re-installed my initscripts back.. But here are the answers to your questions:

1) I run adsl daemon to automatically connect to pppoe. It shows up as ppp0 in ifconfig output. I run a cable network profile to get a local IP like 10.0.0.77 and after I run network daemon, I run adsl daemon to start ppp0.

2) I think I use rp-pppoe package to setup all stuff about pppoe. I type pppoe-setup to configure my ppp scripts. I only use the variables for username, password and dns (since i use my own dns server).

3) I know the commands: pppoe-start, pppoe-stop, pppoe-status to control it.

4) Writing pppoe-start; in post_up() in ethernet worked for me. And pppoe-stop; do post_down.. But I know that it's not a good solution.

Thank you! I'll be able to use this smile

As for the bad experiences, could you reproduce them? they were probably bugs... and bugs need to be squashed!

Smart of you to use post_up(), it's there to be used smile. Just want to clarify though, pppoe-start, does that have to be run in pre_up or post_up? in other words, do you run it before the ethernet profile gets an IP or after? Is the ethernet profile set to dhcp?

I'll make some changes, could you try them? i'll let you know when they're up.

James

Last edited by iphitus (2007-04-07 07:39:02)

Offline

#8 2007-04-07 19:12:29

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: Are There Still No Available Solutions for Networking ?

(By the way, I can't get my wireless -bcm43xx- work unless I do search for the wifi networks and then restart the network daemon or I have to use ifplugd daemon..)

I placed it into post_up for sure, because it needs to be run after the ethernet profile gets an IP. Sometimes it can connect without having to have an ethernet IP. But in order to see the local shares and have a healtier network, I prefer post_up(). The ethernet profile is set to DHCP since it's a dormitory and we don't have static IP addresses. But somebody can have the need to have a static IP.

My bad experience occured when I tried to restart the network daemon. It said that there was no network interfaces like eth0, eth1.. btw I was able to see them through /proc/net/dev.. I think this occured because of the same reason I needed ifplugd.


Quis custodiet ipsos custodiet?

Offline

#9 2007-04-08 08:24:45

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

Re: Are There Still No Available Solutions for Networking ?

T-u-N-i-X wrote:

(By the way, I can't get my wireless -bcm43xx- work unless I do search for the wifi networks and then restart the network daemon or I have to use ifplugd daemon..)

enable FAST_SCAN='on' in your wireless profile.

If that doesnt work, lemme know, i'll add some further consideration for bcm into the scripts.

I placed it into post_up for sure, because it needs to be run after the ethernet profile gets an IP. Sometimes it can connect without having to have an ethernet IP. But in order to see the local shares and have a healtier network, I prefer post_up(). The ethernet profile is set to DHCP since it's a dormitory and we don't have static IP addresses. But somebody can have the need to have a static IP.

ok, no problem.

My bad experience occured when I tried to restart the network daemon. It said that there was no network interfaces like eth0, eth1.. btw I was able to see them through /proc/net/dev.. I think this occured because of the same reason I needed ifplugd.

was it this?

gateway: unknown interface: No such device

I've got that here too, will fix.

James

Last edited by iphitus (2007-04-08 08:39:47)

Offline

#10 2007-04-08 08:31:23

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

Re: Are There Still No Available Solutions for Networking ?

ok, typo on line 224

change rtline to ifline

fixed in git, updated package, i'll hack at the ppp profile a little bit later, will let you know how i go.

James

Last edited by iphitus (2007-04-08 08:37:56)

Offline

Board footer

Powered by FluxBB