<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change a kernel parameter in linux? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802564#M79063</link>
    <description>&lt;BR /&gt;Check out Documentation/filesystems/proc.txt in the kernel source tree.  There is a section on the ip_forward parameter.</description>
    <pubDate>Mon, 09 Sep 2002 18:39:03 GMT</pubDate>
    <dc:creator>Craig Kelley</dc:creator>
    <dc:date>2002-09-09T18:39:03Z</dc:date>
    <item>
      <title>How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802563#M79062</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;  I need to know how to change a kernel parameter in linux and if is possible to make it online. The parameter I want to change is ip_forwarding.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 09 Sep 2002 16:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802563#M79062</guid>
      <dc:creator>oiram</dc:creator>
      <dc:date>2002-09-09T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802564#M79063</link>
      <description>&lt;BR /&gt;Check out Documentation/filesystems/proc.txt in the kernel source tree.  There is a section on the ip_forward parameter.</description>
      <pubDate>Mon, 09 Sep 2002 18:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802564#M79063</guid>
      <dc:creator>Craig Kelley</dc:creator>
      <dc:date>2002-09-09T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802565#M79064</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;With Linux, certain kernel parameters can be changed "on-the-fly" using /proc subsystem features.&lt;BR /&gt;&lt;BR /&gt;Here is an example :&lt;BR /&gt;&lt;BR /&gt;echo "1" &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;echo "134217728" &amp;gt;/proc/sys/kernel/shmmax&lt;BR /&gt;&lt;BR /&gt;Of course you can put these lines in /etc/rc.local to have it done at system bootup.&lt;BR /&gt;&lt;BR /&gt;On a RedHat system, this is already done for you. Just edit /etc/sysctl.conf file as follows :&lt;BR /&gt;&lt;BR /&gt;net.ipv4.ip_forward = 0&lt;BR /&gt;kernel.shmmax = 134217728&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo</description>
      <pubDate>Mon, 09 Sep 2002 19:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802565#M79064</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-09-09T19:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802566#M79065</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;   First of all thanks for your help, I have found the commnad sysctl that seems the right way to change the value of the kernel parameters:&lt;BR /&gt;&lt;BR /&gt;[root@cache1]# sysctl -w net.ipv4.ip_forward=0&lt;BR /&gt;net.ipv4.ip_forward = 0&lt;BR /&gt;&lt;BR /&gt;    I have now another problem is that the value of the parameter was 1 although in the file sysctl.conf it was 0:&lt;BR /&gt;&lt;BR /&gt;[root@cache1]# more /etc/sysctl.conf&lt;BR /&gt;# Disables packet forwarding&lt;BR /&gt;net.ipv4.ip_forward = 0&lt;BR /&gt;# Enables source route verification&lt;BR /&gt;net.ipv4.conf.all.rp_filter = 1&lt;BR /&gt;# Disables automatic defragmentation (needed for masquerading, LVS)&lt;BR /&gt;net.ipv4.ip_always_defrag = 0&lt;BR /&gt;# Disables the magic-sysrq key&lt;BR /&gt;kernel.sysrq = 0&lt;BR /&gt;&lt;BR /&gt;   Any idea?&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 10 Sep 2002 06:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802566#M79065</guid>
      <dc:creator>oiram</dc:creator>
      <dc:date>2002-09-10T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802567#M79066</link>
      <description>It looks like you're setting things up correctly.  Did you reboot after editing your sysctl.conf file (or run 'sysctl -p')?  I do remember having one system, it was Red Hat 7.1 I believe, that refused to obey the 'net.ipv4.ip_forward' line in the sysctl.conf file.  I spent quite a while trying to figure it out, and I got nowhere.  I ended up manually putting 'sysctl -w net.ipv4.ip_forward=0/1' in my /etc/rc.local file.  I was trying to turn ON the forwarding, so it wasn't a big issue for me.  However, for you, there will be a couple of seconds/minutes of forwarding between rc.sysinit and rc.local, when your other services are starting.  Just something to keep in mind.  Let us know if you figure out why it's not working.  Best of luck to you.  :-)</description>
      <pubDate>Tue, 10 Sep 2002 12:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802567#M79066</guid>
      <dc:creator>Christopher C. Weis</dc:creator>
      <dc:date>2002-09-10T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a kernel parameter in linux?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802568#M79067</link>
      <description>Try "grep -rli ip_forward /etc/rc.d/init.d"&lt;BR /&gt;&lt;BR /&gt;You may find the shell script that forces the ip_forward parameter.&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Sep 2002 21:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-a-kernel-parameter-in-linux/m-p/2802568#M79067</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-09-10T21:07:53Z</dc:date>
    </item>
  </channel>
</rss>

