Red Hat Training
A Red Hat training course is available for RHEL 8
16.3. nmstatectl を使用して全トラフィックを受け入れるようにネットワークデバイスを永続的に設定する手順
nmstatectl
ユーティリティーを使用して、MAC アドレスに関係なくすべてのトラフィックを受け入れるようにネットワークデバイスを永続的に設定できます。
前提条件
-
nmstate
パッケージがインストールされている。 -
デバイスの設定に使用した
enp1s0.yml
ファイルが利用できます。
手順
enp1s0
接続の既存のenp1s0.yml
ファイルを編集し、以下の内容を追加します。--- interfaces: - name: enp1s0 type: ethernet state: up accept -all-mac-address: true
ネットワーク設定を適用します。
# nmstatectl apply ~/enp1s0.yml
検証手順
802-3-ethernet.accept-all-mac-addresses
モードが有効になっていることを確認します。# nmstatectl show enp1s0 interfaces: - name: enp1s0 type: ethernet state: up accept-all-mac-addresses: true ...
この
802-3-ethernet.accept-all-mac-addresses: true
は、モードが有効であることを示しています。
関連情報
-
nmstatectl(8)
の man ページ -
/usr/share/doc/nmstate/examples/
directory