Changeset 9e7475a for chapter09/networkd.xml
- Timestamp:
- 06/12/2020 09:04:48 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 4234aea6
- Parents:
- a3d0817
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter09/networkd.xml
ra3d0817 r9e7475a 49 49 <para> 50 50 Udev normally assigns network card interface names based 51 on system physicalcharacteristics such as enp2s1. If you are51 on physical system characteristics such as enp2s1. If you are 52 52 not sure what your interface name is, you can always run 53 53 <command>ip link</command> after you have booted your system. … … 77 77 Create a manual naming scheme, for example by naming the 78 78 interfaces something like "internet0", "dmz0", or "lan0". 79 For that, create .link 80 files in /etc/systemd/network/, that choose an explicit name or a 81 better naming scheme for one, some, or all of your interfaces. 82 For example: 79 To do that, create .link files in /etc/systemd/network/ that 80 select an explicit name or a better naming scheme for your 81 network interfaces. For example: 83 82 </para> 84 83 … … 171 170 <note><para>If using another means to configure your network 172 171 interfaces (ex: ppp, network-manager, etc.), or if using any type of 173 local resolver (ex: bind, dnsmasq, etc.), or any other software that174 generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf), the175 <command>systemd-resolved</command> service should not be172 local resolver (ex: bind, dnsmasq, unbound, etc.), or any other software 173 that generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf), 174 the <command>systemd-resolved</command> service should not be 176 175 used.</para></note> 177 176 … … 207 206 <para>Replace 208 207 <replaceable><IP address of the nameserver></replaceable> 209 with the IP address of the DNS most appropriate for the setup. There will 210 often be more than one entry (requirements demand secondary servers for 211 fallback capability). If you only need or want one DNS server, remove the 212 second <emphasis>nameserver</emphasis> line from the file. The IP address 213 may also be a router on the local network.</para> 208 with the IP address of the DNS server most appropriate for your setup. 209 There will often be more than one entry (requirements demand secondary 210 servers for fallback capability). If you only need or want one DNS server, 211 remove the second <emphasis>nameserver</emphasis> line from the file. 212 The IP address may also be a router on the local network. Another option 213 is to use the Google Public DNS service using the IP addresses below as 214 nameservers.</para> 214 215 215 216 <note><para>The Google Public IPv4 DNS addresses are … … 263 264 264 265 <para>Decide on a fully-qualified domain name (FQDN), and possible aliases 265 for use in the <filename>/etc/hosts</filename> file. If using static 266 for use in the <filename>/etc/hosts</filename> file. If using static IP 266 267 addresses, you'll also need to decide on an IP address. The syntax 267 268 for a hosts file entry is:</para> … … 286 287 287 288 <para>Even if not using a network card, a valid FQDN is still required. 288 This is necessary for certain programs to operate correctly.</para> 289 290 <para>If using DHCP, DHCPv6, IPv6 Autoconfiguration, or if a network card 291 is not going to be configured, create the <filename>/etc/hosts</filename> 292 file by running the following command:</para> 289 This is necessary for certain programs, such as MTAs, to operate properly.</para> 290 291 <para>Create the /etc/hosts file using the following command:</para> 293 292 294 293 <screen role="nodump"><userinput>cat > /etc/hosts << "EOF" … … 308 307 specifically for the FQDN.</para> 309 308 309 <!-- 310 310 <para>If using a static address, create the <filename>/etc/hosts</filename> 311 311 file by running this command instead:</para> … … 314 314 <literal># Begin /etc/hosts 315 315 316 127.0.0.1 localhost 316 127.0.0.1 localhost.localdomain localhost 317 317 127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> 318 318 <replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable> … … 330 330 network/system administrator and the machine will be connected to an 331 331 existing network). The optional alias name(s) can be omitted.</para> 332 332 --> 333 333 </sect2> 334 334
Note:
See TracChangeset
for help on using the changeset viewer.