@artvvb
After much experimentation my lwip_echo_server routine is now operational. I can ping an Eclypse Z7 card. Since I use Vitis 2021.2 a large part of online help tends to be useless. I proceeded as follows.
1. To confirm that the Realtek PHY chipset can communicate with a Zynq FPGA I used the document found here https://media.digikey.com/pdf/Data Sheets/Digilent PDFs/Eclypse_Z7_HRM_Web.pdf
2. To use lwip resources I altered the Board Support Package in Vitis.
A. In the Platform project - Double click the Platform.spr file.
B. Click the ps7_cortex_a9->Zynq fsbl->Board Support Package Tab in the drop down menu.
C. Click on the "Modify BSP Settings ..." tab near the top of the page.
i. In the Overview tab - Select lwip211 libraries.
ii. Then click the Standalone tab.
Set the use_axieth_on_zynq to 0 (since the ZYNQ GEM will be used).
D. Click the ps7_cortex_a9->Standalone on ps7_cortex_a9_0
E. Click on the "Modify BSP Settings ..." tab near the top of the page.
i. In the Overview tab - Select lwip211 libraries.
ii. Then click the Standalone tab.
Set the use_axieth_on_zynq to 0 (since the ZYNQ GEM will be used).
F. Create a new Application program with the lwip_server_echo option (instead of Hello World) and voila! You have ethernet connection. You can ping IP address 192.168.1.10.