Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP routing by server help

Status
Not open for further replies.

patrichek

MIS
Nov 18, 2003
632
US
Hi All,
I have 2 nics on one win 2k3 server and would like to route traffic between 192.168.1.0 and 192.168.2.0

Server
nic1
Code:
ip 192.168.1.240
sm 255.255.255.0
d/g blank

Server
Code:
nic2
ip 192.168.2.2
sm 255.255.255.0
d/g 192.168.2.1

trying to ping 192.168.1.x from my laptop does not work, my laptop ip:
Code:
192.168.2.10
sm 255.255.255.0
d/g 192.168.2.1

What am i missing? I don't know how to route the traffic on the server between the subnets.

thanks!
 
Your laptop will be sending all IP traffic that is NOT destined for the local network (192.168.2.0/24) to the device that has the IP address 192.168.2.1. This isn't your Windows 2000 server, I assume it is a 'real' router? As a quick fix you can add a static route on the laptop to test:
Code:
route add 192.168.1.0 mask 255.255.255.0 192.168.2.2

You need to understand how IP routing works.....

HTH

Andy
 
Great! I'll try it. Yep that is a real router.
if i added that route on the 192.168.2.1 router would that do it as well?

yes you are right, i do need to understand how ip routing works....

thank you
 
If you add the route on the router it may work.... It depends on whether the router will send ICMP redirect messages. Try it and see. If it does work you will notice the local routing table on the PC's increases for each host they attempt to connect to on the 192.168.1.0/24 network (open a command prompt and type 'route print').

HTH

Andy
 
I don't think this will work with a vanilla install. You would have to also install some sort of routing service on the server in order for it to know what to do with the traffic. I believe that there is a Routing and Remote Access service that needs installed.
 
Hi,
I have it working. I already had installed RRAS. What i did was add a static route to each subnet and put the NIC on the RRAS ip as the gateway.

Thanks!
 
a better explanation

RRAS Windows 2003 server
NIC1
IP 192.168.1.240
sm 255.255.255.0
dg blank

NIC2
IP 192.168.2.254
sm 255.255.255.0
dg 192.168.2.1


Router1
subnet 192.168.1.0
route added 192.168.1.0 sm 255.255.255.0 192.168.2.254

Router2
Subnet 192.168.2.1
route added 192.168.2.0 sm 255.255.255.0 192.168.1.240

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top