Jump to content

Recommended Posts

Posted

I have VirtualBox running on my CC3 machine and have had no trouble running through the Ubuntu Server 8.04 install.

 

I can't seem to get the internet/network working on it (i want to do a 'apt-get update' which keeps failing) and have no idea where to look.

 

Can anyone give any general pointers of what needs configuring and how after first boot to get this working in VirtualBox?

 

I'm brand new to Linux so be kind! v:)

Posted

Hi Jona,

 

I don't think that's it - I've just tried it and it didn't work. I can't ping any computers on the network.

 

I think it has to be much simpler than that. Maybe I just haven't configured the VirtualBox network adapter as it should be - do you know what this should be set to etc?

 

I skipped the network settings on the server install also - how do I configure these and what should it be?

Posted (edited)

Normally you would just set the network to 'NAT' configuration in VirtualBox.

 

To set the IP address, log in as the user account you created during setup and run:

 

sudo nano /etc/network/interfaces

 

Enter your account's password when prompted.

 

Look near the bottom of that file for "iface eth0 inet auto"

 

Change it to look something like this, but change IP addresses etc to suit your setup.

 

iface eth0 inet static
   address     192.168.0.66
   netmask     255.255.255.0
   gateway     192.168.0.254

 

To save and exit: Ctrl + O, Enter, Ctrl + X

 

To restart networking:

 

sudo /etc/init.d/networking restart

Edited by webman
Posted
To list available network intefaces, just run 'ifconfig'. There should be atleast an "ethX" adapter as well as a "lo" (loopback).
  • Thanks 1
Posted

I don't mind using VirtualBox because it means I learn more - I wouldn't have learnt this about networking without using VirtualBox.

 

Thanks for your help Craig! I tried eth1 before your post which worked - but thanks for the ifconfig command.

 

I'll not doubt post soon asking for more help!

Posted

So, trying to do a apt-get update and nothing is coming back.

 

Tried pinging Google and nothing.

 

I thought DNS issues but I've checked the file for it and they are listed as they are for rest of network:

 

nameserver address of svr1

nameserver address of svr2

nameserver address of svr3

 

Should it say nameserver? Or the name of the Server?!

 

I can ping the machine from my computer and it responds?

Posted

Few things.. what is the output of these commands?

 

ifconfig eth1

 

cat /etc/resolv.conf <-- should definitely be "nameserver 1.2.3.4" format

 

ping 1.2.3.4 (address of first nameserver entry from above)

 

ping 217.23.229.7 <-- Ctrl+C to cancel

 

ping google.co.uk

Posted (edited)

ifconfig eth1

inet addr:10.33.225.237 Bcast:10.33.231.255 Mask:255.255.248.0

There is loads of other stuff. Do you need that?

 

cat /etc/resolv.conf

search local
nameserver 10.33.224.2
nameserver 10.33.224.19
nameserver 10.33.224.16

 

ping firstnameserver returns an answer

 

ping www.google.com returns host unreachable

 

Is this of help??

Edited by Hightower
Posted
Is your default gateway set up properly? On your workstations, can you normally connect to the internet without specifying a proxy?
  • Thanks 1
Posted

Yes, we can go through 10.33.224.1 for county gateway, or 10.33.224.255 which is SmartCache or nothing at all which works fine.

 

Sorry about the 'x' - editing now to show info.

Posted

Ok, try and ping the default gateway, as listed next to 'gateway' in /etc/network/interfaces.

 

Failing that just reboot and try again...? :)

  • Thanks 1
Posted

I restarted before - nothing.

 

Haven't changed anything (that I know of) and a restart = sussed

 

:S

 

Oh well, it's working - cheers Craig

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...