From 2a2b22823cb6299a50d3f9a070943acb25f6eb10 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 26 Sep 2024 01:01:15 +0800 Subject: [PATCH] network: Fix the /etc/hosts line for local machine Since r10520-gcba2d4e6 the IP address of the local machine is assumed 192.168.1.2 (instead of 192.168.1.1) but the hosts line isn't updated. --- chapter09/network.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter09/network.xml b/chapter09/network.xml index a443ada2c..4c6caafc5 100644 --- a/chapter09/network.xml +++ b/chapter09/network.xml @@ -198,7 +198,7 @@ EOF x can be any number in the range 16-31. y can be any number in the range 0-255. - A valid private IP address could be 192.168.1.1. + A valid private IP address could be 192.168.1.2. If the computer is to be visible to the Internet, a valid FQDN can be the domain name itself, or a string resulted by concatenating a @@ -218,7 +218,7 @@ EOF 127.0.0.1 localhost.localdomain localhost 127.0.1.1 <FQDN> <HOSTNAME> -<192.168.1.1> <FQDN> <HOSTNAME> [alias1] [alias2 ...] +<192.168.1.2> <FQDN> <HOSTNAME> [alias1] [alias2 ...] ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters @@ -226,7 +226,7 @@ ff02::2 ip6-allrouters # End /etc/hosts EOF - The <192.168.1.1>, + The <192.168.1.2>, <FQDN>, and <HOSTNAME> values need to be changed for specific uses or requirements (if assigned an IP address by a