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 02-15-2014, 04:52 AM   #1
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Blog Entries: 1

Rep: Reputation: Disabled
Post Internet connectivity intermittent on CentOS 6.5 with static IP on VirtualBox


My scenario:
CentOS 6.5 on VirtualBox, Bridged Interface with WLAN card(Cable connected)

My Configuration:
ifcfg-eth0 configured to use static IP, nameservers are that of google's.

Problem:
While I was updating, I noticed that from my full download speed, the speed slowed down to a few bytes and eventually leading to loading of new mirror. This worked fine for 3 to 4 seconds and again slowed down. It took me a lot of time to download a file which otherwise would have taken just 2 minutes.

I am pinging google.com and it seems that ping is fine for 3 seconds, then stops, then again starts after 5 to 6 seconds, then stops and this continues.

When I ping from my host, it is normal and connectivity is like it should be. From VM, its intermittent. Simultaneous pings and the same result.

Need your help!
 
Old 08-30-2014, 03:31 PM   #2
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I am still facing this issue. Can someone suggest what I need to look at? I have done a fresh install, reconfigured static IP and related information. The problem persists.

##Downgraded to CentOS 6.4
 
Old 09-03-2014, 07:06 PM   #3
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
Are you running this in NAT or bridge mode (in VirtualBox)? If bridging, this sounds like an ARP timeout issue. If NAT'ing, it may be a bit more complex.
 
Old 09-05-2014, 07:30 AM   #4
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Its in bridge mode(Cable connected). It pings for 3-4 seconds and then stops for 3-4 seconds and then starts and stops. Due to this, when I am upgrading my repositories, it exhausts all the mirrors because of this and in the end it dies in between.
 
Old 09-05-2014, 11:55 AM   #5
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
Try switching to NAT mode and report.

If NAT mode works consistently, it is likely an ARP issue when trying to juggle two MAC addresses on the same WiFi client attachment, or the WiFi equivalent of a "port". Non-WDS access points struggle with this and it is not supported by the WiFi spec.

It sounds like Layer 2 is where your problem is happening. Let us know if NAT makes a difference; if so, I have a couple more things to try to verify and possibly mitigate that issue.
 
Old 09-05-2014, 12:06 PM   #6
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
NAT indeed works perfectly and I have tested it before. Actually, I used to use NAT before, but switched to bridge connection to run some scans and tests.
Let me know the other tests you are referring to. I will give those a try.
 
Old 09-05-2014, 11:11 PM   #7
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
Open a second console window to broadcast gratuitous ARP and execute the following (omit 'sudo' if logged in as root; you'll need root permissions to open the raw socket) and replace "<IP>" with the IP address on the VM (in bridged mode):

Code:
sudo arping -A -I eth0 <IP>
While this is running, test connectivity for a bit using another PTY. Let me know if you see the same intermittent connectivity, or if it improves. You might also want to keep an eye on the connectivity of the host system.
 
Old 09-06-2014, 03:59 AM   #8
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
This morning I booted up virtual CentOS and did a "yum update" and to my surprise, it updated without any problems. I didn't even tried "arping" as you suggested.
After upgrade, I tried "arping" and I couldn't pin point anything. Connectivity seems flawless(since I was able to update without much effort).
I am not sure how to reproduce it now. And I can't say for sure that this will not happen again.
What do you think Solarisguy?
 
Old 09-07-2014, 12:04 PM   #9
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Ok, so the problem started happening again. This time I took a snap of it. In the capture file that I have attached, we can see that there is a loss stated below and this can be verified by the numbers of ICMP packets.
At the same moment, I was pinging my gateway from my physical host and there was no loss. This explains why internet sites are giving problems. My gateway itself is dropping packets and the way I see it, it's for no reason.
Any help will be appreciated.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	37
Size:	111.9 KB
ID:	16334  
 
Old 09-07-2014, 10:34 PM   #10
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
What are the details on the gateway? I assume it's a SOHO consumer WiFi router?
 
Old 09-07-2014, 11:08 PM   #11
latawaz
LQ Newbie
 
Registered: Feb 2014
Distribution: Centos 7
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Its WAG54G2 Wireless ADSL2+ Gateway.
 
Old 09-11-2014, 05:40 PM   #12
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
This is more than likely a problem with the wireless driver on the PC, or in the wireless stack on the router.
 
  


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
Intermittent Network Connectivity arsci Linux - Networking 1 09-21-2010 02:21 PM
Virtualbox CentOS Guest can not connect to Internet from XP Host sokha Linux - Virtualization and Cloud 2 03-30-2010 11:28 PM
Network connectivity intermittent vaadoo Linux - Networking 11 09-03-2009 08:40 PM
No Internet Connectivity on CentOS 4.4 Final bullium Linux - Networking 3 05-17-2007 11:26 AM
intermittent wireless connectivity with bcm4306 maclenin Linux - Wireless Networking 2 01-11-2007 02:18 PM

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

All times are GMT -5. The time now is 05:32 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
Open Source Consulting | Domain Registration