internet in virtual machine not running

Tapas Mishra mightydreams at gmail.com
Sat Oct 23 13:16:46 UTC 2010


On Sat, Oct 23, 2010 at 5:20 AM, Christopher Chan
<christopher.chan at bradbury.edu.hk> wrote:
>
>> I am able to do an ssh from an outside machine to the above virtual
>> machine (network manager is still not present)
>>
>> Now if I change the file /etc/network/interfaces to
>>
>> auto lo
>> iface lo inet loopback
>> iface eth0 inet static
>> address 192.168.1.4
>> netmask 255.255.255.0
>> gateway 192.168.1.1
>> pre-up iptables-restore < /etc/iptables.rules
>>
>
> auto lo
> iface lo inet loopback
> iface eth0 inet static
>        address 192.168.1.4
>        netmask 255.255.255.0
>        gateway 192.168.1.1
>        pre-up iptables-restore < /etc/iptables.rules
>
> Tabs/indenting very important for config files like main.conf for
> postfix and sendmail.cf for sendmail and for python scripts.
>
>>
>> now even the IP has gone and in both cases internet was not available
>> to VM and in this case even an ssh is not happening.
>>
>> Also I observe
>> /etc/init.d/networking restart does not have any effect on the said
>> machine I have to reboot it each time I change the
>> /etc/network/interfaces
>>
>> But the machine is not able to communicate to outside world.
>> The VM is Jaunty 32 bit and host is lucid 64 bit.
>>> Perhaps editing /etc/network/interfaces ?
>>>
>>> What was the rationale behind removing network manager?
>> I am learning  network programming.My programs on VM will also
>> communicate to the internet.
>
> Then learn to get the syntax right.
>
>
>>
>> I do not want the Network Manager Gnome to over write any sort of
>> entries or configuration which I am going to do.
>>
>
> Of course. First thing I get rid of too.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

What is your post helpful to?




More information about the ubuntu-users mailing list