Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Question: I've some Debian or Ubuntu based servers here with

allow-hotplug eth0

and some with

auto eth0

in /etc/network/interfaces. What is the difference between them? If I'm correct, both are bringing up the interfaces during startup and if a cobel is pluged in. Right?

Thanks

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

allow-hotplug allows you to plug in a new network device (say, turning on a network card, PCMCIA cards, etc.).

auto is just auto-detection of the port being plugged in IIRC to bring the interface online.

share|improve this answer
add comment

One potential serious consequence of allow-hotplug instead of auto is that allow-hotplug interface usually do not come up after issuing a

/etc/init.d/network restart

they go down but don't come up again which leaves you with a "down" interface.

share|improve this answer
    
Thanks, good to know –  Thomas Deutsch Nov 10 '11 at 8:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.