LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-05-2013, 03:33 PM   #1
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Rep: Reputation: 16
Network, VirtualBox, Checklist, run out of ideas why net unreachable


Hi

It is a VirtualBox Centos, single NIC, other machines running OK and connect to network. Run out of ideas on this and wondered what additional items I can check.

From this machine:

ping www.google.com
connect: Network is unreachable (on other vm on same net it is)
Log:
/var/messages, last lines after reboot:
Nov 5 20:55:55 cl99 kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Nov 5 20:55:55 cl99 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Checklist:
1) Networking is bridged in OVB
2) Ping the router on 192.168.1.1 (which is the DNS1 and reachable)
3) ssh to the host - no problem
4) MAC address in Virtual box /etc/sysconfig/network-scripts/ifcfg-eth0
5) Disable IP tables
6) OOTB/unedited /etc/hosts
7) Can ping other machines on my net.
8) Other VM's can ping www.google.com

netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0



/etc/sysconfig/network-scripts/ifcfg-eth0 reads:

DEVICE=eth0
TYPE=Ethernet
UUID=0ae0dbc9-bd64-4f1c-9fce-7b20e4d6461e
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=08:00:27:F99:39
IPADDR=192.168.1.139
PREFIX=24
GATEWAY=255.255.255.0
DNS1=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"


It's not overly important but annoying more than anything because I can't fix it!

So if anyone has any ideas what else to try I would be grateful to know.

Many thanks

Kevin

Other info:

]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:F99:39
inet addr:192.168.1.139 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef9:d939/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1722 errors:0 dropped:0 overruns:0 frame:0
TX packets:589 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:135633 (132.4 KiB) TX bytes:124854 (121.9 KiB)

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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:952 (952.0 b) TX bytes:952 (952.0 b)
#
 
Old 11-05-2013, 03:49 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Let me get this straight.

You have a host OS and on that you are running Virtualbox. On virtualbox you have a few linux set up to have bridged nic to host. This single client is the only one that can't connect?

Did it ever work? Where did you get the install? Can you use NAT instead of bridged?

Ping would rely on dns so be sure to use nslookup or dig for that instead of ping.
 
Old 11-05-2013, 04:48 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Can the machine having a problem ping 208.117.232.118?
 
Old 11-14-2013, 10:40 PM   #4
koldor
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by kevinyeandel View Post
Hi


/etc/sysconfig/network-scripts/ifcfg-eth0 reads:

DEVICE=eth0
TYPE=Ethernet
UUID=0ae0dbc9-bd64-4f1c-9fce-7b20e4d6461e
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=08:00:27:F99:39
IPADDR=192.168.1.139
PREFIX=24
GATEWAY=255.255.255.0
DNS1=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"


#
Shouldn't the Gateway be set to 192.168.1.1 instead og 255.255.255.0
 
Old 11-16-2013, 09:02 PM   #5
Andre.Smit
LQ Newbie
 
Registered: Nov 2013
Location: Bronkhortspruit
Distribution: SuSE - Kubuntu - OpenWRT
Posts: 22

Rep: Reputation: Disabled
Post is not clear on details, but if this is the setup inside the virtual machine you have posted. Then you need to add default route and make sure dns is setup correctly.

Running route as root user should show default route.

#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default e.home 0.0.0.0 UG 0 0 0 enp4s0
loopback * 255.0.0.0 U 0 0 0 lo
192.168.1.0 * 255.255.255.0 U 0 0 0 enp4s0

check DNS

#cat /etc/resolv.config

should have line like:
nameserver 192.168.1.1

GATEWAY=255.255.255.0 is broken, I guess it should be GATEWAY=192.168.1.1 I would guess
 
1 members found this post helpful.
Old 11-17-2013, 10:54 AM   #6
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Original Poster
Rep: Reputation: 16
Thanks all

Andre that last one might be it. I have made a note of that so thank you - embarrassingly I can't remember which machine it was since they are all dev and space is often recycled if not used.
Just wanted to crack it for my own sanity. The only other note from cloning machines in virtualbox was to check/update both

/etc/sysconfig/network-scripts/ifcfg-eth0

and check the mac address in here:

/etc/udev/rules.d/70-persistent-net.rules

That was wrong also on a machine which stopped the interface showing up.

Anyway, thanks again all.

Kevin
 
  


Reply



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
[SOLVED] Error with pacman after installing Arch Linux in Virtualbox. Any ideas? shaunsingh14 Linux - Software 3 08-25-2011 09:49 PM
irc.freenode.net unreachable jazzi Linux - Networking 2 05-22-2011 08:49 AM
[SOLVED] VirtualBox-3.1.2-56127-Linux_x86.run building net modules fails bgeddy Slackware 6 01-08-2010 03:22 PM
Installed Virtualbox OSE in Slackware 12.2, but not able to run or setup network. pcsmasher Slackware 3 07-01-2009 02:07 AM
Endian Firewall in VirtualBox VM unreachable jonaskellens Linux - Networking 1 06-10-2009 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:33 PM.

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
Open Source Consulting | Domain Registration