Podcast
Questions and Answers
What is the purpose of files ending in .netdev in systemd-networkd?
What is the purpose of files ending in .netdev in systemd-networkd?
- To create virtual network devices, such as bridge or tun devices (correct)
- To setup network addresses and routes
- To set low-level configurations for network interfaces
- To detect and configure network devices automatically
Where can modifications be placed to override the original files in /lib/systemd/network?
Where can modifications be placed to override the original files in /lib/systemd/network?
- /lib/systemd/network
- /etc/systemd/network (correct)
- /lib/systemd/system
- /etc/systemd/system
What is the purpose of the [Match] section in a .network file?
What is the purpose of the [Match] section in a .network file?
- To detect and configure network devices automatically
- To setup network addresses and routes
- To define the network interface settings
- To select the network interface to which the configuration file refers (correct)
How can multiple network interfaces be matched with a single configuration file?
How can multiple network interfaces be matched with a single configuration file?
What is the purpose of files ending in .link in systemd-networkd?
What is the purpose of files ending in .link in systemd-networkd?
Flashcards are hidden until you start studying
Study Notes
Persistent Network Configuration
- In a TCP/IP network, each node must configure its network adapter to match the network requirements to enable communication.
- The system administrator must provide the basic configuration so the operating system can set up the appropriate network interface and identify itself and the network features at boot time.
NetworkManager
- Most Linux distributions use NetworkManager as a service daemon to configure and control the system's network connections.
- NetworkManager's purpose is to make network configuration simple and automatic.
- It arranges route changes, IP address fetching, and updates to the local list of DNS servers when using DHCP.
- It prioritizes wired connections over wireless connections by default.
- It tries to keep at least one connection active at all times, whenever possible.
Network Configuration Files
/etc/hostname
and/etc/hosts
are used for basic TCP/IP host configuration./etc/nsswitch.conf
and/etc/resolv.conf
are also used for network configuration./etc/systemd/network
files are used to override network settings.- Files ending in
.netdev
are used by systemd-networkd to create virtual network devices. - Files ending in
.link
set low-level configurations for network interfaces. - Files ending in
.network
set up network addresses and routes.
systemd-networkd
- systemd-networkd detects and configures network devices automatically as they appear.
- It ignores devices already configured by other means.
- There is little need to add configuration files in most situations.
- Configuration files can be used to select specific network interfaces using the
[Match]
section. - Matching rules can be based on network interface names, MAC addresses, or shell-style globs.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.