Problem with arduino ethernet shield2

So first off im an arduino beginner and after finishing all the projects from arduino starter kit i bought the ethernet shield 2.

So i tried many examples and none worked properly as i wanted to.
I gave my mac adress, ip, gateway, subnet and nothing.
The only example that kinda works is dhcpchatserver but it keeps saying "Trying to get an IP address using DHCP" it doesnt even say "Failed to configure Ethernet using DHCP".

If someone could help me i would be so thankfull.

So i tried many examples and none worked properly as i wanted to.

Pick ONE. Show the code. Show the serial output. Explain what the Arduino is connected to. Explain exactly what happens, or fails to happen.

wydtron:
If someone could help me i would be so thankfull.

Wrong network setup, perhaps?

All programming examples are for a fully working LAN network and the clients connected to the router.

In such an environment you would have:

  • a LAN or LAN/WIFI router to establish a home network and Internet connection
  • a PC connected to the LAN or WIFI router
  • an Ethernet shield connected by cable to the LAN router

In some cases I've seen people not connecting the Ethernet shield to the router, but they tried connecting the Ethernet shield to the PC.