Subscribe to Windows IT Pro
May 01, 1996 12:00 AM

NT Workstations Using an IP Router

Windows IT Pro
InstantDoc ID #2544
Rating: (0)
Get Rid of Those Default Gateways!

A couple of months ago, I talked about how to make a Windows NT machine into an IP router, but I didn't cover the implications for workstations that use that router. This month, I want to look at this area so I'll have all the pieces in place to cover next month's topic, the grand finale: using an NT machine as a LAN-to-WAN router to the Internet.

An example of a workstation that uses an IP router is a simple three-subnet "internet" (the example includes only three subnets, so this is an "internet," not part of the "Internet"). Figure 1 shows this "internet."

First, you see three separate Ethernet segments, three separate subnets. They are all C-class networks (subnet mask 255.255.255.0), just to keep things clean. Ovals represent two of the networks. The left oval, containing 199.100.200.0, is shorthand for an Ethernet with up to 254 computers. Addresses range from 199.100.200.1 through 199.100.200.254. Notice I said 254, not 253, because these subnets have no default gateway.

The right oval represents a network whose addresses range from 200.15.16.1 through 200.15.16.254--network number 200.15.16.0. Between these ovals is a third subnet, with the address 210.50.200.0. The PC in the middle contains only one Ethernet card, and its IP address is 210.50.200.40.

The rectangles on the right and left sides are routers, computers with two Ethernet cards and thus two IP addresses apiece. Each has an address on the 210.50.200.0 network, and each has an address on either the 200.15.16.0 network or the 199.100.200.0 network. These routers can be PCs running NT, or they can be dedicated routers from Cisco Systems, Bay Networks, Compatible Systems, or the like.

The plan is to set up the workstation at 210.50.200.40. Notice that, from this workstation's point of view, it has two possible "gateways," 210.50.200.200 and 210.50.200.22. Which should be the default gateway?

The answer: neither. When you set up the .40 machine with a static IP address (that is, if you just punch in an IP address, subnet mask, and such, rather than letting the Dynamic Host Configuration Protocol (DHCP) automatically give it an IP address), you leave the Default Gateway field blank. You now need to tell the machine at 210.50.200.40 how to route to anywhere on this network. The following are some facts this machine needs to know.

1) To get a message to the 199.100.200.0 network, send it to the machine at 210.50.200.200.

2) To get a message to the 200.15.16.0 network, send it to the machine at 210.50.200.22.

3) To get a message to the 210.50.200.0 network, just use your own Ethernet card; send the message out on the segment, and it'll be heard.

You tell a workstation how to send packets with the route add command. It looks like this:

route add destination mask netmask gatewayaddress

In this command, destination is the address or set of addresses that you want to reach. Netmask defines how many addresses are there: Is it a C-class network with 250+ addresses, something subnetted smaller, or perhaps a supernet of several C-class networks? Gatewayaddress is just the IP address of the machine that will route your packets to destination.

The routeadd command for the 199.100.200.0 network looks like this:

route add 199.100.200.0 mask 255.255.255.0 210.50.200.200

It means, "to send a message anywhere on the 199.100.200.0 network, send it to the machine at 210.50.200.200, which will take care of it."

Just a reminder on subnetting, for clarity's sake: Suppose the network on the left isn't a full C-class network, but a subnetted part of it; suppose instead that it is just the range of addresses from 199.100.200.64 through 199.100.200.127. The network number is, as always, the first address (199.100.200.64), and the subnet mask is 255.255.255.192. The routeadd command then looks like this:

route add 199.100.200.64 mask 255.255.255.192 210.50.200.200

Next, you add a command for the network on the right. This command takes the form

route add 200.15.16.0 mask 255.255.255.0 210.50.200.22

That command will get an NT system up and running. Now it can access all three subnets.

Suppose the workstation at .40 tries two PING commands: PING 2.44.214.33 and PING 200.15.16.170. Suppose also that no machine on the 200.15.16.0 network has the IP address 200.15.16.170. Now both PINGs will fail, because neither machine is on this network, but each will produce a different error message. PINGing 200.15.16.170 will produce, "Request timed out," and PINGing 2.44.214.33 will produce, "Destination host unreachable."

Related Content:

ARTICLE TOOLS

Comments
  • Kevin Walkery
    13 years ago
    Aug 13, 1999

    I look forward to your articles on TCP/IP. I’m trying to understand DNS and WINS. Keep the information coming because I’m trying to do TCP/IP correctly. After reading your articles, I see I’m on the right track. I tell my coworkers that your magazine must have a spy in our company because you always write about what I want to know.

    --Kevin Walkery

  • Peter Rizk
    13 years ago
    Aug 13, 1999

    Thanks for Mark Minasi’s excellent May column, “NT Workstations Using an IP Router.” I subscribed in May, so I couldn’t read his previous column. Can you email me an electronic copy?
    I’m a die-hard NT user in Apple Computer’s cross platform group. I test network OSs. NT’s Mac support is great. I need to know more about integrating it with other networking OSs such as NetWare.
    I look forward to your next LAN-WAN IP routing article. Keep up the good work and focus on NT networking. Please keep those good NT articles coming.

    --Peter Rizk, Apple Computer



    Thanks for your comments. Unfortunately, we can’t email articles from previous issues. Electronic versions of issues through March 1996 are on our Web site: http://www.winntmag.com. For more recent back issues in print, please email your request to subs@winntmag.com or call 970-663-4700 and ask for Windows NT Magazine customer support.

    --Mark Smith

  • Jerry Griffith
    13 years ago
    Aug 13, 1999

    Last Wednesday, I successfully routed my network using NT 3.51, thanks in large part to Mark Minasi's very helpful columns. The key for me was to set the RASARP to 0 instead of 1. I also took out the RASMAN parameter (which, as Mark Minasi mentions, is part of the setup design in the NT Resource Kit). Also, I never established a PPP connection to my ISP. I'm using SLIP, which seems to be working fine.
    Thanks very much for the help. I was very frustrated, but now I've just subscribed to Windows NT Magazine. I'm in your debt.

    --Jerry Griffith

  • David Daverso
    13 years ago
    Aug 13, 1999

    Thanks for Mark Minasi's May column, “NT Workstations Using an IP Router.” I thirst for the enterprise version of networking information that such columns provide. Mark Minasi asked readers to let him know if these topics are the sort we want. Yes. TCP/IP topics will definitely get my readership each month. I suggest going over subnets and sub-net masking.
    I found an error in the article. On page 106, the third column starts explaining the lines in Screen 1. I can follow the explanation, but Screen 1 shows the 10.50.200.0 network as 210.50.100.0.
    Thanks again. May good fortune always be yours.

    --David Daverso,

    Certified Network Grunt



    Thanks, Dave. You and several other eagle-eyed readers picked up this error. Thanks again, and sorry!

    --Mark Minasi

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.