[4447] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Detecting IP forwarding

daemon@ATHENA.MIT.EDU (Tony Nugent)
Mon Sep 16 23:55:05 1996

Date: 	Fri, 13 Sep 1996 17:29:15 +1000
To: assis@npd.uel.br
Cc: linux-net@vger.rutgers.edu
From: Tony Nugent <tony@trishul.sci.gu.edu.au>

Marcos Assis Silva <assis@npd.uel.br> wrote:

> On Thu, 12 Sep 1996, Jon Lewis wrote:
> |o| On Tue, 10 Sep 1996, Marcos Assis Silva wrote:
> |o| > On Tue, 10 Sep 1996, Ben Elliston wrote:
> |o| > |o| Can anyone tell me if there's an easy way of detecting if a kernel has
> |o| > |o| been compiled to do IP forwarding?
> |o| > 
> |o| >         Hmmmm  ... What about looking into /proc/net? If there's a ip-forward
> |o| > in there  the  chances that the kernel supports it are very high. Am I wrong?
> |o| > (I'm not 100% sure about this, just 99,99%). Best regards ...
> |o| 
> |o| Nope...I have boxes I better have compiled without ip_forwarding, and they
> |o| have an ip_forward that looks just like the one on a box that does
> |o| forward.
>         Well,  I hadn't actually finished my sentence which should read: just
> 99,99% of chances that I'm WRONG :-))) I'm not a Linux (or even Unix expert).
> Sorry for  the  misleading  tip  and thank you Jon for your feedback. But the
> question remains unanswered. Anyone else, please? Bye ... :-(((

Actually, you were close.  Alan Cox answered this:

cat /proc/net/snmp

(snmp = Simple Network Management Protocol).

I'm not sure if there are any good tools that make some sense of
the all the information that this "file" gives you.

Cheers
Tony

home help back first fref pref prev next nref lref last post