
systemdのすべてのインタフェースパラメータを変更するには?
たとえば、
sysctl -w "net.ipv4.conf.eth0.rp_filter=0"
sysctl -w "net.ipv4.conf.eth1.rp_filter=0"
どのインターフェイスに対してどのように変更できますか?
答え1
試しall
てみてくださいdefault
:
# sysctl -w "net.ipv4.conf.all.rp_filter=0"
# sysctl -w "net.ipv4.conf.default.rp_filter=0"
これはカーネル文書:
conf/default/*: Change the interface-specific default settings.
conf/all/*: Change all the interface-specific settings.
ただし、新しい値を入力してもall
インターフェイスから読み取られた値は変更されず、内部でのみ計算され使用されます。これを見てEメール詳細については。