Ubuntu: Difference between revisions
Content added Content deleted
Line 317: | Line 317: | ||
==== Networking in 17.10 onwards ==== |
==== Networking in 17.10 onwards ==== |
||
*NetPlan replaces the static interfaces (/etc/network/interfaces) file. |
|||
Now you must use /etc/netplan/*.yaml to configure Ubuntu interfaces. |
*Now you must use /etc/netplan/*.yaml to configure Ubuntu interfaces. |
||
The new interfaces configuration file now live in the /etc/netplan directory. |
*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. |
*A file called 01-netcfg.yaml is used to configured the first interface. |
||
Below is the default configuration for a interface using DHCP |
;Below is the default configuration for a interface using DHCP: |
||
<pre> |
<pre> |
||
# This file describes the network interfaces available on your system |
|||
# For more information, see netplan(5). |
|||
network: |
network: |
||
version: 2 |
version: 2 |
||
Line 338: | Line 337: | ||
sudo netplan apply |
sudo netplan apply |
||
Configuring Static IP Addresses |
;Configuring Static IP Addresses |
||
To configure a static IP address using the new NetPlan tool, the file should look like this: |
To configure a static IP address using the new NetPlan tool, the file should look like this: |
||
<pre> |
<pre> |
||
# This file describes the network interfaces available on your system |
|||
# For more information, see netplan(5). |
|||
network: |
network: |
||
version: 2 |
version: 2 |
||
Line 359: | Line 356: | ||
Exit and save your changes by running the commands below |
Exit and save your changes by running the commands below |
||
sudo netplan apply |
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=== |
===Software Centre=== |