Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had a pppoe connection and I am trying now to connect to another network without pppoe. I've made the following modifications in the /etc/network/interfaces file:

################################
auto lo    
iface lo inet loopback    
# auto dsl-provider    
# iface dsl-provider inet ppp    
# pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf    
# provider dsl-provider  

auto eth0    
iface eth0 inet dhcp    
################################

Also, a have deleted the /etc/ppp/peers/dsl-provider file.

Now, I am unable to restart the network service with

sudo /etc/init.d/networking restart

and the booting of the system takes me up to 5 minutes.

Please help. :) Thank you.

PS: I've figured it out. I had the dhcp turned off. I used sudo dhclient eth0.

share|improve this question
1  
Are you sure that the network you want to connect offers you a DHCP server? Maybe you need to usea static network configuration. –  Florian Diesch Dec 23 '12 at 8:46
    
@Daniela Since you seem to have found the answer, please post it as an answer to your own question. (When there is no other satisfactory answer and you've found the answer, we encourage this.) 2 days after posting it, you can accept your own answer (by clicking the gray check mark to the left of it). This will make clear that your problem is solved, and also help others searching for solutions to this or similar problems. –  Eliah Kagan Dec 23 '12 at 10:55
add comment

2 Answers 2

I'm not sure if you're editing the wrong file or if it's just a typo in your question, but you should be editing /etc/init.d/networking.

share|improve this answer
    
Yes, it's a typo, thank you. –  Daniela Dec 23 '12 at 8:56
add comment

Did you try using this sudo poff? If not, running that command may solve your problem.

share|improve this answer
    
I have. Thank you though. –  Daniela Dec 23 '12 at 10:02
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.