[SOLVED] Basic Network Problem .. cant ping, cant access internet..
Linux - NetworkingThis 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.
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.
PC B Windows 192.168.1.3 VirtualBox host with VM configured with bridged network adapter running CentOS 192.168.1.10
Gateway 192.168.1.1
192.168.1.10 definitely not being used by any network devices except the VM guest.
CentOS (guest, not PC A) cannot ping 192.168.1.1 (gateway) 192.168.1.2 (PC A) or any (!) Internet address such as 75.126.162.205 (LQ)
Can
PC A ping PC 192.168.1.3?
PC A ping 192.168.1.10?
PC B ping PC 192.168.1.2?
PC B ping 192.168.1.10?
Ping tests may not be reliable from VirtualBox hosts, I vaguely recall they did not work on early versions, maybe only when pinging the host. Just tried pinging host under VirtualBox 3.2.12 and it did work.
As everything is being done by address, resolv.conf is not relevant.
Are you using the same netmask on all systems? Conventionally 255.255.255.0 for 192.168.x.x addresses.
The default gateway is only relevant to get to IP addresses outside the LAN, that is outside 192.168.1.x. As I understand it, CentOS in the VM cannot ping LAN addresses including the default gateway so it is very unlikely that accessing IP addresses outside the LAN will work.
Do I correctly understand:
PC A CentOS 192.168.1.2
PC B Windows 192.168.1.3 VirtualBox host with VM configured with bridged network adapter running CentOS 192.168.1.10
Gateway 192.168.1.1
192.168.1.10 definitely not being used by any network devices except the VM guest.
CentOS (guest, not PC A) cannot ping 192.168.1.1 (gateway) 192.168.1.2 (PC A) or any (!) Internet address such as 75.126.162.205 (LQ)
Can
PC A ping PC 192.168.1.3?
PC A ping 192.168.1.10?
PC B ping PC 192.168.1.2?
PC B ping 192.168.1.10?
Following jefro's post, have you tried configuring the VM's network adapter to NAT, configuring its OS to use DHCP and trying to access addresses on the Internet? If that works we would know the components are working and could concentrate on configuring bridged with static IP.
PC A can ping to 192.168.1.3 (Windows ) yeah can ping
PC A CANT ping to 192.168.1.10 Cent OS( Virtual Box guest OS )
PC B can ping to 192.168.1.2 yea can ping
PC B windows CANT ping to Cent OS ( virtual box guest OS )
PC A can ping to 192.168.1.3 (Windows ) yeah can ping
PC A CANT ping to 192.168.1.10 Cent OS( Virtual Box guest OS )
PC B can ping to 192.168.1.2 yea can ping
PC B windows CANT ping to Cent OS ( virtual box guest OS )
Thanks for confirming.
So CentOS in the VM seems not to be on the LAN.
Getting information on the host ... When CentOS in the VM is running, what is the output when the user running the VM runs these commands on the host (where <machine name> is as listed by VBoxManage list vms)
Code:
VBoxManage list bridgedifs
VBoxManage list vms
VBoxManage showvminfo "<machine name>" | grep '^NIC'
Getting information on the guest ... What is the output from these command run as root on the VM
Thx for every one help.. i have written some NAT rules in the iptables.
but i used this command iptables -F
then all the rules flushed except NAT rules.
after i deleted those rules now it working...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.