Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
stawidy
V2EX  ›  Linux

openSUSE 42.1 设置 net.ipv4.ip_forward=1 重启后无效

  •  
  •   stawidy · Oct 3, 2016 · 4013 views
    This topic created in 3537 days ago, the information mentioned may be changed or developed.
    把 net.ipv4.ip_forward = 1 写进了 /etc/sysctl.conf ,执行 sysctl -p 也生效了,但一重启又变回 0 ,甚是奇怪。有没有哪位大佬可以指点一二?
    5 replies    2017-01-11 15:13:51 +08:00
    wevsty
        1
    wevsty  
       Oct 3, 2016
    虚拟机? VPS ?还是真机?
    OpenVZ 的 VPS 必须得在供应商面板上修改,否则就是重启自己变回去的
    stawidy
        2
    stawidy  
    OP
       Oct 3, 2016 via Android
    真机…
    stawidy
        3
    stawidy  
    OP
       Oct 3, 2016 via Android
    另外我在 openSUSE Tumbleweed 上测试时一切正常,怀疑是不是 systemd-sysctl 不能正确地在启动时写入配置,我手动重启了一下这个服务之后就写进去了。
    stawidy
        4
    stawidy  
    OP
       Oct 3, 2016 via Android
    stawidy
        5
    stawidy  
    OP
       Jan 11, 2017
    回来补充下原因, yast 里面有相关的选项,开机的时候把配置给覆盖了,只能在 yast 里面修改。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5372 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 08:45 · PVG 16:45 · LAX 01:45 · JFK 04:45
    ♥ Do have faith in what you're doing.