I am running Ubuntu 22.04 and since the past few days I have really been struggling with getting internet connectivity to my Raspberry Pi, it doesn't support wireless networks, so I need to run a LAN cable to it.
I also don't have access to any routers/switches near me, thus I have to essentially configure my PC to assign an IP to the hardware on eth0 port.
I have tried it multiple times but it just doesn't seem to work. I have trouble figuring out how I should configure the IP for my eth0 port.
FWIW, yes I have already tried configuring a DHCP server so that I am able to assign IP from my PC.
Edit: I have been able to ssh into my Pi , but I am not able to access sites on the internet via my Pi still. Could it be some issue with the DNS or improper config of the default gateway?