[comp.protocols.tcp-ip] answer about /etc/route

timk@NCSA.UIUC.EDU (Tim Krauskopf) (02/05/88)

Thanks to all who replied.  I received several messages which
reminded me that 128.174.22 is interpreted as 128.174.0.22 if you
don't specify that the last part is 0 or use a trailing period.

This doesn't help.  Entering 128.174.22.0 produces a UGH (host) entry
in the table because it still doesn't take it as a network address,
only a host address.  True for SunOS 3.3, I don't know about 4.3BSD.

Stuart Levy wins the prize for the correct answer -- Special thanks.

# route -n add 128.174.22.0 mygate 3

works because the undocumented (not on my man page) option of -n
forces the address to be a network entry.  Maybe the documentation is
buried in the update pages for SunOS 3.3 or is in the 4.3 documentation.  

 Tim Krauskopf                                        timk@ncsa.uiuc.edu (ARPA)
 National Center for Supercomputing Applications      14013@ncsavmsa (BITNET)