I always used static ip or dhcp configurations in past, and this is what normally happens:
- when I pull out the cable my interface goes down
- when I plug back the cable the interface goes back up and in case of dhcp it gets a new ip
This time I moved to pppoe with the autoconfiguration did by debian installer (running the command line modules=ppp-udeb
pressing TAB key before running the installer).
What i found is that pppoe interface starts up automatically when the system boot but if i unplug the cable and plug it back the interface is stuck.
The interface is keept up until some kind of timeout happens and there's no way to have the pppoe reconnect and getting a new ip once plugged in back.
How can i fix this? My auto generated /etc/network/interfaces file is the following:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# PPPoE connection
auto provider
iface provider inet ppp
pre-up /sbin/ifconfig eth0 up
provider provider
# The primary network interface
allow-hotplug eth0
iface eth0 inet manual
# The secondary network interface used for
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
I would also ask why the interface name is called provider ?
shouldn't be ppp0 ?
When the system boot and I go in ifconfig the interface is named ppp0 not provider!