Changeset 37e35d2 for chapter09/networkd.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter09/networkd.xml
rd4fdde6 r37e35d2 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 <!-- 292 <para>Create the /etc/hosts file using the following command:</para> 293 293 294 294 <screen role="nodump"><userinput>cat > /etc/hosts << "EOF" 295 295 <literal># Begin /etc/hosts 296 296 297 127.0.0.1 localhost 297 127.0.0.1 localhost.localdomain localhost 298 298 127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> 299 299 ::1 localhost ip6-localhost ip6-loopback … … 303 303 # End /etc/hosts</literal> 304 304 EOF</userinput></screen> 305 306 <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents 307 the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved 308 specifically for the FQDN.</para> 309 310 <para>If using a static address, create the <filename>/etc/hosts</filename> 311 file by running this command instead:</para> 305 --> 306 307 <para>Create the <filename>/etc/hosts</filename> file using the following 308 command:</para> 312 309 313 310 <screen><userinput>cat > /etc/hosts << "EOF" 314 311 <literal># Begin /etc/hosts 315 312 316 127.0.0.1 localhost 313 127.0.0.1 localhost.localdomain localhost 317 314 127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> 318 315 <replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable> … … 329 326 changed for specific uses or requirements (if assigned an IP address by a 330 327 network/system administrator and the machine will be connected to an 331 existing network). The optional alias name(s) can be omitted.</para> 332 328 existing network). The optional alias name(s) can be omitted, and the 329 <replaceable><192.168.0.2</replaceable> line can be omitted if you 330 are using a connection configured with DHCP or IPv6 Autoconfiguration.</para> 331 332 <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents 333 the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved 334 specifically for the FQDN.</para> 335 333 336 </sect2> 334 337
Note:
See TracChangeset
for help on using the changeset viewer.