LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-14-2009, 08:19 AM   #1
billyjones26@gmail.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
Unhappy VM unable to access internet. Net config help


Hi folks,

This is a little bit of virtualization and networing.

I have ubuntu os running user-mode linux which runs a ubuntu os as a guest. Something has happened to my network config as i can no longer access anything past the gateway

My setup uses a tap interface on the host. Here are the details:

eth0 (host)

ip address: 192.168.1.8
netmast: 255.255.255.0
Bcast: 192.168.1.255
Default route: 192.168.1.1


tap2 (host)

ip address 192.168.1.5
mask: 255.255.255.255
Bcast: 192.168.1.255

eth0 (guest vm)

ip address: 192.168.1.6
netmast: 255.255.255.0
gateway: 192.168.1.1
bcast: 192.168.1.255
network: 192.168.1.0

Have i configured the guest wrongly? should the gw be the tap interface ip?

I can ping the hosts interface and the gateway at 192.168.1.1 but i cannot get any further than that


Any help most appreciated!

/Jonesy
 
Old 11-14-2009, 02:12 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Can you ping external ip's? e.g. 208.67.220.220. If so, then it sounds like a dns issue on the guest machine. Also, try not using an ip on the tap adapter. Mine are set up like this:
Code:
br0       Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1345913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:456618 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1201449794 (1.1 GiB)  TX bytes:30545689 (29.1 MiB)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::204:4bff:fe16:469d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1019203 errors:0 dropped:0 overruns:0 frame:0
          TX packets:585525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:956767713 (912.4 MiB)  TX bytes:2045010745 (1.9 GiB)
          Interrupt:27 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2152730 errors:0 dropped:0 overruns:0 frame:0
          TX packets:533592 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2554212079 (2.3 GiB)  TX bytes:43580508 (41.5 MiB)
          Interrupt:28 Base address:0xe000
Notice I don't have an ip on my br0 adapter or my eth1. I have my network set up with static ip's, so I assign it in the guest os.
 
Old 11-15-2009, 09:45 AM   #3
billyjones26@gmail.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by manwichmakesameal View Post
Can you ping external ip's? e.g. 208.67.220.220. If so, then it sounds like a dns issue on the guest machine. Also, try not using an ip on the tap adapter. Mine are set up like this:
Code:
br0       Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1345913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:456618 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1201449794 (1.1 GiB)  TX bytes:30545689 (29.1 MiB)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::204:4bff:fe16:469d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1019203 errors:0 dropped:0 overruns:0 frame:0
          TX packets:585525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:956767713 (912.4 MiB)  TX bytes:2045010745 (1.9 GiB)
          Interrupt:27 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2152730 errors:0 dropped:0 overruns:0 frame:0
          TX packets:533592 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2554212079 (2.3 GiB)  TX bytes:43580508 (41.5 MiB)
          Interrupt:28 Base address:0xe000
Notice I don't have an ip on my br0 adapter or my eth1. I have my network set up with static ip's, so I assign it in the guest os.

Hi thanks for your reply,

I can ping external IP's so yes it seems to be a DNS issue. I thought the gateway would handle DNS? Any suggestions to fix this?

Rgrds,

Billy
 
Old 11-15-2009, 09:54 AM   #4
billyjones26@gmail.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up BOOM!

Quote:
Originally Posted by manwichmakesameal View Post
Can you ping external ip's? e.g. 208.67.220.220. If so, then it sounds like a dns issue on the guest machine. Also, try not using an ip on the tap adapter. Mine are set up like this:
Code:
br0       Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1345913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:456618 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1201449794 (1.1 GiB)  TX bytes:30545689 (29.1 MiB)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::204:4bff:fe16:469d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1019203 errors:0 dropped:0 overruns:0 frame:0
          TX packets:585525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:956767713 (912.4 MiB)  TX bytes:2045010745 (1.9 GiB)
          Interrupt:27 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::204:4bff:fe16:469c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2152730 errors:0 dropped:0 overruns:0 frame:0
          TX packets:533592 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2554212079 (2.3 GiB)  TX bytes:43580508 (41.5 MiB)
          Interrupt:28 Base address:0xe000
Notice I don't have an ip on my br0 adapter or my eth1. I have my network set up with static ip's, so I assign it in the guest os.


Hi again!

Thanks for hinting at a DNS issue. I looked at resolved.conf and notices the nameserver was on the wrong subnet.

Its all fixed now

Thanks again!

Rgrds,

/Jonesy
 
  


Reply

Tags
linux, networking


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
look for a piece of software which allow to manage a local net whith internet access jaxd Linux - Networking 2 09-03-2007 11:45 PM
Unable to access the internet carlonlinux Linux - Networking 6 08-26-2006 02:10 PM
HP zv6000 unable to get net access Jayla Suse/Novell 2 04-21-2006 07:16 AM
Can't connect to the net after Red hat 9.0 installtion with internet config wizard Linux2excel Linux - Hardware 5 04-11-2005 04:44 PM
Unable to Access the Internet - not sure why zensufi Linux - Hardware 9 07-20-2004 06:14 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
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