LFS9.0 Book==> Network Issue: Destination Host Unreachable on ping 8.8.8.8
by kc98 from LinuxQuestions.org on (#4YZTF)
Hi, i am trying to get my configuration right for the networking part in my LFS.
I have setup the lfs on a virtualbox. In Network Setting of lfs i have selected Bridge adapter and in that i have 2 options:
1. enp8s0
2. wlp7s0
ifconfig of my host(POP OS) is as follows:
(base) kc@kc-pop-os:~$ ifconfig
enp8s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e8:6a:64:44:12:69 txqueuelen 1000 (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
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 75438 bytes 58536923 (58.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 75438 bytes 58536923 (58.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.56.1 netmask 255.255.255.0 broadcast 192.168.56.255
inet6 fe80::800:27ff:fe00:0 prefixlen 64 scopeid 0x20<link>
ether 0a:00:27:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 253 bytes 40784 (40.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2402:d400:fa20:a58d:d9c:6025:989c:7e62 prefixlen 64 scopeid 0x0<global>
inet6 2402:d400:fa20:b1b9:fe32:f6b4:1161:1209 prefixlen 64 scopeid 0x0<global>
inet6 2402:d400:fa20:b1b9:d9c:6025:989c:7e62 prefixlen 64 scopeid 0x0<global>
inet6 fe80::72ec:41bc:921b:3dbc prefixlen 64 scopeid 0x20<link>
inet6 2402:d400:fa20:a58d:e925:8217:b76a:ab19 prefixlen 64 scopeid 0x0<global>
ether 28:3a:4d:36:b9:0b txqueuelen 1000 (Ethernet)
RX packets 551201 bytes 707612853 (707.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 358157 bytes 89356113 (89.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
LFS NOTES:
Network Interface --> enp0s3
I have setup the /etc/sysconfig/ifconfig.enp0s3
which looks like this:
ONBOOT=yes
IFACE=enp0s3
SERVICE=ipv4-static
IP=192.168.1.30
GATEWAY=192.168.1.15
PREFIX=24
BROADCAST=192.168.1.255
and my /etc/hosts is as follows:
127.0.0.1 localhost
127.0.1.1 <FQDN> <HOSTNAME>
192.168.1.15 SudoBeyondLFS
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
other necessary files are just as those on the LFS9.0 Book, except 70-persistent-net.rules which i have deleted.
Now when I change my setting from Bridge to Host-only Adapter --> vboxnet0:
i make the necessary changes to my files:
/etc/sysconfig/ifconfig.enp0s3
which looks like this:
ONBOOT=yes
IFACE=enp0s3
SERVICE=ipv4-static
IP=192.168.56.5
GATEWAY=192.168.56.2
PREFIX=24
BROADCAST=192.168.56.255
/etc/hosts is as follows:
127.0.0.1 localhost
127.0.1.1 <FQDN> <HOSTNAME>
192.168.56.2 SudoBeyondLFS
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
other necessary files are just as those on the LFS9.0 Book, except 70-persistent-net.rules which i have deleted.
Still i am facing the same network error which i get when i ping 8.8.8.8:
92 bytes from 192.168.56.5: Destination Host Unreachable
I have read most of the threads on this topic and still come up empty handed, I have no idea where is it that I am making a mistake.
Kindly help.


I have setup the lfs on a virtualbox. In Network Setting of lfs i have selected Bridge adapter and in that i have 2 options:
1. enp8s0
2. wlp7s0
ifconfig of my host(POP OS) is as follows:
(base) kc@kc-pop-os:~$ ifconfig
enp8s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e8:6a:64:44:12:69 txqueuelen 1000 (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
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 75438 bytes 58536923 (58.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 75438 bytes 58536923 (58.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.56.1 netmask 255.255.255.0 broadcast 192.168.56.255
inet6 fe80::800:27ff:fe00:0 prefixlen 64 scopeid 0x20<link>
ether 0a:00:27:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 253 bytes 40784 (40.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2402:d400:fa20:a58d:d9c:6025:989c:7e62 prefixlen 64 scopeid 0x0<global>
inet6 2402:d400:fa20:b1b9:fe32:f6b4:1161:1209 prefixlen 64 scopeid 0x0<global>
inet6 2402:d400:fa20:b1b9:d9c:6025:989c:7e62 prefixlen 64 scopeid 0x0<global>
inet6 fe80::72ec:41bc:921b:3dbc prefixlen 64 scopeid 0x20<link>
inet6 2402:d400:fa20:a58d:e925:8217:b76a:ab19 prefixlen 64 scopeid 0x0<global>
ether 28:3a:4d:36:b9:0b txqueuelen 1000 (Ethernet)
RX packets 551201 bytes 707612853 (707.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 358157 bytes 89356113 (89.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
LFS NOTES:
Network Interface --> enp0s3
I have setup the /etc/sysconfig/ifconfig.enp0s3
which looks like this:
ONBOOT=yes
IFACE=enp0s3
SERVICE=ipv4-static
IP=192.168.1.30
GATEWAY=192.168.1.15
PREFIX=24
BROADCAST=192.168.1.255
and my /etc/hosts is as follows:
127.0.0.1 localhost
127.0.1.1 <FQDN> <HOSTNAME>
192.168.1.15 SudoBeyondLFS
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
other necessary files are just as those on the LFS9.0 Book, except 70-persistent-net.rules which i have deleted.
Now when I change my setting from Bridge to Host-only Adapter --> vboxnet0:
i make the necessary changes to my files:
/etc/sysconfig/ifconfig.enp0s3
which looks like this:
ONBOOT=yes
IFACE=enp0s3
SERVICE=ipv4-static
IP=192.168.56.5
GATEWAY=192.168.56.2
PREFIX=24
BROADCAST=192.168.56.255
/etc/hosts is as follows:
127.0.0.1 localhost
127.0.1.1 <FQDN> <HOSTNAME>
192.168.56.2 SudoBeyondLFS
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
other necessary files are just as those on the LFS9.0 Book, except 70-persistent-net.rules which i have deleted.
Still i am facing the same network error which i get when i ping 8.8.8.8:
92 bytes from 192.168.56.5: Destination Host Unreachable
I have read most of the threads on this topic and still come up empty handed, I have no idea where is it that I am making a mistake.
Kindly help.