LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   keeping rwin & other settings after reboot (https://www.linuxquestions.org/questions/linux-newbie-8/keeping-rwin-and-other-settings-after-reboot-105505/)

lmix 10-18-2003 06:43 AM

keeping rwin & other settings after reboot
 
Hello everyone. After many tries, I can't seem to get redhat 9 to keep the rwin and other settings after reboot(s). I have also added the following lines to /etc/rc.d/rc.local file to no help:

echo "127776 255552 511104" > /proc/sys/net/ipv4/tcp_rmem
echo "127776 255552 511104" > /proc/sys/net/ipv4/tcp_wmem
echo 255552 > /proc/sys/net/core/rmem_default
echo 255552 > /proc/sys/net/core/wmem_default
echo 511104 > /proc/sys/net/core/rmem_max
echo 511104 > /proc/sys/net/core/wmem_max
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
echo 1 > /proc/sys/net/ipv4/tcp_sack
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 8 > /proc/sys/net/ipv4/tcp_adv_win_scale
echo 1 > /proc/sys/net/ipv4/tcp_rfc1337

From what I understand form a link on this site is that if you add some such settings/lines to the /etc/rc.d/rc.local file, the settings will be kept after reboot, and these lines are saved in the /etc/rc.d/rc.local file, but not the value in /proc/sys/net/core/rmem_default, for example. I have also tried to use quotation marks around values, i.e. "255552", to no avail. (By the way, when settings in place, surfing is very quick!!!). Although this question has been asked, the solution does not seem to work; but perhaps I am missing something. As I am new to linux (and this site), if anyone has any solution on how I can keep the values I want without linux reverting to it's defaults after reboot, please be as specific as you can.

best regards,

p.s. I wonder if cat command will overwrite these settings into place. Any thoughts?

unSpawn 10-22-2003 06:04 PM

Bringing up, or restarting the network, should execute /etc/sysctl.conf on RH as part of /etc/rc.d/init.d/network. Add your lines to that file.


All times are GMT -5. The time now is 05:26 PM.