Bug 15928

Summary: the routing table seems to mirror the arp cache
Product: Base System Reporter: kj <kj>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description kj 2000-01-06 00:40:01 UTC
Every computer, once a session is open (i.e. ssh to it)) it then put into the route table in the FreeBSD PC. Now if I wanted to make FreeBSD our router, and I have 2 class C subnets the routing table could grow up to about 500 lines, when maybe 7 lines would be just fine. If you delete a line and then start another session the route will reappear. It would slow down network traffice as it has to go through all those route lines, and if there wasn't that many PCs on the network (say 30) it is still _very_ annoying to see all these route lines in the table. Is gets very confusing and frustrating to read and troubleshoot routing problems when you should get a few screen fulls of route lines, when say the manual 7 you put in is fine -> perfect.

Fix: 

use Linux as they don't seem to have this "feature"

I don't mind so much if it is set as the default, but at least give an option to turn it off. I have asked in #freebsd on Efnet about this and "they" say it can't be turned off, I am just verifying it.

Thanks
How-To-Repeat: netstat -rn and see for yourself
Comment 1 jmb freebsd_committer freebsd_triage 2000-01-06 02:13:26 UTC
State Changed
From-To: open->closed



The ARP cache is stored in the route table since the Net/3 
release as detailed by Gary R Wright and W Richard Stevens 
in _TCP/IP_Illustrated_Volume_2_ page 675. 

This behavior is not a bug but rather a deliberate design  
choice.   At tthis time one can not exclude the ARP entries 
when displaying the routing table using "netstat -r".  


Comment 2 Garrett A. Wollman 2000-01-06 02:27:38 UTC
<<On Wed,  5 Jan 2000 16:30:10 -0800 (PST), kj@milinx.com said:

> I don't mind so much if it is set as the default, but at least give
> an option to turn it off. I have asked in #freebsd on Efnet about
> this and "they" say it can't be turned off, I am just verifying it.

There is no ``arp cache''.  That *is* the routing table.  If you don't
like it, too bad.

-GAWollman