View previous topic :: View next topic |
Author |
Message |
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Sat Jun 24, 2006 6:21 pm Post subject: 2 net cards over same subnet on same router config. |
|
|
Hi everyone.
My problem is this: I have two net cards, wired and wireless, both conected to same router on same subnet (192.168.1.X).
I'm not able to get a config with which, after booting the system, internet will be available from both netcards (default gw working on both).
I mean, if I unplug the wired net, the wireless must work, and viceversa.
And one more question. If both are working at same time (if that's possible), will the system use the faster connection when doing lan operations ? (this is obviously the wired one).
Sorry for my bad english, I hope I've explained it correctly. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54795 Location: 56N 3W
|
Posted: Sat Jun 24, 2006 6:30 pm Post subject: |
|
|
txboy,
You can set up a bond (thats the kernel word) with any number of Network interfaces.
The bond gets an IP, not the individual cards.
Providing both ends support bonding like this, the kernel will use all the interfaces at the same time, for increased speed.
If interfaces are not working they won't be used, so you can switch between any and all 'on the fly'.
You need the kernel option and its help probably points you at the user space tools. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Sat Jun 24, 2006 6:42 pm Post subject: |
|
|
NeddySeagoon wrote: | txboy,
You can set up a bond (thats the kernel word) with any number of Network interfaces.
The bond gets an IP, not the individual cards.
Providing both ends support bonding like this, the kernel will use all the interfaces at the same time, for increased speed.
If interfaces are not working they won't be used, so you can switch between any and all 'on the fly'.
You need the kernel option and its help probably points you at the user space tools. |
Thanks for your fast answer.
I've read some about bonding in /etc/conf.d/net.example, but probably don't understand what exactly does.
Only one question more and I'll try this, do you mean I must active a specific kernel option to do this ?
Thank you again. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54795 Location: 56N 3W
|
Posted: Sat Jun 24, 2006 8:00 pm Post subject: |
|
|
txboy,
Thats exactly right.
Device Drivers ---> Network device support ---> < > Bonding driver support
Is what you need, either as a module or built in.
Read the kernel help and the information in /etc/conf.d/net.example. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Sun Jun 25, 2006 3:53 pm Post subject: |
|
|
NeddySeagoon wrote: | txboy,
Thats exactly right.
Device Drivers ---> Network device support ---> < > Bonding driver support
Is what you need, either as a module or built in.
Read the kernel help and the information in /etc/conf.d/net.example. |
Thank you very much.
Both cards working as I was looking for, even better that in the beginning. |
|
Back to top |
|
|
dmartinsca Guru
Joined: 09 Dec 2005 Posts: 303 Location: Ontario, Canada
|
Posted: Sun Jun 25, 2006 4:28 pm Post subject: |
|
|
txboy, there are different modes that can be used with bonding. On my laptop i use mode=1 with my wired card set as primary. This means only one card is used at a time, if both are available the wired network is used since it is generally faster. The neat thing is that it allows you to start a download while plugged in then unplug and the wireless connection takes over -- no need to restart the download. Have a look at this thread https://forums.gentoo.org/viewtopic-t-430748-highlight-wireless.html -- i consider this a must for my laptop now |
|
Back to top |
|
|
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Sun Jun 25, 2006 4:57 pm Post subject: |
|
|
dmartinsca wrote: | txboy, there are different modes that can be used with bonding. On my laptop i use mode=1 with my wired card set as primary. This means only one card is used at a time, if both are available the wired network is used since it is generally faster. The neat thing is that it allows you to start a download while plugged in then unplug and the wireless connection takes over -- no need to restart the download. Have a look at this thread https://forums.gentoo.org/viewtopic-t-430748-highlight-wireless.html -- i consider this a must for my laptop now | Yes, that's exactly what I did.
As you say, this should be considered as a must on laptops.
Anyway, thanks for your suggestion. |
|
Back to top |
|
|
celestialwizard Tux's lil' helper
Joined: 15 Jun 2006 Posts: 81 Location: Brisbane, Australia
|
Posted: Tue Jun 27, 2006 3:52 am Post subject: |
|
|
there is also a script / package that can be used to automatically swap between wired and wireless NICs.
Search the forums for IBM Thinkpad R52 or check the Gentoo Wiki |
|
Back to top |
|
|
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Tue Jun 27, 2006 10:54 am Post subject: |
|
|
Mmmmm...
After working a little with my new bond iface, I've noticed a little disadvantage.
When I try to do ssh in another machine into my LAN, it doesn't if both cards are active. Even more, it only does ssh if the wireless card is the ONLY one active, which is the one I used to do that before.
Nevertheless, every outer connection, this is internet, is done ok with one or both cards.
I think it may be because router config, but don't know how to solve it.
Any help ? |
|
Back to top |
|
|
|