Tuesday, October 23, 2018

Setting IP ubunut 18.04 server

sudo nano /etc/netplan/50-cloud-init.yaml

This return can be made to look like this:

network:
    ethernets:
        eth0:
            addresses: [10.1.100.55/24]
            gateway: 10.1.100.1
            nameservers:
              addresses: [8.8.8.8,8.8.4.4]
            dhcp4: false
    version: 2

Exit and save your changes by running the commands below

sudo netplan apply

No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.