I need a same problem with my ubuntu configs
Can help me ?
Code:
root@srv00:~# sudo /etc/init.d/networking restart && sudo dhclient
[ ok ] Restarting networking (via systemctl): networking.service.
root@srv00:~# ping -c 2 8.8.8.8
connect: Network is unreachable
root@srv00:~# uname -a
Linux srv00 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@srv00:~# cat /etc/hosts
127.0.0.1 localhost
#10.0.0.8 localhost
127.0.1.1 srv00
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
root@srv00:~# cat /hosts
cat: /hosts: No such file or directory
root@srv00:~# cat /etc/hosts
127.0.0.1 localhost
#10.0.0.8 localhost
127.0.1.1 srv00
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
root@srv00:~# ifconfig -a
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:d2:de:b4:a8 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a00:27ff:fe85:ffbd prefixlen 64 scopeid 0x20<link>
ether 08:00:27:85:ff:bd txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 141 bytes 43718 (43.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0xd020
enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.125 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe47:71be prefixlen 64 scopeid 0x20<link>
inet6 2804:5500:0:8401:a00:27ff:fe47:71be prefixlen 64 scopeid 0x0<global>
ether 08:00:27:47:71:be txqueuelen 1000 (Ethernet)
RX packets 1557 bytes 196338 (196.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1244 bytes 192594 (192.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 base 0xd240
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12 bytes 720 (720.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 720 (720.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@srv00:~#
Bookmarks