If a valid connection between the phyBOARD-i.MX7 and a DHCP enabled network is made before boot-up then the phyBOARD-i.MX7 will automatically secure a connection and assign an ip address.
Gigabit Ethernet links are provided via ETH1 and ETH2 on the phyBOARD-i.MX7 development kit. This guide shows you how to connect and use these interfaces. You will need a CAT5e cable and a network switch connected to a DHCP enabled network to follow this guide.
- Connect your Ethernet cable between ETH1 on the development kit and an Ethernet switch connected to the network.
On the phyCORE-i.MX7 Linux console, enter the following command to bring up the Ethernet interface. ETH1 and ETH2 in the hardware are represented in sysfs as interfaces eth0 and eth1 respectively.
- Wait until the link is ready and an IP address has been assigned.
Test your connection by entering the following and verify that you are able to send and receive packets over your network connection:
Repeating the above steps with ETH1 would yield similar connection results.
To view the IP address assigned to your device, use the following command:
In the above example we can see that the assigned IP address is 192.267.3.339