X

How To Configure Static IP address On Ubuntu 18.04

New release Ubuntu 18.04 Bionic Beaver. So I want to configure static IP address on Ubuntu 18.04.  If your network dhcp server doesn’t enable. So static ip address configure needed.

Check Web Site URL From Zabbix Server
How To Install OsTicket On Ubuntu 16.04

Step #01: At first netplan generate command run on terminal.

root@technologyrsslocal:~# netplan generate

Then open netplan config file.

root@technologyrsslocal:~# vi /etc/netplan/50-cloud-init.yaml

Insert all config like as below.

network:
 ethernets:
 eth0:
  addresses: [ ]
  dhcp4: false
  optional: true
 eth1:
  addresses: [10.66.110.20/16]
  gateway4: 10.66.10.1
  nameservers:
   addresses: [8.8.8.8,8.8.4.4]
  dhcp4: false
  optional: true
 version: 2

Or, try below details

network:
    ethernets:
        eth1:
            addresses:
            - 10.66.110.20/16
            dhcp4: false
            gateway4: 10.66.10.1
            nameservers:
                addresses:
                - 8.8.8.8
                - 8.8.4.4
                search:
                - workgroup
    version: 2

Step #02: Now run netplan apply command.

root@technologyrsslocal:~# netplan apply

That’s fine and using static IP configure. Also see my YouTube channel for more details.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment