The second and subsequent interfaces are configured in the same way or configured using a DHCP server. dns-nameservers 8.8.8.8 - specify DNS servers.address 10.10.2.6 -actually, the IPv4 address for this interface.iface enp0s3 inet static - reports on static configuration.auto enp0s3 - automatic launch of a specific interface.Let's move on to the settings.Ī server receiving IP from a DHCP server is not a good solution. In this case, there are 2 network interfaces without IP addresses (for now). First, we get a list of available interfaces: More setup examples are on the official website. We activate the current settings with the command:
Several addresses are indicated in square brackets “”, separated by commas.
The configuration file is written in YAML. First, look at the content of the directory /etc/netplan. If you want to go back to ifupdown configure via command: Although there exists, familiar to all, the configuration file /etc/network/interfaces, it says:Ĭloud Servers from €4 / mo Intel Xeon Gold 6254 3.1 GHz CPU, SLA 99,9%, 100 Mbps channel TryĬonfiguration via ifupdown has been replaced by netplan.
How to configure the network interface in Ubuntu 20.04: Configuring the network interface in Ubuntu 18.04