The route command is used to add or delete routing information from the memory of the NAT. significant information to a remote server for processing. In the NetNAT, this allows the collection of useful information without the need for masses of local storage or local processing. Computers that have more time on their hands are better at distilling and graphing statistical information.
Network Address Netmask NSC Notation ----------------- ---------------- --------------------- 123.234.0.0 255.255.0.0 123.234/16 123.234.222.17 255.255.255.0 123.234.222/24 123.234.222.17 255.255.254.0 123.234.222/23 123.234.222.255 255.255.255.255 123.234.222.255/32The final number (after the slash) is the number of bits in the netmask. Because of this specification of netmask, the NAT is not compatible with networks that use "comb" style netmasks, where all one-bits are not contiguous. The following table gives the number of bits for each permitted netmask.
Netmask # of Bits Netmask # of Bits
----------------- ----------- ----------------- -----------
128.0.0.0 1 255.128.0.0 9
192.0.0.0 2 255.192.0.0 10
224.0.0.0 3 255.224.0.0 11
240.0.0.0 4 255.240.0.0 12
248.0.0.0 5 255.248.0.0 13
252.0.0.0 6 255.252.0.0 14
254.0.0.0 7 255.254.0.0 15
255.0.0.0 8 255.255.0.0 16
Netmask # of Bits Netmask # of Bits
----------------- ----------- ----------------- -----------
255.255.128.0 17 255.255.255.128 25
255.255.192.0 18 255.255.255.192 26
255.255.224.0 19 255.255.255.224 27
255.255.240.0 20 255.255.255.240 28
255.255.248.0 21 255.255.255.248 29
255.255.252.0 22 255.255.255.252 30
255.255.254.0 23 255.255.255.254 31
255.255.255.0 24 255.255.255.255 32
route
The NetNAT is usually the default gateway for every computer on the private network. This command specifies the default gateway for the NetNAT to use.
route add default [int name] [gateway]Where:
route add default en0 204.79.22.15 # default to Internet route add 140.63.33/24 en0 204.79.22.16 # static to associatesHere we see a default to a router at 204.79.22.15, which we trust to get our messages out into the Internet, and a static route to any of 250-some hosts on the 140.63.33 network. The notation "/24" says that our associates' network uses a 24-bit netmask, or 255.255.255.0. Whether they actually do (at their site) is of no concern to us. We will send any message starting with 140.63.33 to them for delivery. The router at 204.79.22.16 will know how to get the messages to our associates.
Static routes are a valuable tool for the Enterprise Network Designer.
route add [dest net] [int name] [gateway]Where:
route addprivate 192.168.32/24 en0Note that the route subcommand is addprivate instead of add. This keeps the NAT from advertising the route if a routing protocol is started on it. Due to the complexity of configuration of most routing protocols, we don't recommend that you start one on the NAT. Feel free to run them on your other routers, though.
route addprivate [local net] [int name]Where:
This information is proprietary to Network Safety Corporation. Network Safety, WebElite, DialNAT and NetNAT are trademarks of Network Safety Corporation. For information on our products and services, please contact our sales department.
This page was prepared using WebElite, our professional editor for the Web.