From c5cd6cd889dc8d7856977594b6e7156c9b898872 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 2 Dec 2018 18:38:51 -0600 Subject: Admin: ch05: Fill in some networking stuff --- src/admin/5_networking.xml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/admin/5_networking.xml b/src/admin/5_networking.xml index 9eb4e71..509e360 100644 --- a/src/admin/5_networking.xml +++ b/src/admin/5_networking.xml @@ -1,14 +1,25 @@ Networking - In this chapter, we will discuss how to configure your Adélie Linux system for networking. Wired, wireless, and VPN connections using both static and dynamic IP addressing will be covered. In addition, advanced topics including interface bonding and KVM configuration will also be discussed. + In this chapter, we will discuss how to configure your Adélie Linux system for networking. Wired, wireless, and VPN connections using both static and dynamic IP addressing will be covered. In addition, advanced topics including interface bondage and KVM configuration will also be discussed.
Introduction - + The Adélie Linux system uses netifrc as its network configuration and management system. The netifrc system uses a declarative configuration syntax in a single file, /etc/conf.d/net, for ease of administration. All main system network configuration is declared in this file. Some additional configuration may be required for wireless or VPN connections; notably, wireless connections require WPA Supplicant to be configured using either wpa_gui (on computers that use X11), or in the /etc/wpa_supplicant/wpa_supplicant.conf file. + The default configuration for the Adélie Linux system uses the traditional Linux interface names (such as "eth0", "eth1", and "wlan0"). If you prefer the new "predictable" interface names (such as "enP2p36s15f0" or "wlp9s0"), refer to . +
+ A netfirc primer + The netifrc configuration file consists of INI-style configuration variables. For example, config_eth0="dhcp" sets the variable config_eth0 to the value dhcp. By default, all interfaces on the system that are enabled will attempt to retrieve a DHCP address, assuming dhcpcd is installed. + To enable a network interface, you must create a symbolic link to /etc/init.d/net.lo in /etc/init.d named net.IFACE where IFACE is the name of the interface. For example, for the interface named eth0, you would run ln -s /etc/init.d/net.lo /etc/init.d/net.eth0. Next, you need to add the service to the default runlevel. As noted in , you would run rc-update add net.IFACE default to enable the net.IFACE service. You may then start the service, assuming the interface has been configured properly in /etc/conf.d/net. + To disable a network interface, you must first stop it, if it is running. Next, remove it from the default runlevel (rc-update del net.IFACE default). Finally, remove the symbolic link in /etc/init.d. +
+
+ Identifying adaptors + Before we begin configuring the network, we will list the network adaptors available on your computer. This will ensure that the adaptor or adaptors were detected successfully by the kernel. To do this, ensure the iproute2 package is installed, and run the command ip link as root. +
Wired connections - + For the purposes of this handbook, a wired connection is a connection to a network that utilises Ethernet. While the Adélie Linux system supports ATM, CAN bus, IEEE 1394, and Token Ring networking, these connection types are exceedingly rare and out of the scope of this handbook.
Dynamic addressing @@ -61,6 +72,15 @@
Advanced topics +
+ Advanced: Using "predictable" network interface names + +
+
+ Advanced: Multiple interfaces + + Note that by default, all interfaces must be active before the rest of the system will consider the network to be active. This will cause network services to delay start-up until all interfaces are active. If this is not desired, you may set rc_depend_strict to NO in /etc/rc.conf. +
Advanced: Interface bondage -- cgit v1.2.3-70-g09d2