Dear Expert:
In the i.mx6ull-evk,there is a question below:(static ip set not effect)
linux BSP version:L4.1.15
when use the mfgtool to program the SD card and boot from SD card
edit /etc/network/interfaces
auto eth1
iface eth1 inet static
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1
save this file and reboot.
the ip address is still DHCP,not static.
Could you tell me how to set static ip address?
thanks.
BRs
Tod
Hello Tod,
Have you tried the command on the following thread?
https://community.nxp.com/message/310691
It is possible that the bootloader has the DHCP enabled and it’s passing this setting to the kernel when loading it so it would also be useful to look at the bootloader ethernet parameters.
Regards,
Dear gusarambula:
thanks for your quickly response.
we want to use the static ip address in the kernel,not u-boot.
I try to add the ifconfig eth1 192. ..... in the rc.local file and it works.
But I want to know why it does not work by the below method.
edit /etc/network/interfaces
auto eth1
iface eth1 inet static
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1
in the BSP file(i.mx_linux_release_notes.pdf),there is a description about the kernel boot parameters below:
I set this in the uboot command line like this:
setenv ip=static_ip_address
But it still do not work in the kernel.
If you use the i.mx6ull-evk board to test,you can see it.
Furthermore,Could you tell me how to set the kernel boot parameters in the details?
Please give us support,thanks.
BRs
Tod
Dear Expert:
Is there any update about this issue?
Please give us great support,thanks a lot.
BRs
Tod