Re: Assign IP address at boot time


Rudolf J Streif
 

Hi there,

On 3/9/21 1:27 PM, jchludzinski via lists.yoctoproject.org wrote:
Where do I assign a static IP address to my sole network interface?

That depends on whether or not you are using a network manager and if so which one.

You haven't told us much about your board and it's network interfaces and how you built your system.

I tried using the Linux boot parameters (in extlinux.conf):

LABEL Arria10 SOCDK SDMMC
    KERNEL ../zImage
    FDT ../socfpga_arria10_phead.dtb
    APPEND root=/dev/mmcblk0p2 rw rootwait earlyprintk console=ttyS0,115200n8 ip=192.168.0.101:255.255.255.0:eth0
 
Then I tried editing: /etc/network/interfaces
 
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
 
Both failed. Where do I go?

To start, do you have the driver required for your network interface? You can use ifconfig -a to see if your network interface is detected by the kernel. You should also look at the kernel log if the network interface is configured.

:rjs




-- 
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700

Join yocto@lists.yoctoproject.org to automatically receive all group messages.