История изменений
Исправление Shushundr, (текущая версия) :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
# grep -vE "(^#)|($^)" /etc/nsswitch.conf
aliases: files
ethers: files
group: files [SUCCESS=merge] systemd
gshadow: files systemd
hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
netgroup: files
networks: files dns
passwd: files systemd
protocols: files
publickey: files
rpc: files
shadow: files [UNAVAIL=return] systemd
services: files
# uname -n
shushundr.linux.org.ru
Имя /etc/reslv.conf ты написал с ошибкой, да и неважен этот файл для этой задачи.
# cat /etc/resolv.conf
# Generated by resolvconf
...
Исправление Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
# grep -vE "(^#)|($^)" /etc/nsswitch.conf
aliases: files
ethers: files
group: files [SUCCESS=merge] systemd
gshadow: files systemd
hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
netgroup: files
networks: files dns
passwd: files systemd
protocols: files
publickey: files
rpc: files
shadow: files [UNAVAIL=return] systemd
services: files
# uname -n
shushundr.linux.org.ru
Имя /etc/reslv.conf ты написал с ошибкой, да и неважен этот файл для этой задачи.
# cat /etc/resolv.conf
# Generated by resolvconf
...
Исправление Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
# uname -n
shushundr.linux.org.ru
Имя /etc/reslv.conf ты написал с ошибкой, да и неважен этот файл для этой задачи.
# cat /etc/resolv.conf
# Generated by resolvconf
...
Исправление Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
# uname -n
shushundr.linux.org.ru
Исправление Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
...
# uname -n
shushundr.linux.org.ru
Исправление Shushundr, :
# ifconfig -a
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
...
# uname -n
shushundr.linux.org.ru
Исправление Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
...
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
...
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory
...
# uname -n
shushundr.linux.org.ru
Исходная версия Shushundr, :
# ifconfig -a
...
qemu0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.140 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::4ca0:7bff:faf4:d604 prefixlen 64 scopeid 0x20<link>
ether 41:b0:7c:f4:a8:04 txqueuelen 1000 (Ethernet)
RX packets 12026874 bytes 11169324884 (10.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7374974 bytes 1349644119 (1.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
...
# grep "192.168.45.140" /etc/hosts
192.168.45.140 shushundr2.linux.org.ru localhost
...
# cat /etc/nsswtich.conf
cat: /etc/nsswtich.conf: No such file or directory