Ubuntu: Difference between revisions
→Networking in 17.10 onwards
Line 317:
==== Networking in 17.10 onwards ====
*Now you must use /etc/netplan/*.yaml to configure Ubuntu interfaces.
*The new interfaces configuration file now live in the /etc/netplan directory.
*A file called 01-netcfg.yaml is used to configured the first interface.
;Below is the default configuration for a interface using DHCP
<pre>
network:
version: 2
Line 338 ⟶ 337:
sudo netplan apply
;Configuring Static IP Addresses
To configure a static IP address using the new NetPlan tool, the file should look like this:
<pre>
network:
version: 2
Line 359 ⟶ 356:
Exit and save your changes by running the commands below
sudo netplan apply
===== Networking Service =====
Restarting Networking Service:
sudo systemctl restart networking
sudo systemctl restart networking.service
To verify status:
sudo systemctl status networking.service
===Software Centre===
|