Re: 2 NICs and routing

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dusty Harper {MS} (DHarper_at_Online.Microsoft.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 13:54:59 -0700

The router doesn't need routes added. It has routes already because it is
directly connected to each network segment.

On the client machines, they need either a specific, subnet, or default
route in order to know where to send the packet for further processing.

[A]-------------------[ Router ]---------------------[B]
                192.168.2.102 172.18.6.102

[Router]
just needs IP Forwarding enabled. Windows already has routes for each
network setup in the IP stack because the router has interfaces on each
subnet ( so the router already knows how to get to each )

[A]
Route add 172.18.6.0 mask 255.255.255.0 192.168.2.102

[B]
Route Add 192.168.2.0 mask 255.255.255.0 172.18.6.102

Also note that if you are going from a Private address scheme into a public
one, then you need to NAT the packets.

( 172.18.6.102 is a public address scheme )

-- 
-- 
Dusty Harper
Microsoft Corporation
----------------------------------------------------------------------------
This posting is provided "AS IS", with NO warranties and confers NO rights
----------------------------------------------------------------------------
"bucrepus" <bucrepus@hotmail.com> wrote in message
news:OaTi8F9gEHA.3148@TK2MSFTNGP10.phx.gbl...
> I reduced this question for easier reading...
> I have 2 NICS on two sep. networks (w2k3 svr) and one wrkstation on each
> cable connected to the server.
> On the SERVER:
> NIC1 192.168.2.102   255.255.255.0
> NIC2 172.18.6.102    255.255.255.0
>
> On WrkStation1:
> NIC 192.168.2.55
> On WrkStation2:
> NIC 172.18.6.55
>
> I need to route info from one to the other network. (ping the wrkstation
IP
> on the other network. (Ex Ping 192.168.2.55 from the workstation
172.18.6.55
> and get reply..)
> I setup 2 static routes on server.
> INTERFACE NIC1
> Dest: 172.18.6.0   NM:255.255.255.0 Gate:192.168.2.102  Metric 1
> INTERFACE NIC2
> Dest: 192.168.2.0  NM:255.255.255.0 Gate:172.18.6.102 Metric 1
>
> Doesnt work.. any ideas.. Thanks...
>
>


Relevant Pages

  • Re: OpenSwan - Linux VPN to Linux VPN
    ... I want to be able to use all the resources on the host network. ... I can get some of it to work changing the routes manually. ... There are 4 IP addresses associated with a VPN tunnel: ... The left router knows that the packet in destined via the tunnel, ...
    (comp.os.linux.networking)
  • Re: ISPs whinging about BBCs iPlayer
    ... It also solves routing problems as IPv6 address are heirarchical - the way ... each network. ... routes for a router that doesnt use defaults to ignore chunks of the total ...
    (uk.telecom.broadband)
  • Re: Adding a route question
    ... > I am in the process of setting up a routed network. ... > 2000 router with 2 network cards to each represent the networks. ... if you add RRAS routes ... Now, be careful, since most people connect to the Internet, ...
    (microsoft.public.win2000.networking)
  • Re: No gateway for WLAN
    ... You have tworoutes for the ... It seems that you can't reach your router through the wlan0 interface. ... As soon as eth0 is available, ... network comes up and the router is now reachable. ...
    (comp.os.linux.networking)
  • ~~~~~~~~~~~~~~ IP ADDRESS ~~~~~~~~~~~~~~
    ... block my ip address vista windows ... change public ip address linksys router ... setting up a network ip address ... warcraft server ip address ...
    (sci.misc)