YJWANG

Netplan 고정 IP / 유동 IP config 샘플 본문

00.OS

Netplan 고정 IP / 유동 IP config 샘플

왕영주 2021. 6. 1. 09:22

ubuntu netplan sample configuation

network:
    version: 2
    renderer: networkd
    ethernets:
        ens2:
            dhcp4: true
        ens3:
            dhcp4: false
            addresses: [192.168.0.123/24]
            gateway4: 192.168.0.1
            nameservers:
                addresses: [8.8.8.8]

$ sudo netplan apply after config file

반응형