On 9/9/19 6:53 AM, Furkan İnciroğlu wrote:
Hi there,
I am following LFS and BLFS-Systemd document. I could not attach network
interface in my custom os so I do not have internet connection. I edited
network config files in /etc/systemd/ and I rebooted my machine but
networking was not successfull. I am sharing my config files. Do you
have any idea about how can I add network interface?
Best regards,
First config file: 10-eth0-static.network
[Match]
Name:eth0
[Network]
Address=192.168.10.154/24
Gateway=192.168.10.1
DNS=8.8.8.8
Second config file: 10-eth0.link
[Match]
MACAddress=08:00:27:3C:77:4C
[Link]
Name=eth0
After this files, I rebooted machine and I checked interface and I did
not see the eth0 interface. I just see loopback and sit0 interfaces. I
am also sharing ifconfig command output in attachment:
Do you have the right drivers compiled into the kernel? Do
$ ls /sys/class/net
eth0 lo sit0
You should have at least those. If you have something like enop1 or
similar, then you probably need to modify your configuration files. I
don't use systemd regularly, so others may have better advice.
I do note that the ip address above may not match your router. Can you
ping 192.168.10.154 or 192.168.10.1?
You may want to use dhcp at first to get things up.
-- 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.org/wiki/Posting_style