systemd Unit - Modifying IPv4 parameters
Bryn M. Reeves
bmr at redhat.com
Wed May 8 16:53:04 UTC 2013
On 05/08/2013 05:44 PM, T.C. Hollingsworth wrote:
> On Wed, May 8, 2013 at 9:33 AM, Tony Su <tonysu at su-networking.com> wrote:
>> In the "old days" edits were made directly to the appropriate file
>> /proc/net/ipv4/...
>
> Are you looking for /proc/sys/net/ip4? AFAICT /proc/net hasn't
> existed since everyone switched over to the 2.6 kernel (which happened
> in Fedora Core 2 in 2004).
/proc/net (network status & stats) is still there, it's just not the
same as /proc/sys/net (sysctl networking tunables), from man proc:
/proc/net
various net pseudo-files, all of which give the status of some
part of the networking layer. These files contain ASCII structures
and are, therefore, readable with cat(1). However, the standard
netstat(8) suite provides much cleaner access to these files.
/proc/sys
This directory (present since 1.3.57) contains a number of files
and subdirectories corresponding to kernel variables. These
variables can be read and sometimes modified using the /proc file
system, and the (deprecated) sysctl(2) system call.
/proc/sys/net
This directory contains networking stuff. Explanations for some of
the files under this directory can be found in tcp(7) and ip(7)
Persistent changes still go to /etc/sysctl.conf or you can now drop-in
files to /etc/sysctl.d with systemd.
Regards,
Bryn.
More information about the users
mailing list