× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This route makes no sense. "In order to get to IP addresses that start with 192.168.0, send your packets to 192.168.0.1". You can't send packets to 192.168.0.1 if you don't know how to get to the 192.168.0 subnet!

That's like asking directions... "How do I get to Bakersfield? Well, first drive to Main St. in Bakersfield, then go left." You CAN'T get to Main St. in Bakersfield, because you don't know how to get to Bakersfield!

Most likely, however, you already live in Bakersfield, and what you really want is to know how to get to the Interstate that will take you to the rest of the world.

In other words, your computer is *already on* the 192.168.0 subnet. (You'll know this from the IP address of your network interface, and it's subnet mask...) So you don't need a route that tells you how to get to the 192.168.0 subnet, you're ALREADY THERE... what you really need is to know how to get to everywhere else.

So you don't want to add a route to 192.168.0 -- you want to add a DEFAULT route -- a route that's used for any address that your system doesn't already know how to get to.

So this is what you want to do (prompt the command for additional parameters)
ADDTCPRTE RTEDEST(*DFTROUTE) SUBNETMASK(*NONE) NEXTHOP('192.168.0.1')

This says "to get to all subnets besides my own -- or those that I've already been routes to -- send packets to the router at 192.168.0.1" and that's what I THINK you're looking for.

However, I do agree with Simon. Do *not* simply assume that 192.168.0.1 is your router. A router can have any IP address (on the subnet) it doesn't have to be the first address. Ask whomever set up your network for the correct address -- unless you have a good reason to believe that it's 192.168.0.1. Whatever the correct router address is, that's the address you need to use with the ADDTCPRTE command, above.


Mike wrote:
I can only assume that the default gateway is
192.168.0.1. Would the values be:

Route Subnet Next Preferred
Destination Mask Hop Interface
192.168.0.0 255.255.255.0 192.168.0.1

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.