Find the answer to your Linux question:
Results 1 to 3 of 3
hi! i have same issue (question) about sysctl on fedora 13 and rhel 5.5 then i do cat /proc/sys/net/ipv4/ip_forward, i get value=1 but when i check /etc/sysctl.conf, net.ipv4.ip_forward = 0 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    28

    sysctl question

    hi!
    i have same issue (question) about sysctl on fedora 13 and rhel 5.5
    then i do
    cat /proc/sys/net/ipv4/ip_forward, i get value=1
    but when i check /etc/sysctl.conf, net.ipv4.ip_forward = 0

    shouldn't it be consistent?
    reboot doesn't resolve the problem

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    they should be consistent. Are you editing the file in /etc/sysctl.conf ?

    anything you do to /proc will not survive a reboot. It is not a real filesystem, it is a representation of kernel settings and information.

    if you want to turn on ip_forward permanently (across reboots,) edit /etc/sysctl.conf, if you want it temporarily, edit /proc/sys/net/ipv4/ip_forward
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    28
    this situation after i installed bothed system, and also after reboot.
    sysctl.conf should update /proc/sys, but it doesn't

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...