Introduction to networking¶
Networks consist of two or more devices which are connected by either physical cabling or wireless links for the purpose of sharing information. Devices can be computer systems, printers, and related equipment.
In this overview, we’ll take a look at some of the key principles involved in networks, and some of the most popular tools available to help you manage your networks.
Networking key concepts¶
If you’re new to networking, our explanatory Networking key concepts section provides an overview of some important concepts. It includes detailed discussion of the popular network protocols: TCP/IP; IP routing; TCP and UDP; and ICMP.
Network configuration with Netplan¶
Ubuntu uses Netplan to configure networks. Netplan is a high-level, distribution-agnostic tool that uses a YAML configuration file to define your network setup. Read more about Netplan.
If you are a server administrator, check out our explanatory guide on configuring networks”.
Network tools and services¶
DHCP¶
The Dynamic Host Configuration Protocol (DHCP) enables host computers to be automatically assigned settings from a server. To learn more about DHCP and how configuration works, we have an explanatory guide.
There are two DHCP servers available on Ubuntu.
isc-kea (available from 23.04 onwards)
isc-dhcp-server (no longer supported by vendor)
Learn how to install isc-kea or install and configure isc-dhcp-server.
Time synchronization¶
Network Time Protocol (NTP) synchronizes time between all devices on a network to within a few milliseconds of Coordinated Universal Time (UTC). Learn more about time synchronization.
Time is primarily synchronized in Ubuntu by timedatectl
and timesyncd
. Both utilities are available by default as part of systemd
. To find out how to configure this service, read our how-to guide.
If you want to set up a server to provide NTP information, we suggest chrony
. Learn how to serve NTP using chrony with this guide.
The DPDK library¶
The Data Plane Development Kit (DPDK) is a set of libraries that improve network performance. Learn more about DPDK and its use in Ubuntu.
One popular piece of software that uses DPDK is Open vSwitch (OVS). It functions as a virtual switch in virtual machine (VM) environments, providing connectivity between VMs. OVS can run inside a VM or at the hypervisor level. Check out our guide to find out how to use DPDK with Open vSwitch.
Other networking functionality¶
Samba¶
If you need to network Ubuntu and Microsoft devices together, use Samba. To get started, check out our introduction to Samba.