Networking Forums

Networking Forums > Computer Networking > Windows Networking > Configure 1 adapter with 2 Gateways

Reply
Thread Tools Display Modes

Configure 1 adapter with 2 Gateways

 
 
Pete
Guest
Posts: n/a

 
      04-10-2004, 06:05 PM
Hi,

I have read that you can configure 1 adapter with two
gateways. We have two different routers that user needs
to access. Does anybody have a link to an article on how
to do this? Or explain to me how to do this?

Thanks,

Pete
 
Reply With Quote
 
 
 
 
Michael Holzemer
Guest
Posts: n/a

 
      04-10-2004, 07:26 PM
In item news:1811901c41f26$66c98e40$(E-Mail Removed),
Pete says...

> Hi,
>
> I have read that you can configure 1 adapter with two
> gateways. We have two different routers that user needs
> to access. Does anybody have a link to an article on how
> to do this? Or explain to me how to do this?
>
> Thanks,
>
> Pete


Sound like you want to do some routing here. Use the routing table (cmd > route
print to see the table) in your machine and you can send specific traffic to the
second gateway. Otherwise you can add a second gateway in tcp/Ip properties >
advanced button.

--
Regards,

Michael Holzemer
No email replies please - reply in newsgroup

Learn script faster by searching here
http://www.microsoft.com/technet/com...r/default.mspx


 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a

 
      04-10-2004, 07:41 PM
On Sat, 10 Apr 2004 11:05:26 -0700, "Pete"
<(E-Mail Removed)> wrote:

> I have read that you can configure 1 adapter with two
>gateways.


You've read wrong.

>We have two different routers that user needs
>to access. Does anybody have a link to an article on how
>to do this? Or explain to me how to do this?


You need to provide a route on your system to send packets through the
router to a destination. The default Gateway is where packets with no
route go.

Jeff
 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a

 
      04-10-2004, 07:46 PM
On Sat, 10 Apr 2004 12:26:43 -0700, "Michael Holzemer"
<(E-Mail Removed)> wrote:

>In item news:1811901c41f26$66c98e40$(E-Mail Removed),
>Pete says...
>
>> Hi,
>>
>> I have read that you can configure 1 adapter with two
>> gateways. We have two different routers that user needs
>> to access. Does anybody have a link to an article on how
>> to do this? Or explain to me how to do this?
>>
>> Thanks,
>>
>> Pete

>
>Sound like you want to do some routing here. Use the routing table (cmd > route
>print to see the table) in your machine and you can send specific traffic to the
>second gateway. Otherwise you can add a second gateway in tcp/Ip properties >
>advanced button.


While that may seem logical, it doesn't work that way. You only get a
single default gateway. After all, if there were two, which would be
the default...?

Jeff
 
Reply With Quote
 
Michael Holzemer
Guest
Posts: n/a

 
      04-10-2004, 08:11 PM
In item news:(E-Mail Removed),
Jeff Cochran says...

> On Sat, 10 Apr 2004 12:26:43 -0700, "Michael Holzemer"
> <(E-Mail Removed)> wrote:
>
>> In item news:1811901c41f26$66c98e40$(E-Mail Removed),
>> Pete says...
>>
>>> Hi,
>>>
>>> I have read that you can configure 1 adapter with two
>>> gateways. We have two different routers that user needs
>>> to access. Does anybody have a link to an article on how
>>> to do this? Or explain to me how to do this?
>>>
>>> Thanks,
>>>
>>> Pete

>>
>> Sound like you want to do some routing here. Use the routing table (cmd >
>> route print to see the table) in your machine and you can send specific
>> traffic to the second gateway. Otherwise you can add a second gateway in
>> tcp/Ip properties > advanced button.

>
> While that may seem logical, it doesn't work that way. You only get a
> single default gateway. After all, if there were two, which would be
> the default...?
>
> Jeff


The first gateway in the list would always be default, but on failure of that
gateway the machine would use the second gateway in the list. There are some
issues that this can cause because the gateway will not just switch back. I
probably should have included more information, rather than the standard "it is
possible". There are some caveats to doing this. Personally I am a big fan of
using the routing table to control traffic (if I do not have keys to the router,
that is.) because I have complete control over where the traffic is going.

See these articles for information on dead gateway detection
http://support.microsoft.com/default...b;EN-US;128978
http://support.microsoft.com/default...b;EN-US;159168

--
Regards,

Michael Holzemer
No email replies please - reply in newsgroup

Learn script faster by searching here
http://www.microsoft.com/technet/com...r/default.mspx


 
Reply With Quote
 
Marty List
Guest
Posts: n/a

 
      04-10-2004, 09:22 PM

"Jeff Cochran" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sat, 10 Apr 2004 11:05:26 -0700, "Pete"
> <(E-Mail Removed)> wrote:
>
> > I have read that you can configure 1 adapter with two
> >gateways.

>
> You've read wrong.
>


Even though it's rarely used, you can configure one adapter with multiple
gateways, each with its own cost metric.

C:\>ipconfig.exe

Windows IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : optimumx.com
IP Address. . . . . . . . . . . . : 192.168.0.32
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
192.168.0.2
192.168.0.3

C:\>route.exe print
================================================== =========================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 0c 6e 6c 9f ec ...... Realtek RTL8139 Family PCI Fast Ethernet
NIC - P
acket Scheduler Miniport
================================================== =========================
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.32 20
0.0.0.0 0.0.0.0 192.168.0.2 192.168.0.32 20
0.0.0.0 0.0.0.0 192.168.0.3 192.168.0.32 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.32 192.168.0.32 20
192.168.0.32 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.255 255.255.255.255 192.168.0.32 192.168.0.32 20
224.0.0.0 240.0.0.0 192.168.0.32 192.168.0.32 20
255.255.255.255 255.255.255.255 192.168.0.32 192.168.0.32 1
Default Gateway: 192.168.0.1
================================================== =========================
Persistent Routes:
None



 
Reply With Quote
 
Pete
Guest
Posts: n/a

 
      04-10-2004, 10:07 PM
Hi Marty,

Using Route to add Multiple Gateways, in command
console are you supplying an machine IP address and
gateway Ip address each time you enter a new route as so:

C:\>route add 10.0.0.75 mask 0.0.0.0 192.168.12.1

C:\>route add 10.0.0.75 mask 0.0.0.0 192.168.12.2

So in this example I have the machine IP address set for
10.0.0.75 with two default gateways. Is this correct in
setting up Multiple gateways? and the metric I am
gathering if used gives like a more priority of one
gateway over another,correct?

Thanks,

Pete


>-----Original Message-----
>
>"Jeff Cochran" <(E-Mail Removed)> wrote in

message
>news:(E-Mail Removed)...
>> On Sat, 10 Apr 2004 11:05:26 -0700, "Pete"
>> <(E-Mail Removed)> wrote:
>>
>> > I have read that you can configure 1 adapter with

two
>> >gateways.

>>
>> You've read wrong.
>>

>
>Even though it's rarely used, you can configure one

adapter with multiple
>gateways, each with its own cost metric.
>
>C:\>ipconfig.exe
>
>Windows IP Configuration
>
>Ethernet adapter Local Area Connection:
>
> Connection-specific DNS Suffix . : optimumx.com
> IP Address. . . . . . . . . . . . : 192.168.0.32
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . : 192.168.0.1
>

192.168.0.2
>

192.168.0.3
>
>C:\>route.exe print
>================================================= ========

==================
>Interface List
>0x1 ........................... MS TCP Loopback interface
>0x2 ...00 0c 6e 6c 9f ec ...... Realtek RTL8139 Family

PCI Fast Ethernet
>NIC - P
>acket Scheduler Miniport
>================================================= ========

==================
>================================================= ========

==================
>Active Routes:
>Network Destination Netmask

Gateway Interface Metric
> 0.0.0.0 0.0.0.0 192.168.0.1

192.168.0.32 20
> 0.0.0.0 0.0.0.0 192.168.0.2

192.168.0.32 20
> 0.0.0.0 0.0.0.0 192.168.0.3

192.168.0.32 20
> 127.0.0.0 255.0.0.0

127.0.0.1 127.0.0.1 1
> 192.168.0.0 255.255.255.0 192.168.0.32

192.168.0.32 20
> 192.168.0.32 255.255.255.255

127.0.0.1 127.0.0.1 20
> 192.168.0.255 255.255.255.255 192.168.0.32

192.168.0.32 20
> 224.0.0.0 240.0.0.0 192.168.0.32

192.168.0.32 20
> 255.255.255.255 255.255.255.255 192.168.0.32

192.168.0.32 1
>Default Gateway: 192.168.0.1
>================================================= ========

==================
>Persistent Routes:
> None
>
>
>
>.
>

 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a

 
      04-11-2004, 03:26 AM
>> > I have read that you can configure 1 adapter with two
>> >gateways.

>>
>> You've read wrong.
>>

>
>Even though it's rarely used, you can configure one adapter with multiple
>gateways, each with its own cost metric.


Sorry, read it as "two default gateways" instead of "two gateways".
Of course, telling him he needed to use routes was actually the same
answer...

Jeff
 
Reply With Quote
 
Marty List
Guest
Posts: n/a

 
      04-11-2004, 03:05 PM

"Pete" <(E-Mail Removed)> wrote in message
news:1ae9c01c41f48$31be7bd0$(E-Mail Removed)...
> Hi Marty,
>
> Using Route to add Multiple Gateways, in command
> console are you supplying an machine IP address and
> gateway Ip address each time you enter a new route as so:
>
> C:\>route add 10.0.0.75 mask 0.0.0.0 192.168.12.1
>
> C:\>route add 10.0.0.75 mask 0.0.0.0 192.168.12.2
>
> So in this example I have the machine IP address set for
> 10.0.0.75 with two default gateways. Is this correct in
> setting up Multiple gateways? and the metric I am
> gathering if used gives like a more priority of one
> gateway over another,correct?
>
> Thanks,
>
> Pete
>


Hi Pete,

It depends on what you are trying to accomplish. First explain why you have
2 routers for the same subnet, and explain when the client needs to access
one vs. the other.


Marty



 
Reply With Quote
 
Marty List
Guest
Posts: n/a

 
      04-11-2004, 03:12 PM

"Jeff Cochran" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> >> > I have read that you can configure 1 adapter with two
> >> >gateways.
> >>
> >> You've read wrong.
> >>

> >
> >Even though it's rarely used, you can configure one adapter with multiple
> >gateways, each with its own cost metric.

>
> Sorry, read it as "two default gateways" instead of "two gateways".
> Of course, telling him he needed to use routes was actually the same
> answer...
>
> Jeff


I didn't tell him "he needed to use routes". I included the route print to
show you that it's possible.

It's pretty simple really, maybe you just haven't ever done this before.
Open your adapter's TCP/IP properties page, and on the Advanced screen you
will see the "Default Gateways" section, where you can add multiple entries.



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
4 FXS port VoIP Gateways / ATA / Adapter Rover Wireless Internet 0 01-24-2008 01:02 PM
4 FXS port VoIP Gateways / ATA / Adapter Rover Linux Networking 0 01-24-2008 01:01 PM
TCP/IP Multiple gateways (different gateways) Windows (NT, 98, 2000, 2003, XP) goonmunster Windows Networking 1 02-26-2007 08:39 AM
TCP/IP Multiple gateways (different gateways) Windows (NT, 98, 2000, 2003, XP) goonmunster Windows Networking 1 02-26-2007 08:39 AM
configure WLAN adapter Daniel Ho Linux Networking 3 04-09-2004 10:24 AM



1 2 3 4 5 6 7 8 9 10 11