Hi,
We could recommend first looking into the "AN13423 - Using CAN2CAN, CAN2ETH and ETH2CAN Features of LLCE on S32G", which is available on the S32G2 product page (link: S32G2 Safe and Secure Vehicle Network Processor | NXP Semiconductors)
There is an example application for this situation provided on the "LLCE Driver + Firmware" for S32G platform. This should be found (once LLCE Driver + Firmware is installed) on the following address:
"C:\nxp\S32G_LLCE_1_0_4\sample_app_llce\llce_sample_app_pfe"
Also, more information is provided on the LLCE Firmware User Guide on chapter 1.3.5 Ethernet Communication [v1.0.4]. This should be available (once LLCE Driver + Firmware is installed) on the following address:
"C:/nxp/S32G_LLCE_1_0_4/firmware/llce_interface/doc/LLCE_firmware_user_guide.pdf"
Please, let us know if this information was helpful or not.