I have a raspberry pi with raspbian and on the eth0 port it is connected to my network and gets an ip address via dhcp.
But now I want to unplug the ethernet cable and just use a new one that connects my pc directly to the pi.
Now my question is: Is it possible that the pi tells my pc an ip address to work with like an dhcp Server? So I dont need to do stuff in the adapter settings on my pc. Both sides should now have an ip address to communicate. Would it be possible that if I undo everything and connect the pi back to my network that the pi acts as dhcp client again?