Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-15-2014, 04:52 AM
|
#1
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Rep:
|
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!
|
|
|
08-30-2014, 03:31 PM
|
#2
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
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
|
|
|
09-03-2014, 07:06 PM
|
#3
|
Member
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64
Rep:
|
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.
|
|
|
09-05-2014, 07:30 AM
|
#4
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
09-05-2014, 11:55 AM
|
#5
|
Member
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64
Rep:
|
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.
|
|
|
09-05-2014, 12:06 PM
|
#6
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
09-05-2014, 11:11 PM
|
#7
|
Member
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64
Rep:
|
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.
|
|
|
09-06-2014, 03:59 AM
|
#8
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
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?
|
|
|
09-07-2014, 12:04 PM
|
#9
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
09-07-2014, 10:34 PM
|
#10
|
Member
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64
Rep:
|
What are the details on the gateway? I assume it's a SOHO consumer WiFi router?
|
|
|
09-07-2014, 11:08 PM
|
#11
|
LQ Newbie
Registered: Feb 2014
Distribution: Centos 7
Posts: 23
Original Poster
Rep:
|
Its WAG54G2 Wireless ADSL2+ Gateway.
|
|
|
09-11-2014, 05:40 PM
|
#12
|
Member
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64
Rep:
|
This is more than likely a problem with the wireless driver on the PC, or in the wireless stack on the router.
|
|
|
All times are GMT -5. The time now is 05:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|