Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to start a ppp connection on my router on startup, but i need to have a vlan activated before. The problem is that if i ifup the vlan in the ppp interface, the vlan is not up when pppoe tries to connect.

this is how my /etc/network/interfaces looks like:

auto myprovider
iface myprovider inet ppp
        pre-up /sbin/ifconfig eth0.2 up
        provider myprovider

auto eth0.2
iface eth0.2 inet manual

The ppp device is phyiscaly located on eth0.

share|improve this question

It seems to work if also the physical interface is set to auto:

auto eth0
auto eth0.2
auto myprovider

iface eth0 inet manual
iface eth0.2 inet manual

iface myprovider inet ppp
        pre-up /sbin/ifconfig eth0.2 up
        provider myprovider
share|improve this answer

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.