Messages in this thread | | | Date | Sun, 15 Dec 1996 18:13:35 +0000 (GMT) | From | The Deviant <> | Subject | Re: 2.1.15 vs. "route" |
| |
-----BEGIN PGP SIGNED MESSAGE-----
On Sat, 14 Dec 1996, Bob Tracy - TDS wrote:
> > A.N.Kuznetsov wrote: > > > > Interface routes are added automatically in 2.1.15, > > you need not add them manually. > > But if you want to override default behaviour, > > kernel will require complete route specification: > > address, mask, device. > > Confirmed. What is the proper mask for a "default" route? My > guess is that it is either all 0's or all 1's. In my opinion, > a netmask for a default route doesn't make a great deal of sense. > Certainly a netmask makes a great deal of sense for a route to a > specific network or host, but the idea of a default route is to > route that which cannot otherwise be routed. If the default route > netmask value doesn't matter, then the kernel shouldn't complain > when I fail to specify one :-).
random:~# netstat -rn Kernel routing table Destination Gateway Genmask Flags Metric Ref Use Iface 152.52.28.23 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 152.52.195.0 0.0.0.0 255.255.255.0 U 0 0 2 eth0 152.52.196.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 7 lo 0.0.0.0 152.52.28.23 0.0.0.0 UG 0 0 5 ppp0 random:~#
If you specify
random:~# route add default gw 152.52.28.23 ppp0
it become 0.0.0.0, as it should, but if you do
random:~# route add 0.0.0.0 gw 152.52.28.23 netmask 0.0.0.0 ppp0
it adds it as 255.255.255.255 (which isn't correct).
> Bob Tracy | "The gene pool could use a little chlorine." > AFIWC/AFCERT | -- Unknown > rct@merkin.csap.af.mil |
--Deviant PGP KeyID = E820F015 Fingerprint = 3D6AAB628E3DFAA9 F7D35736ABC56D39
The Macintosh is Xerox technology at its best.
-----BEGIN PGP SIGNATURE----- Version: 2.6.2
iQEVAwUBMrQ/0jCdEh3oIPAVAQG1Cgf+OfYVa2QPVh3h72W+1kPdcre0DGiiImLN n8WENC+HfBqMh6Gphrz7zsuDTyvJbtSDIH8MUzf5bMT7msE7WStZli2kuEvRWb74 u++3frQUWZPmpO0FO5eplNk2MCy8t6ty7KTKj7qCVbmbZGKDrhbOHZOpfx5uBb/N dsQ9r+E9lLODE/SK0eWj+azfsn3yXfoOw3bDWwFi48RixNY+UVMlhHf2gM7KMNoC STv0mYZs/juhc9gg2fVYSO3NRupC/NNPEisg6p9D35whD+kyJohhYmZJxTS7cR8O SB/NrF1wMA2r90B/HYFphZOZxlQzCsxpSrvpbm/Ypv99brLnhYmHrg== =IdyN -----END PGP SIGNATURE-----
| |