[SOLVED]avoid dhclient to get on internet?

Discussions about using Linux guests in VirtualBox.
Post Reply
lugoteehalt
Posts: 57
Joined: 14. Jun 2008, 12:12

[SOLVED]avoid dhclient to get on internet?

Post by lugoteehalt »

Every time the Debian Lenny 32 bit guest (in a Debian Lenny 64 bit host) boots it has to have run # dhclient before the internet will work. This is far too much work. Is there any way of getting the internet to run automatically?

Thanks for any help.
Last edited by lugoteehalt on 22. Sep 2010, 07:15, edited 1 time in total.
lugoteehalt
Posts: 57
Joined: 14. Jun 2008, 12:12

Re: avoid dhclient to get on internet?

Post by lugoteehalt »

For the record: Remove, in fact renamed it, /etc/udev/rules.d/70-persistent-
net.rules. Perhaps it would be better to edit it.

Thanks Sasquatch, I remembered you'd told me this in the past.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: [SOLVED]avoid dhclient to get on internet?

Post by Sasquatch »

You could edit it, but removing is a bit faster and safer, because if you make a syntax error, you end up with either another interface, or nothing at all. I hope you didn't rename the file to have the same extension (.rules) as it would then be read as a rule and executed ;).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
lugoteehalt
Posts: 57
Joined: 14. Jun 2008, 12:12

Re: [SOLVED]avoid dhclient to get on internet?

Post by lugoteehalt »

Sasquatch wrote:I hope you didn't rename the file to have the same extension (.rules) as it would then be read as a rule and executed ;).
Nah - just put a squiggle on the end. I think it's called a tilde, but who can tell? :)
Post Reply