比如以net.ipv4.conf.eth0.send_redirects为例,是表示ARP应答是否被禁止。=1表示被禁用
配置:
sysctl -w net.ipv4.conf.eth0.send_redirects=1 #禁用ARP应答
sysctl -w net.ipv4.conf.eth0.send_redirects=0 #不禁用ARP应答
读取:sysctl net.ipv4.conf.eth0.send_redirects
读取不是-r是直接不加参数-w
另外:sysctl -a |grep ipv4
-a可以查看所有的系统参数