LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-22-2010, 03:55 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
internet in virtual machine not running


I have removed Network Manager Gnome from my Ubuntu which is a virtual machine(Guest OS),I see the internet is no more running inside this Virtual Machine.
While in other Virtual Machines (Other Linux) I had not removed Network Manager Gnome and I see internet is running fine in them.
What could be the problem?
 
Old 10-22-2010, 04:37 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Had you configure ip address through network manager?

Configure ip address manually and restart networking service.

Code:
# vi /etc/network/interfaces
Regards,
 
Old 10-22-2010, 04:49 AM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I am able to do an ssh into the vm in question irrespective of the fact that it is not having any entry in /etc/network/interfaces
here are my firewall rules
Quote:
# Generated by iptables-save v1.4.1.1 on Fri Oct 22 13:00:09 2010
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [287:55516]
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -j DROP
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
-A INPUT -j DROP
COMMIT
# Completed on Fri Oct 22 13:00:09 2010
in the VM.I do not have any firewall on host machine and connected without any proxy to internet.
Quote:
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
ifconfig
Quote:
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Last edited by tkmsr; 10-22-2010 at 10:06 AM.
 
Old 10-22-2010, 01:51 PM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Ok I disabled the firewall and changed the /etc/network/interfaces to
Quote:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
If the firewall is enabled internet on the VM does not work also any one from VM can not do an ssh to outside
Here is the firewall
Code:
# Generated by iptables-save v1.4.1.1 on Fri Oct 22 13:00:09 2010
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [287:55516]
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -j DROP
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
-A INPUT -j DROP
COMMIT
# Completed on Fri Oct 22 13:00:09 2010
Seems there is some problem with my firewall.
What port do I need to open so that internet keeps running on VM and outgoing ssh connections are allowed?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantage in running a virtual machine satimis Linux - Software 10 05-14-2009 08:55 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 02:04 PM
error while running update_latest.sh on virtual machine chinmayee Ubuntu 3 02-13-2008 06:30 PM
NIC installation in fedora running as virtual machine naufal Linux - Networking 3 09-22-2006 07:44 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration