Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] two wired network cards with wicd
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
GOS
n00b
n00b


Joined: 09 Sep 2010
Posts: 72
Location: Germany

PostPosted: Wed Aug 28, 2013 5:03 pm    Post subject: [solved] two wired network cards with wicd Reply with quote

Hey Guys,

I have the following problem:

I use wicd, but sometimes I have two wired network-cards. I know, that wicd doesn't support two connections at the same time, but that is neither what I want.

The second card is a "surfstick Huwaei E 303" and this stick switches with the aid of usb_modeswitch into a "wired network card" (eth1). So if I want to use this card, I have to edit my manager-settings.conf and put in eth1 instead of eth0. (And that is crap!)

So is there any way to set a different wired network-card (eth1) for one of the configured wired connections in opposition to the other wired connections using eth0?

Best Regards
GOS

PS: Excuse my English


Last edited by GOS on Thu Aug 29, 2013 1:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6336
Location: Blighty

PostPosted: Thu Aug 29, 2013 9:21 am    Post subject: Reply with quote

Look into using dhcpcd instead. It even has a sexy GTK+ systray applet also.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
GOS
n00b
n00b


Joined: 09 Sep 2010
Posts: 72
Location: Germany

PostPosted: Thu Aug 29, 2013 10:48 am    Post subject: Reply with quote

Thanks,

dhcpcd is good, but how do I get the gtk+ applet. (I use XFCE 4.10)

Best Regards GOS
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6336
Location: Blighty

PostPosted: Thu Aug 29, 2013 10:52 am    Post subject: Reply with quote

Install dhcpcd-ui
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
GOS
n00b
n00b


Joined: 09 Sep 2010
Posts: 72
Location: Germany

PostPosted: Thu Aug 29, 2013 12:59 pm    Post subject: Reply with quote

Thanks again,

dhcpcd in combination with an udev rule is the right choice for me. Now, when I put in the surfstick udev cancels all wicd connections and set up the surfstick with the aid of dhcpcd.

Therefore I createt the file 98-surfstick.rules which contains the following:

Code:
ACTION=="add", SUBSYSTEM=="net", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14db", RUN+="/usr/bin/wicd-cli --wired -x", RUN+="/usr/bin/wicd-cli --wireless -x" , RUN+="/sbin/dhcpcd $kernel"


Now using the surfstick is "idiot-proof".

Best Regards
GOS


Last edited by GOS on Thu Aug 29, 2013 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6336
Location: Blighty

PostPosted: Thu Aug 29, 2013 1:34 pm    Post subject: Reply with quote

Holy overcomplication batman!

You can simply run dhcpcd in the default (or boot) runlevel.
It will listen to kernel interfaces, such as new interfaces arriving and leaving.

No need to dick around with udev.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
GOS
n00b
n00b


Joined: 09 Sep 2010
Posts: 72
Location: Germany

PostPosted: Thu Aug 29, 2013 1:42 pm    Post subject: Reply with quote

No, I don't think so. I need static IP-adresses for the wired network sometimes and and have some configurations stored in wicd for my wired network. Therefore I won't drop wicd and therefore I don't want that dhcpcd controls my whole network stuff.

Udev makes exactly what I need. Only If I use the surfstick I have problems with wicd, but otherwise wicd fulfills my needs.

Thanks a lot for your help
GOS
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