참고: https://help.ubuntu.com/lts/serverguide/network-configuration.html
OS: 18.04.03 LTS
Kernel: 4.15.0-58-generic
vi /etc/netplan/50-cloud-init.yaml
Default상태
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s5:
dhcp4: true
version: 2
설정한 상태
[DHCP구성시]
network:
ethernets:
enp0s5:
dhcp4: true <-DHCP사용 여부
version: 2
[Static 구성시]
network:
ethernets:
enp0s5:
dhcp4: no <-DHCP사용 여부
addresses: [10.211.55.71/24] <-IP설정
gateway4: 10.211.55.1 <-Gateway설정
nameservers: <-DNS설정 명시
addresses: [168.126.63.1,8.8.8.8] <-DNS설정
version: 2
netplan apply
'Linux > Ubuntu' 카테고리의 다른 글
Ubuntu 16.04 - Timeshift 삽질기 (0) | 2019.07.18 |
---|---|
Ubuntu 16.04 - `apt-get update` 명령어 수행시 오류 [해결완료] (0) | 2019.07.18 |