Ubuntu: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
<tt>ifup</tt> is one of the utilities that can be used to configure the network interfaces. It reads its configuration from /etc/network/interfaces:
<tt>ifup</tt> is one of the utilities that can be used to configure the network interfaces. It reads its configuration from /etc/network/interfaces:


<syntaxhighlight lang='txt'>
<syntaxhighlight'>
# This file describes the network interfaces available on your system
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# and how to activate them. For more information, see interfaces(5).
Line 38: Line 38:
dns-servernames 1.1.1.1 8.8.8.8 8.8.4.4
dns-servernames 1.1.1.1 8.8.8.8 8.8.4.4
</syntaxhighlight>
</syntaxhighlight>


====NetworkManager====
====NetworkManager====

Revision as of 17:14, 19 April 2018

Internal

Info

Ubuntu Version

 lsb_release -a

Configuration

Network

Network Interfaces

ifup

ifup is one of the utilities that can be used to configure the network interfaces. It reads its configuration from /etc/network/interfaces:

<syntaxhighlight'>

  1. This file describes the network interfaces available on your system
  2. and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

  1. The loopback network interface

auto lo iface lo inet loopback

  1. The primary network interface

auto ens5

  1. iface ens5 inet dhcp

iface ens5 inet static

 address 192.168.1.10
 netmask 255.255.255.0
 gateway 192.168.1.1

dns-servernames 1.1.1.1 8.8.8.8 8.8.4.4 </syntaxhighlight>

NetworkManager

dhclient

DNS

DNS Resolver

DNS resolver is configured with resolvconf. Normally, resolvconf is invoked by network interface configuration programs, such as ifup, NetworkManager or dhclient. resolvconf can be run by administrators, but this s normally necessary.