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.6.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