Discussion:
[lfs-support] No Network Connections: LFS 8.3
John Le Brasseur
2018-09-23 13:36:06 UTC
Permalink
Hi
I have now built LFS 8.3.
When in the chroot state 'evrything' seems to be 100% including network
connections.
When starting the system, everything still seems fine but there are no
network connections.
I am building on VirtualBox with Ubuntu as host for the builds.
I don't think I had any problems with network connections in 8.2 so I
should imagine I have done something wrong this time.
Any obvious places to check please.

Regards,

John
Pierre Labastie
2018-09-23 14:37:18 UTC
Permalink
Hi
I  have now built LFS 8.3.
When in the chroot state 'evrything' seems to be 100% including network
connections.
Expected, since it's your host connection.
When starting the system, everything still seems fine but there are no network
connections.
I am building on VirtualBox with Ubuntu as host for the builds.
I don't think I had any problems with network connections in 8.2 so I should
imagine I have done something wrong this time.
Any obvious places to check please.
That depends on the mode you have selected for networking under virtualbox. If
you are using "NAT", check that you have set up a static address of the form
10.0.2.x (DHCP would allocate 10.0.2.15, but I guess you have not yet built
dhcpcd). Personally, I use 10.0.2.9 for a static address. Also the DNS should
be set to 10.0.2.3, and gateway to 10.0.2.2.

Also, virtualbox emulates various NIC, check that the modules for the NIC you
have selected are included in the kernel. You can also look at /sys/class/net
(in booted guest), to check that the kernel has found a NIC.

HTH
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in
Pierre Labastie
2018-09-23 14:49:03 UTC
Permalink
Post by Pierre Labastie
Hi
I  have now built LFS 8.3.
When in the chroot state 'evrything' seems to be 100% including network
connections.
Expected, since it's your host connection.
Maybe not, sorry... The most likely is that you are running some distro under
virtualbox, so that it uses whatever NIC and mode virtualbox emulates.
Post by Pierre Labastie
[...]
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e
John Le Brasseur
2018-09-23 15:29:16 UTC
Permalink
Hi Pierre.
Thank you.
I have set VirtualBox adapter one to NAT, adapter two to bridged and
adapter three to internal. It has the same host I used for LFS 8.2.
All networks operate in chroot mode. None when restarting the LFS 8.3 build.
The LFS 8.2 build is on the same host so the settings are identical,
naturally, and works fine.
I don't think its anything to do with the settings in VirtualBox.
Post by Pierre Labastie
Post by John Le Brasseur
Hi
I have now built LFS 8.3.
When in the chroot state 'evrything' seems to be 100% including network
connections.
Expected, since it's your host connection.
Post by John Le Brasseur
When starting the system, everything still seems fine but there are no
network
Post by John Le Brasseur
connections.
I am building on VirtualBox with Ubuntu as host for the builds.
I don't think I had any problems with network connections in 8.2 so I
should
Post by John Le Brasseur
imagine I have done something wrong this time.
Any obvious places to check please.
That depends on the mode you have selected for networking under virtualbox. If
you are using "NAT", check that you have set up a static address of the form
10.0.2.x (DHCP would allocate 10.0.2.15, but I guess you have not yet built
dhcpcd). Personally, I use 10.0.2.9 for a static address. Also the DNS should
be set to 10.0.2.3, and gateway to 10.0.2.2.
Also, virtualbox emulates various NIC, check that the modules for the NIC you
have selected are included in the kernel. You can also look at
/sys/class/net
(in booted guest), to check that the kernel has found a NIC.
HTH
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
--
Kind regards,

John Le Brasseur
+27 73 157 5605
Pierre Labastie
2018-09-23 15:49:49 UTC
Permalink
Post by John Le Brasseur
Hi Pierre.
Thank you.
I have set VirtualBox adapter one to NAT, adapter two to bridged and adapter
three to internal. It has the same host I used for LFS 8.2.
All networks operate in chroot mode. None when restarting the LFS 8.3 build.
The LFS 8.2 build is on the same host so the settings are identical,
naturally, and works fine.
I don't think its anything to do with the settings in VirtualBox.
Rather a missing kernel module/option, or some udev/eudev setting.


Have you tested that you can see the NIC? Either "ip link list" or "ls -l
/sys/class/net". You should see the 3 adapters...

Are you using systemd (udev) or SYSV (eudev)? It the second, do you have
/etc/udev/rules.d/70-persistent-net.rules?

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http
John Le Brasseur
2018-09-23 16:34:21 UTC
Permalink
Hi Pierre.
I don't know if attachments are allowed on this forum but I have attached
three screenshots:
startup screen,
ls-l_sys_class_net and
ip_link_list

I am not sure of the answers to your other questions but i did not use
systemd and there is no /etc/udev/rules.d/70-persistent-net.rules file at
all. Only 55- ..., 81- ... and 83- ...
I checked in my LFS 8.2 build and found a /etc/udev/rules.d/70-persisten
t-net.rules file.
I typed it identically into my LFS 8.3 build, with no visible success.
Copy of net-rules also attached.
Iv'e just got this feeling it is the kernel build but do not know how to
tackle the problem itself.(or Iv'e forgotten)
Post by John Le Brasseur
Post by John Le Brasseur
Hi Pierre.
Thank you.
I have set VirtualBox adapter one to NAT, adapter two to bridged and
adapter
Post by John Le Brasseur
three to internal. It has the same host I used for LFS 8.2.
All networks operate in chroot mode. None when restarting the LFS 8.3
build.
Post by John Le Brasseur
The LFS 8.2 build is on the same host so the settings are identical,
naturally, and works fine.
I don't think its anything to do with the settings in VirtualBox.
Rather a missing kernel module/option, or some udev/eudev setting.
Have you tested that you can see the NIC? Either "ip link list" or "ls -l
/sys/class/net". You should see the 3 adapters...
Are you using systemd (udev) or SYSV (eudev)? It the second, do you have
/etc/udev/rules.d/70-persistent-net.rules?
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
--
Kind regards,

John Le Brasseur
+27 73 157 5605
Pierre Labastie
2018-09-23 17:24:47 UTC
Permalink
Post by John Le Brasseur
Hi Pierre.
I don't know if attachments are allowed on this forum but I have attached
startup screen,
ls-l_sys_class_net and
ip_link_list
I am not sure of the answers to your other questions but i did not use systemd
and there is no /etc/udev/rules.d/70-persistent-net.rules file at all. Only 
55- ..., 81- ... and 83- ...
I checked in my LFS 8.2 build and found
a /etc/udev/rules.d/70-persistent-net.rules file.
I typed it identically into my LFS 8.3 build, with no visible success.
Copy of net-rules also attached.
Iv'e just got this feeling it is the kernel build but do not know how to
tackle the problem itself.(or Iv'e forgotten)
This is not a kernel problem, since the NIC's are recognized (but see below).
They are given names of the form enp0sx, with x=3, 8, 10. But it seems that
your startup files bring them up, although only messages concerning IPV6 are
shown. Maybe IPV4 is not configured? Is IPV4 enabled in the kernel? If IPV4 is
configured, the only things that can be wrong are the IP addresses. To see the
IP addresses, the command is "ip addr list". The NIC connected to NAT should
have an address starting with 10.0.2.

Then to test what you have as a gateway (normally 10.0.2.2), the command is
"ip route list". It should return something like
"default via 10.0.2.2 blah"

Test that you can reach it with "ping 10.0.2.2" (I hope it works with
virtualbox, it does with qemu). Then verify that /etc/resolv.conf has
"nameserver 10.0.2.3"

That's all I can think of

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_styl
John Le Brasseur
2018-09-23 18:18:29 UTC
Permalink
Hi Pierre.
Many thanks.
Just one last question.
Where do I find the IPv4 setting in the make menuconfig menu system. Just
can't find where to set it.
Post by Pierre Labastie
Post by John Le Brasseur
Hi Pierre.
I don't know if attachments are allowed on this forum but I have attached
startup screen,
ls-l_sys_class_net and
ip_link_list
I am not sure of the answers to your other questions but i did not use
systemd
Post by John Le Brasseur
and there is no /etc/udev/rules.d/70-persistent-net.rules file at all.
Only
Post by John Le Brasseur
55- ..., 81- ... and 83- ...
I checked in my LFS 8.2 build and found
a /etc/udev/rules.d/70-persistent-net.rules file.
I typed it identically into my LFS 8.3 build, with no visible success.
Copy of net-rules also attached.
Iv'e just got this feeling it is the kernel build but do not know how to
tackle the problem itself.(or Iv'e forgotten)
This is not a kernel problem, since the NIC's are recognized (but see below).
They are given names of the form enp0sx, with x=3, 8, 10. But it seems that
your startup files bring them up, although only messages concerning IPV6 are
shown. Maybe IPV4 is not configured? Is IPV4 enabled in the kernel? If IPV4 is
configured, the only things that can be wrong are the IP addresses. To see the
IP addresses, the command is "ip addr list". The NIC connected to NAT should
have an address starting with 10.0.2.
Then to test what you have as a gateway (normally 10.0.2.2), the command is
"ip route list". It should return something like
"default via 10.0.2.2 blah"
Test that you can reach it with "ping 10.0.2.2" (I hope it works with
virtualbox, it does with qemu). Then verify that /etc/resolv.conf has
"nameserver 10.0.2.3"
That's all I can think of
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
John
Pierre Labastie
2018-09-23 19:06:35 UTC
Permalink
Post by John Le Brasseur
Hi Pierre.
Many thanks.
Just one last question.
Where do I find the IPv4 setting in the make menuconfig menu system. Just
can't find where to set it.
Actually, it is Networking support>Networking options>TCP/IP networking, but
if you have IPV6, then you have it (I should have checked that...)

Can you post the output of "ip addr list" and "ip route list"?

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikip
John Le Brasseur
2018-09-23 19:38:04 UTC
Permalink
Hi Pierre.
I have searched the internet to find a way to stop gmail top-posting.
Is there a client I should perhaps be using.?
Sorry if this is top-posting.
I apologise.

ip addr list: attached screenshot
ip route list: no response to the command.

There is just no ipv4 addresses at all.
Post by Pierre Labastie
Post by John Le Brasseur
Hi Pierre.
Many thanks.
Just one last question.
Where do I find the IPv4 setting in the make menuconfig menu system. Just
can't find where to set it.
Actually, it is Networking support>Networking options>TCP/IP networking, but
if you have IPV6, then you have it (I should have checked that...)
Can you post the output of "ip addr list" and "ip route list"?
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
--
Kind regards,

John Le Brasseur
+27 73 157 5605
Don Cross
2018-09-23 20:29:58 UTC
Permalink
Post by John Le Brasseur
Hi Pierre.
I have searched the internet to find a way to stop gmail top-posting.
Is there a client I should perhaps be using.?
Hi John,

Here is how you can avoid top-posting. On gmail, when you first hit Reply,
your cursor will be sitting there inside a seemingly empty box. Below the
cursor there will be an icon that looks like 3 dots. Click on that. It
will expand the previous conversation that you are replying to. Move the
cursor below that and put your reply there. You might have to hit
Backspace, then Enter, to get rid of the vertical line on the left margin
that indicates old text, so that it is clear where your response begins.
You can delete any parts of the previous conversation that are not needed
for the context of your response. I hope that helps.

Don
J Le Brasseur
2018-09-25 08:41:18 UTC
Permalink
Post by John Le Brasseur
Hi Pierre. I have searched the internet to find a way to stop gmail
top-posting. Is there a client I should perhaps be using.? Sorry if this is
no response to the command. There is just no ipv4 addresses at all.
I use thunderbird. Then, even with gmail accounts you can set the answer to
start after the message. Anyway... Looks like there is womething wrong at
startup. Can you run "ip addr add 10.0.2.9/24 dev enp0s3", then "ip addr
list" again? You may need to run "ip link set enp0s3 up" If it now shows an
ipv4 address, try "ip route add default via 10.0.2.2 dev enp0s3". test with
"ip route list" Then check /etc/resolv.conf, and try the net again. If it
works, you have to review your startup files. Do you use the LFS ones? What
does /etc/sysconfig/ifconfig.enp0s3 contain? Well, maybe first question,
does it exist? HTH Pierre
Hi Pierre
Look at that.
Thunderbird set up and working. :)))
ONBOOT="yes"
IFACE="enp0s3"
SERVICE="dhcpcd"
That's what is wrong, unless you have already built dhcpcd, of course.
SERVICE="ipv4-static"
Post by John Le Brasseur
DHCP_START="-b -q "
DHCP_STOP="-k "
IP=10.0.2.9 # for example; don't use 10.0.2.2 nor 10.0.2.3, nor 10.0.2.4
GATEWAY=10.0.2.2
PREFIX=24
BROADCAST=10.0.2.255
Post by John Le Brasseur
(same as my LFS 8.2 setup)
ip link set enp0s3 up
ip addr add 10.0.2.9/24 dev enp0s3
ip addr list (shows "enp0s3 ... inet 10.0.2.9/24 scope global enp0s3")
ip route add default via 10.0.2.2 dev enp0s3
ip route list
"default via 10.0.2.2 dev enp0s3
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.9"
ping google.com is successful.
Wow.
How did this happen?
I did not do this with 8.2.
Many, many many thanks Pierre.
    search
    nameserver 8.8.8.8
    nameserver 8.8.4.4
Hope I have answered your questions fully/properly.
Glad it worked. You can change the /etc/sysconfig/ifconfig.enp0s3 to use
ipv4-static, or build dhcpcd, if you prefer...
Pierre
Hi Pierre.
I have built dhcpcd which is why I was confused nothing was working.
However, I am very happy with what you helped with.
Thanks again.
--
John Le Brasseur
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-ma
Hazel Russman
2018-09-24 10:24:45 UTC
Permalink
On Sun, 23 Sep 2018 21:06:35 +0200
Post by Pierre Labastie
Post by John Le Brasseur
Hi Pierre.
Many thanks.
Just one last question.
Where do I find the IPv4 setting in the make menuconfig menu system. Just
can't find where to set it.
Actually, it is Networking support>Networking options>TCP/IP networking, but
if you have IPV6, then you have it (I should have checked that...)
Can you post the output of "ip addr list" and "ip route list"?
Pierre
--
If you ever want to find the menu location of a kernel configuration flag, just type "/" in menuconfig and enter a string. A partial match will work.
--
Hazel Russman
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.w
Michael Shell
2018-09-24 18:42:04 UTC
Permalink
On Mon, 24 Sep 2018 11:24:45 +0100
Post by Hazel Russman
If you ever want to find the menu location of a kernel configuration
flag, just type "/" in menuconfig and enter a string. A partial
match will work.
That's a good-to-know tip! Thanks Hazel! And I see that feature is
indeed listed in the key press summary at the top.

A different, perhaps usually less helpful approach, is to open the
.config file in a text editor and search that. Tis easy enough to
find the the relevant config strings, but it's often not as easy to
determine where they are actually located under the menu system.


Cheers,

Mike Shell
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.w
Bruce Dubbs
2018-09-24 18:45:01 UTC
Permalink
Post by Michael Shell
On Mon, 24 Sep 2018 11:24:45 +0100
Post by Hazel Russman
If you ever want to find the menu location of a kernel configuration
flag, just type "/" in menuconfig and enter a string. A partial
match will work.
That's a good-to-know tip! Thanks Hazel! And I see that feature is
indeed listed in the key press summary at the top.
A different, perhaps usually less helpful approach, is to open the
.config file in a text editor and search that. Tis easy enough to
find the the relevant config strings, but it's often not as easy to
determine where they are actually located under the menu system.
Sometimes, depending on the setting, not all possible entries are listed
in the .config file. If B depends on A and A has not been selected,
then B might not be listed at all.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

htt
Dave
2018-09-26 23:57:40 UTC
Permalink
Post by Michael Shell
On Mon, 24 Sep 2018 11:24:45 +0100
Post by Hazel Russman
If you ever want to find the menu location of a kernel configuration
flag, just type "/" in menuconfig and enter a string. A partial
match will work.
That's a good-to-know tip! Thanks Hazel! And I see that feature is
indeed listed in the key press summary at the top.
A different, perhaps usually less helpful approach, is to open the
.config file in a text editor and search that. Tis easy enough to
find the the relevant config strings, but it's often not as easy to
determine where they are actually located under the menu system.
Cheers,
Mike Shell
 a partial match...that's good to know
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://
Bruce Dubbs
2018-09-23 17:57:14 UTC
Permalink
Post by John Le Brasseur
Hi Pierre.
I don't know if attachments are allowed on this forum but I have
startup screen,
ls-l_sys_class_net and
ip_link_list
I am not sure of the answers to your other questions but i did not use
systemd and there is no /etc/udev/rules.d/70-persistent-net.rules file
at all. Only  55- ..., 81- ... and 83- ...
I checked in my LFS 8.2 build and found a
/etc/udev/rules.d/70-persistent-net.rules file.
I typed it identically into my LFS 8.3 build, with no visible success.
Copy of net-rules also attached.
Iv'e just got this feeling it is the kernel build but do not know how to
tackle the problem itself.(or Iv'e forgotten)
Please don't top post.

Did you notice the note in Section 7.4. Managing Devices

"In some cases such as when MAC addresses have been assigned to a
network card manually or in a virtual environment such as Qemu or Xen,
the network rules file may not have been generated because addresses are
not consistently assigned. In these cases, this method cannot be used."

That's why you don't have 70-persistent-net.rules.

I didn't see your answer to Pierre's comment about the files in
/sys/class/net/. The configuration file at the start of Section 7.5
will need to be modified to match the virtual environment's setup. The
file should probably be named something like ifconfig.enp0s3 )matcing
what the kernel thinks the NIC name is) and the contents changed to
match what Virtual Box provides.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.or
Loading...