...

반응형

/etc/netplan에 01-netcfg.yaml 내용을 아래와 같이 수정합니다 

없을 경우 새로 만듭니다

 

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: no
      addresses:
        - 192.168.0.14/24
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

 

위의 예시는 192.168.0.14로 고정 ip를 설정한 예입니다 

그후 파일을 저장 후 아래 명령으로 적용합니다

sudo netplan apply
반응형