Comment 2 for bug 632896

Revision history for this message
Anders Kaseorg (andersk) wrote :

Certainly.

1. Original copy of /etc/hosts before starting network-manager:

"""
127.0.0.1 localhost
127.0.1.1 balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
"""

2. /etc/hosts after starting network-manager, but before connecting to a network:

"""
127.0.0.1 balanced-tree localhost.localdomain localhost
::1 balanced-tree localhost6.localdomain6 localhost6
127.0.1.1 balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
"""

3. /etc/hosts after connecting to a network:

"""
18.111.118.108 balanced-tree # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 balanced-tree localhost6.localdomain6 localhost6
127.0.1.1 balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
"""

4. /etc/hosts after disconnecting from the network:
(same as #3, where “18.111.118.108 balanced-tree” is now unreachable)

anders@balanced-tree:~$ ping `hostname`
connect: Network is unreachable

5. /etc/hosts after stopping network-manager:
(same as #3 and #4)