Network障害の切り分けと保存設定4 / 5

保存設定の管理者

ip/ifconfig/route等のruntime変更は再起動で消えたり、managerが上書きしたりする。ifupdownなら/etc/network/interfacesや/etc/network/interfaces.d/、従来のRed Hat系なら/etc/sysconfig/network-scripts/ifcfg-*、NetworkManagerならconnection profile等を使う。配布元や版で廃止された方式を、全systemの唯一の保存先とはしない。

auto eth0
iface eth0 inet static
    address 192.0.2.10/24
    gateway 192.0.2.1

上記は対応するifupdownの保存例である。設定を担当するserviceなどを表示する指定である。

nmcli connection show
systemctl status NetworkManager

同一interfaceへ別managerの矛盾する設定を重ねない。SysV initのscriptやsystemd unitの起動順、/var/log/syslog・/var/log/messages・journalの失敗を対応させる。

学習パスへ
参考資料