Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-2008, 12:45 PM
Geoff Lane
 
Posts: n/a
Two Network cards

If one has two network cards connected to a computer (eg one ethernet
and one wifi) and both are connected to the internet is there a priority
for outgoing traffic or can this cause problems.

Geoff Lane
Followup-To: comp.os.linux.networking
Reply With Quote
  #2 (permalink)  
Old 03-22-2008, 01:36 PM
Allan
 
Posts: n/a
Re: Two Network cards

Geoff Lane <datemasde.t1m@gishpuppy.com> writes:

> If one has two network cards connected to a computer (eg one ethernet
> and one wifi) and both are connected to the internet is there a
> priority for outgoing traffic or can this cause problems.
>

Yes, this can cause problems unless you can assign a distinct
i.p. address to each network adapter. Use the one which is faster.

--
Allan
Reply With Quote
  #3 (permalink)  
Old 03-22-2008, 01:37 PM
Rob Morley
 
Posts: n/a
Re: Two Network cards

In article <fs2rhb$qa3$1@news.datemas.de>, Geoff Lane
datemasde.t1m@gishpuppy.com says...
> If one has two network cards connected to a computer (eg one ethernet
> and one wifi) and both are connected to the internet is there a priority
> for outgoing traffic or can this cause problems.
>

With a normal configuration both NICs will have a default route set - if
you want to use just one for internet access then remove the default
route for the other one. With both default routes set I suspect the
order they are tried will depend on the order in which they were loaded
into the routing table, so you might try swapping them around to see if
it makes any difference. Otherwise I think you're into advanced routing
with multiple tables.
As long as both NICs are running on the same network I don't think it
will cause any problems anyway.
Reply With Quote
  #4 (permalink)  
Old 03-22-2008, 02:15 PM
Geoff Lane
 
Posts: n/a
Re: Two Network cards

Rob Morley wrote:

>> If one has two network cards connected to a computer (eg one ethernet
>> and one wifi) and both are connected to the internet is there a priority
>> for outgoing traffic or can this cause problems.
>>

> With a normal configuration both NICs will have a default route set - if
> you want to use just one for internet access then remove the default
> route for the other one. With both default routes set I suspect the
> order they are tried will depend on the order in which they were loaded
> into the routing table, so you might try swapping them around to see if
> it makes any difference. Otherwise I think you're into advanced routing
> with multiple tables.
> As long as both NICs are running on the same network I don't think it
> will cause any problems anyway.


The query only occured as we were setting up a new wifi adsl router at
our club; used the wired connection to set up the security on the wifi
then forgot to disable the ethernet before inserting the wifi card.

All appeared to work fine but I was then curious as to which interface
would be used.

Geoff Lane

Reply With Quote
  #5 (permalink)  
Old 03-22-2008, 03:23 PM
LR
 
Posts: n/a
Re: Two Network cards

Geoff Lane wrote:
> Rob Morley wrote:
>
>>> If one has two network cards connected to a computer (eg one
>>> ethernet and one wifi) and both are connected to the internet is
>>> there a priority for outgoing traffic or can this cause problems.
>>>

>> With a normal configuration both NICs will have a default route set -
>> if you want to use just one for internet access then remove the
>> default route for the other one. With both default routes set I
>> suspect the order they are tried will depend on the order in which
>> they were loaded into the routing table, so you might try swapping
>> them around to see if it makes any difference. Otherwise I think
>> you're into advanced routing with multiple tables.
>> As long as both NICs are running on the same network I don't think it
>> will cause any problems anyway.

>
> The query only occured as we were setting up a new wifi adsl router at
> our club; used the wired connection to set up the security on the wifi
> then forgot to disable the ethernet before inserting the wifi card.
>
> All appeared to work fine but I was then curious as to which interface
> would be used.
>
> Geoff Lane
>

Although you posted to linux.networking you didn't actually specify
which operating system was being used. If windows you may find this of
interest:-
http://technet.microsoft.com/en-us/l.../bb878031.aspx
Reply With Quote
  #6 (permalink)  
Old 03-22-2008, 04:20 PM
Geoff Lane
 
Posts: n/a
Re: Two Network cards

LR wrote:

>> The query only occured as we were setting up a new wifi adsl router at
>> our club; used the wired connection to set up the security on the wifi
>> then forgot to disable the ethernet before inserting the wifi card.
>>
>> All appeared to work fine but I was then curious as to which interface
>> would be used.


> Although you posted to linux.networking you didn't actually specify
> which operating system was being used. If windows you may find this of
> interest:-
> http://technet.microsoft.com/en-us/l.../bb878031.aspx


Thanks, I'll view it.

We were using XP at the time but do run Linux machines at the club but
being Easter it was a quiet night :-)

Geoff Lane

Reply With Quote
  #7 (permalink)  
Old 03-22-2008, 08:32 PM
PeeGee
 
Posts: n/a
Re: Two Network cards

LR wrote:
> Geoff Lane wrote:
>> Rob Morley wrote:
>>
>>>> If one has two network cards connected to a computer (eg one
>>>> ethernet and one wifi) and both are connected to the internet is
>>>> there a priority for outgoing traffic or can this cause problems.
>>>>
>>> With a normal configuration both NICs will have a default route set -
>>> if you want to use just one for internet access then remove the
>>> default route for the other one. With both default routes set I
>>> suspect the order they are tried will depend on the order in which
>>> they were loaded into the routing table, so you might try swapping
>>> them around to see if it makes any difference. Otherwise I think
>>> you're into advanced routing with multiple tables.
>>> As long as both NICs are running on the same network I don't think it
>>> will cause any problems anyway.

>>
>> The query only occured as we were setting up a new wifi adsl router at
>> our club; used the wired connection to set up the security on the wifi
>> then forgot to disable the ethernet before inserting the wifi card.
>>
>> All appeared to work fine but I was then curious as to which interface
>> would be used.
>>
>> Geoff Lane
>>

> Although you posted to linux.networking you didn't actually specify
> which operating system was being used. If windows you may find this of
> interest:-
> http://technet.microsoft.com/en-us/l.../bb878031.aspx


Interesting, but does not match my experience with at least 15 laptops.
XP Pro SP2 seems to get confused with two connections, with network
traffic slowing to a crawl. Disable either connection and the remaining
connection returns to "normal" speeds. In the end, all laptops were set
to manual for wireless.

--
PeeGee

The reply address is a spam trap. All mail is reported as spam.
"Nothing should be able to load itself onto a computer without the
knowledge or consent of the computer user. Software should also be able
to be removed from a computer easily."
Peter Cullen, Microsoft Chief Privacy Strategist (Computing 18 Aug 05)
Reply With Quote
  #8 (permalink)  
Old 03-23-2008, 09:04 AM
LR
 
Posts: n/a
Re: Two Network cards

PeeGee wrote:
>>
>> http://technet.microsoft.com/en-us/l.../bb878031.aspx

>
> Interesting, but does not match my experience with at least 15
> laptops. XP Pro SP2 seems to get confused with two connections, with
> network traffic slowing to a crawl. Disable either connection and the
> remaining connection returns to "normal" speeds. In the end, all
> laptops were set to manual for wireless.
>

Since XP SP2 I haven't had any problems. The automatic setting for
"Routing Metric" has always given priority to the Ethernet connection. I
have just checked my dual boot laptops at home and with fully updated XP
SP2 they both give a "routing metric" of 20 for ethernet and 25 for
wireless and traffic goes via ethernet, routing metric is set to
automatic. If I change the wireless metric to 15 all traffic goes via
wireless and it only gets confusing if you set both to the same metric
and have the "automatic" setting on both cards disabled.
The metric setting can be manually configured in the TCP/IP advanced
settings.
Reply With Quote
  #9 (permalink)  
Old 03-23-2008, 07:52 PM
=?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?=
 
Posts: n/a
Re: Two Network cards

On Mar 22, 11:45*am, Geoff Lane <datemasde....@gishpuppy.com> wrote:
> If one has two network cards connected to a computer (eg one ethernet
> and one wifi) and both are connected to the internet is there a priority
> for outgoing traffic or can this cause problems.


When you want to send an IP packet, your machine will check its
routing table to see how it should send it. If your routing tables
contains multiple entries for on route (e.g. multiple entries for
0.0.0.0), then it checks the "metric" associated with each route to
decide which one it will take.

You can have as many NIC's as you want without there being any
confusion, so long as your routing table is set right.

In windows, open up a console and type "route print". Under
"Destination" check for "0.0.0.0"; this is a route to the internet. If
there's more than one entry for 0.0.0.0, then the check the metric.
The lower metric wins.

I dunno if modern OS's allow you to give two routes the same metric,
but if so then it probably choose the route simply by putting the
gateway addresses in numerical order... or something like that.
Reply With Quote
  #10 (permalink)  
Old 03-24-2008, 09:59 AM
BeterHans PAN
 
Posts: n/a
Re: Two Network cards

It should depend on the default router settings


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:37 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Shares | Mortgage Calculator | Cheat Codes | Personal Loans | Project cars for sale



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114