This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.
11.2.7.3. 動的ホストの設定
以下のスニペットは、動的 IP アドレス、ゲートウェイアドレス、および DNS を使用するイーサネットインターフェイスを設定します。
...
interfaces:
- name: eth1
description: DHCP on eth1
type: ethernet
state: up
ipv4:
dhcp: true
enabled: true
...
...interfaces:-name: eth1
description: DHCP on eth1
type: ethernet
state: up
ipv4:dhcp:trueenabled:true...
Copy to ClipboardCopied!Toggle word wrapToggle overflow
以下のスニペットは、動的 IP アドレスを使用しますが、動的ゲートウェイアドレスまたは DNS を使用しないイーサネットインターフェイスを設定します。
...
interfaces:
- name: eth1
description: DHCP without gateway or DNS on eth1
type: ethernet
state: up
ipv4:
dhcp: true
auto-gateway: false
auto-dns: false
enabled: true
...
...interfaces:-name: eth1
description: DHCP without gateway or DNS on eth1
type: ethernet
state: up
ipv4:dhcp:trueauto-gateway:falseauto-dns:falseenabled:true...
Copy to ClipboardCopied!Toggle word wrapToggle overflow