Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is the basic setup. The goal is to get Host 2 to use Host 1's second NIC to connect to the internet without using any special routing software or anything on Host 1.

network diagram

What I can do: Configure static routing tables for both Cisco-routers and Host 1/2.
What I can't do: Configure the router at 192.168.60.1 and use dynamic routing on the Cisco routers. What I was able to achieve: Ping 192.168.60.71 (Host 1s 2nd NIC) from 192.168.90.1 (Host 2's NIC) directly.
Were I got stuck: Ping 192.168.60.1 from 192.168.90.1

What I did:

  • Told Cisco 2 about 192.168.90.0 via Ethernet, 192.168.2.0 via Serial and 192.168.13.0 via 192.168.2.2 (Cisco 1) aswell as 0.0.0.0 via Serial.
  • Told Cisco 1 about 192.168.13.0 via Ethernet, 192.168.2.0 via Serial, 192.168.90.0 via 192.168.2.1 (Cisco 2) and 0.0.0.0 via 192.168.13.37 aswell as specifically 192.168.60.0 via 192.168.13.37 (probably not neccessary)
  • And last I added routes on Host 1 for 192.168.60.0 via NIC 2 aswell as 0.0.0.0 via 192.168.60.1.

I feel I'm so close to solving this, but I seem to bang my head against a wall, adding unneccessary routes and not really solving the issue.

Both Hosts run Windows XP.

I would be SO glad for some help here, this is exciting for me (especially since I'm more the programming type) and the fact I can ping 192.168.60.71 from 192.168.90.1 already got me extra credits from my teacher, but I basically promised him I was able to make Host 2 go into the internet via Host 1, and I intend to show everyone the solution.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Since you cannot alter the routing tables on 192.168.60.1 and it apparently has no route to the 192.168.90.0/24 network, you will have the problem that replies to packets which originated from 192.168.90.0/24 would never be able to find their routes.

You can work around this problem by using a technique called NAT where the source address of all outgoing packets would be rewritten by Host 1 to be 192.168.60.71 - where the router at 192.168.60.1 would have a valid route to. Host 1 would maintain connection tables and perform the translation back to the original addresses for incoming reply packets.

NAT support is built in into Windows XP in two flavors. There is the easy to set up "Internet Connection Sharing", but it is mainly targeted at a single One internet-connected XP-PC in a single private subnet scenario and there are several restrictions to the implementation so you would not be able to use it in your setup. And there is the NAT implementation of the Remote Access Service (RAS) which can perform the task as well but is more flexible. You would have to use the routing ip nat context of the netsh command to do the configuration. See the Microsoft Technet documentation for more details on this feature or the numerous third-party walkthroughs on "NAT with Windows RAS" like this one which you'll find by querying the search engine of your choice.

share|improve this answer
    
I never thought about the replying packet, I only pretended to be a packet going out when thinking about this. This makes sense, and while we never used NAT/RAS practically we went through it in theory and it makes most sense. Sadly I can't instantly test this solution since next lesson is in 2 weeks but I'm sure with these new ressources I'll be able to solve the problem. I'll accept this answer this it makes sense to me in theory. Do you want me to tell you if I successfully implement it? thanks! –  xNidhogg Jan 9 '12 at 10:15
    
@xNidhogg You should un-accept the answer and wait two weeks then :) Just drop a comment to my answer if you have further issues or to tell if you were able to make it work - I'll get notified. And welcome to Serverfault. –  the-wabbit Jan 9 '12 at 11:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.