On 09/09/2019 13:53, 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:
>
Looks like there is no driver for your card in the kernel, or it needs some
firmware which is not available.
First, is your network card an ethernet adapter or a wi-fi adapter?
In the first case, you should run:
lspci | grep '[Ee]thernet\|[nN]etwork'
and then lspci -v, and read the details about the device(s) found by the just
run command.
In the second case:
lspci | grep 'WLAN\|[nN]etwork'
then lspci -v, and read details about the device(s) found by the just run
command.
Then try to add the configuration switches for your network controller when
reunning make menuconfig in the kernel build tree. For an ethernet card:
Go to Device drivers --->
-*- Network device support --->
-*- Ethernet driver support --->
Look for your manufacturer and the model name you found with lspci (and check
the corresponding boxes of course).
For a wifi card:
[*] Networking support --->
-*- Wireless --->
[*/M] cfg80211 - wireless configuration API
and:
Device drivers
-*- Network device support
-*- Wireless LAN
Look for your manufacturer and the model name you found with lspci (and check
the corresponding boxes of course). But some wifi cards need proprietary
frimware, so that if you do not find the model in the list, it may mean you
have to go to the manufacturer site and download (and compile) the proper
driver.
Once you have this, compile and install the kernel, reboot, and see if the
network interface appears in the 'ip link list' result. Note that it is not
necessarily eth0, but sure it is neither lo nor sit0.
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