I'm trying to let my Raspberry Pi ask for a new IP address everytime an ethernet cable is plugged in. So it doesn't only ask for an IP address when the Pi is booting.
This worked for me:
Just go to
Edit interfaces with
sudo nano interfaces
auto eth0 allow-hotplug eth0 iface eth0 inet dhcp
I'll mark this as the answer in two days, because then it can.