LoginSignup
0
0

More than 3 years have passed since last update.

Fedora core os のfccファイルにbondingの設定を書く

Posted at

fcc yamlコード

Fedora core os用の設定ファイルにbondingの設定を書き、固定IPにするメモです。
ここでは、モードはbalance-xorにしていますが、ほかの設定についてはこちらを参照のこと。

variant: fcos
version: 1.0.0
storage:
  files:
    - path: /etc/NetworkManager/system-connections/bond-slave-eth0.nmconnection
      mode: 0600
      overwrite: true
      contents:
        inline: |
          [connection]
          id=bond-slave-eth0
          type=ethernet
          interface-name=eth0
          master=bond0
          slave-type=bond

    - path: /etc/NetworkManager/system-connections/bond-slave-eth1.nmconnection
      mode: 0600
      overwrite: true
      contents:
        inline: |
          [connection]
          id=bond-slave-eth1
          type=ethernet
          interface-name=eth1
          master=bond0
          slave-type=bond

    - path: /etc/NetworkManager/system-connections/bond-bond0.nmconnection
      mode: 0600
      overwrite: true
      contents:
        inline: |
          [connection]
          type=bond
          interface-name=bond0

          [bond]
          mode=balance-xor

          [ipv4]
          method=manual
          addresses=192.168.1.220/24
          gateway=192.168.1.1
          dns=192.168.1.1
          dns-search=

バグ

バージョン31.20200310.3.0には初回起動時に、固定IP設定が反映されないバグがありますが、bondingの際は、片方のNICがslaveに編入されないという形で発生します。もう一度rebootすればOK。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0