internet in virtual machine not running

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


On Sat, Oct 23, 2010 at 7:32 PM, Tom H <tomh0665 at gmail.com> wrote:
> On Sat, Oct 23, 2010 at 9:22 AM, Christopher Chan
> <christopher.chan at bradbury.edu.hk> wrote:
>> Tapas Mishra wrote:
>>>>>
>>>>> 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
>>>
>>> What is your post helpful to?
>>
>> Your file had the wrong format and I fixed it for you.
>
> Wrong format? Indents don't make a difference in "/etc/network/interfaces".
>
> Why isn't there an "auto eth0"?
>
> --
Ok Tom you were right I have discovered the problem

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

Internet and ssh every thing is back on VM but the only problem is my
desired IP is gone in it.
It appears inspite of uninstalling network manager gnome it is there
and doing what ever it wants.It has changed the resolv.conf file
definition also.




More information about the ubuntu-users mailing list