Difference between revisions of "Installation (Ubuntu)"

Jump to navigation Jump to search
587 bytes added ,  09:07, 9 September 2020
Added Change IP Address (v18 onwards)
(→‎Change IP Address: Changed section name)
(Added Change IP Address (v18 onwards))
Line 193: Line 193:


'''RTNETLINK answers: File exists''' - Note that you can't use the same default gateway twice, doing so will cause this error
'''RTNETLINK answers: File exists''' - Note that you can't use the same default gateway twice, doing so will cause this error
== Change IP Address (v18 onwards) ==
Ubuntu now uses [[Netplan|https://netplan.io/]], do not use the <code>/etc/network/interfaces</code> config file.
# Find the interface name (eg <code>ens2</code>)
#* <code> ip link </code>
# Edit the <code>/etc/netplan/01-netcfg.yaml<code> config file as show below
# Apply the changes
#* <code> netplan apply</code>
<pre>
network:
  version: 2
  renderer: networkd
  ethernets:
    ens2:
      dhcp4: no
      addresses:
        - 192.168.1.50/24
      gateway4: 192.168.1.1
      nameservers:
          addresses: [192.168.1.1,8.8.8.8]
</code>


== Update the OS ==  
== Update the OS ==  

Navigation menu