How to enable eth1 get IP automatically when kernel startup?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable eth1 get IP automatically when kernel startup?

1,184 Views
liuyonggang
Contributor III

Environment: Yocto

Platform: Imx8qxp

OS: Linux

Version: 4.14.98

There are two Ethernets (eth0&eth1) on my board.I have forbidden busybox first.eth0 can gets IP automatically when kernel startup.But eth1 cann't gets IP automatically when kernel startup.secondly,I have masked "obj-$(CONFIG_IP_PNP) += ipconfig.o" . But eth0 still can gets IP automatically when kernel startup.

I can't find config IP corresponding code.Can someone tell me which file?

BRs

Johnny

Tags (1)
0 Kudos
4 Replies

1,062 Views
joanxie
NXP TechSupport
NXP TechSupport

maybe you can refer to the document as below:

https://community.nxp.com/docs/DOC-344765 

0 Kudos

1,062 Views
liuyonggang
Contributor III

Hi Xie,

   I can't open the link which you provide. Can you send the document to me?My E-mail:liuyg13530885230@163.com.

Tks!

BRs!

Johnny!

0 Kudos

1,062 Views
joanxie
NXP TechSupport
NXP TechSupport

this document is about that  RMII PHY is NXP TJA1101, it output 50MHz REF_CLK to i.MX8QXP. what's your design? you use your own board or just imx8qxp board with base board? how about your dual ethernet?

0 Kudos

1,062 Views
liuyonggang
Contributor III

Hi Xie,

   My board is ES1.The two RGMII PHY chips are Marvell_88Q2110。I have already find where can enable eth0&eth1 to get IP

automatically.It in systemd/systemd/50-wired.network file.The content of the file is as followings:

[Match]
Name=eth0

[Network]
DHCP=ipv4

and I modify "Name=eth0" to "Name=eth*" .It can be okay.

Thanks all the same.

BRs

Johnny

0 Kudos