Ubuntu: Difference between revisions

166 bytes removed ,  6 years ago
Line 317:
 
==== Networking in 17.10 onwards ====
This new tool*NetPlan replaces the static interfaces (/etc/network/interfaces) file that had previously been used to configure Ubuntu network interfaces.
*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>
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
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: IPv4 address (192.168.1.2), Gateway (192.168.1.1), DNS Servers (8.8.8.8,8.8.4.4)
<pre>
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
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===