[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: configuring lenny networking



Oguz Altun wrote:
Hi,

I was using a guest lenny VirtualBox as my personal web server. Apache, mysql, etc... No X, no Gnome, KDE etc. Everthing was fine. The host pc was windows. I had a new pc and so moved lenny virtualbox to it by copying virtual harddisks, and VirtualBox's xml files, etc.

In the new environment, Lenny boots fine, but can not connect to internet. When I was installing Lenny the first time, I entered DNS ip myself, and it got an ip by dhcp. I can't see how I can do the same procedure without reinstalling.

As there is no internet, apt-get is useless.

So do you guys know how I should proceed?

Thanks...



Let me understand. You now have a physical machine, running lenny, it has a network cable connected to it, and you don't have internet?
If that's the case, then:

(assuming 192.168.1.50 is a free IP address in your LAN, and 192.168.1.100 is the IP of your local router LAN ip address)

# ifconfig eth0 192.168.1.50 netmask 255.255.255.0
# route add default gw 192.168.1.100

and then edit /etc/resolv.conf  giving this as the first line:
nameserver 192.168.1.100

after that, you should have internet...



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: