Home » Uncategorized » Ubuntu18.04LTS

Ubuntu18.04LTS

vi /etc/netplan/50-cloud-init.yaml

 

network:
ethernets:
ens3:
dhcp4: no
addresses: [103.23.244.36/27]
gateway4: 103.23.244.33
nameservers:
addresses: [8.8.8.8, 8.8.7.7]
dhcp6: no
version: 2

 


network:
ethernets:
eth0:
addresses:
– 192.168.3.218/24
dhcp4: false
gateway4: 192.168.30.193
nameservers:
addresses:
– 192.168.7.2
search: []
version: 2
~