Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is networkmanagement so crappy?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gonzzor
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2004
Posts: 133

PostPosted: Mon Jan 09, 2006 4:35 pm    Post subject: Why is networkmanagement so crappy? Reply with quote

Hi..

I have a laptop using Gentoo and I move around a bit.. Not much but enough to be annoyed..
I have both a wired and a wireless network connection on my laptop..

When I'm at my desk I like to use the wired for the speed and have all the network shares to be mounted...
I also have access to a wlan when I move around and I still need access to the shares... This is a little problem since I have access to the wlan when I have access to the wire. Since it is on the same network I have to connections with the same default gateway, wich conflicts.

So far not much but here is what is most annoying..

Why does Gentoo start the eth0 even if there aren't any cable plugged in? Is it so hard to first check to see if it is up, and if it is then bring it up... Or at least give me an options to do so... Because when it starts eth0 it tries to mount my networkshares that aren't available since I have no connection...

And some more. When I connect to another network using the cable, it still tries to mount the share on a server that doesn't even exists?

Solutions?

Isn't it possible to have a MAC/IP table that you can do some lookups against and choose the right network configuration, IP, resolv, mount and so on...
On wireless it is easier since you have the MAC of the AP, so there it can't be a problem (Isn't there such a feature that does this?)

Are there any projects that are working on these or similar problems?

It would be really nice if Gentoo could manage to do this... :D
_________________
After 5 hours trying to install PHP 4 on FreeBSD I missed my Gentoo machine...
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Mon Jan 09, 2006 4:39 pm    Post subject: Re: Why is networkmanagement so crappy? Reply with quote

gonzzor wrote:
Why does Gentoo start the eth0 even if there aren't any cable plugged in?


Because you told it to. If you don't want it to do this, try:

Code:
# rc-update del net.eth0


Alternately, you could try ifplugd, which checks to see if there's a connection before it tries to bring up the interface.
Back to top
View user's profile Send private message
gonzzor
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2004
Posts: 133

PostPosted: Mon Jan 09, 2006 4:58 pm    Post subject: Reply with quote

Yeah...
I now it will start because I said so, but a nice option would be to not start if there aren't any cable pluged in..

ifplugd, does it work great with Gentoo?

Is there a way to only mount shares and use other network systems just on specific networks? Automaticlly?
Like specifing a IP and MAC for a server, if that server is present, then you are on the right network and then mount that share, start that network system..
_________________
After 5 hours trying to install PHP 4 on FreeBSD I missed my Gentoo machine...
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Mon Jan 09, 2006 5:40 pm    Post subject: Reply with quote

gonzzor wrote:
ifplugd, does it work great with Gentoo?


Yup. Just emerge it, add it to the default runlevel instead of net.eth0, and edit the config file. You probably won't even need to change the default settings (except maybe WAIT_ON_FORK).
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Mon Jan 09, 2006 6:25 pm    Post subject: Reply with quote

I've had rather good success with NetworkManager, though my laptop is running Ubuntu and I have no need for dynamic configuration on my gentoo machine.

YMMV, but I highly reccomend it.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
sylware
Apprentice
Apprentice


Joined: 16 Oct 2004
Posts: 159
Location: European Union (Paris / France)

PostPosted: Tue Jan 10, 2006 2:17 am    Post subject: Desktop or sysVinit/daemon net conf Reply with quote

Well, the idea is if you have a laptop that do not use a desktop (gnome-kde), the dynamic network configuration should be done via distro sysvinit scripts and their corresponding daemons. In the case you are a desktop user, you should use a graphic app specifically for this task.
So in the near future, we will probably end up with 2 mutually exclusive ways to dynamically configure the network.
As far as I understand it, the graphic apps will be desktop specific based on the common HAL from freedesktop.
(should have a look at the networkmanager gnome app though :lol: )
Back to top
View user's profile Send private message
Sequentious
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 290
Location: London Ontario Canada

PostPosted: Tue Jan 10, 2006 5:02 am    Post subject: Re: Desktop or sysVinit/daemon net conf Reply with quote

sylware wrote:
Well, the idea is if you have a laptop that do not use a desktop (gnome-kde), the dynamic network configuration should be done via distro sysvinit scripts and their corresponding daemons. In the case you are a desktop user, you should use a graphic app specifically for this task.
So in the near future, we will probably end up with 2 mutually exclusive ways to dynamically configure the network.
As far as I understand it, the graphic apps will be desktop specific based on the common HAL from freedesktop.
(should have a look at the networkmanager gnome app though :lol: )
NetworkManager is based on HAL, actually.

Heres a screenshot with NetworkManager's menu down (Top-right). For laptops, this is pretty nice as it allows you to select whether you wish to use wired (if available) or wireless (and which AP). Since it only toggles between interfaces, it is pretty horrible for desktops where configuration rarely (if ever) changes.

EDIT: Closed link. oops.
_________________
--
Chris I
chris@cidesign.ca :: www.cidesign.ca/~chris/
Back to top
View user's profile Send private message
sylware
Apprentice
Apprentice


Joined: 16 Oct 2004
Posts: 159
Location: European Union (Paris / France)

PostPosted: Tue Jan 10, 2006 11:13 pm    Post subject: Bluetooth? Reply with quote

I haven't got the time to look into the source code. But does it support Bluetooth internet connexion using the proper profile?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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