No internet on my CentOS 7 VM

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers No internet on my CentOS 7 VM
# 1  
Old 03-29-2017
No internet on my CentOS 7 VM

Hi Guys,

I am in desperate need to have internet on my Virtual machine. Host OS=Windows 7 Enterprise.

Virtualization Software: Virtualbox
Network Mode: Bridge Adapter

Code:
[root@vm1 ~]# yum install nmap
Loaded plugins: fastestmirror, langpacks
http://mirror.aarnet.edu.au/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.as24220.net/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.overthewire.com.au/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://ftp.swin.edu.au/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.ventraip.net.au/CentOS/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.internode.on.net/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.colocity.com/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.crucial.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.digitalpacific.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.intergrid.com.au/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.as24220.net/pub/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.overthewire.com.au/pub/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://ftp.swin.edu.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.ventraip.net.au/CentOS/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.internode.on.net/pub/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.crucial.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.digitalpacific.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.intergrid.com.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: mirror.as24220.net
 * epel: mirror.as24220.net
 * extras: mirror.as24220.net
 * updates: mirror.intergrid.com.au
Package 2:nmap-6.40-7.el7.x86_64 already installed and latest version
Nothing to do
[root@vm1 ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
http://mirror.aarnet.edu.au/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.as24220.net/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.overthewire.com.au/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://ftp.swin.edu.au/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.ventraip.net.au/CentOS/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.internode.on.net/pub/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.colocity.com/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.crucial.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.digitalpacific.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.intergrid.com.au/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.as24220.net/pub/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.overthewire.com.au/pub/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://ftp.swin.edu.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.ventraip.net.au/CentOS/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.internode.on.net/pub/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.crucial.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.digitalpacific.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.intergrid.com.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.optus.net/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.mirror.serversaustralia.com.au/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://centos.uberglobalmirror.com/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
http://mirror.nsw.coloau.com.au/centos/7.3.1611/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 10.131.78.30:1080; No route to host"
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: mirror.as24220.net
 * epel: mirror.as24220.net
 * extras: mirror.as24220.net
 * updates: mirror.intergrid.com.au
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.12.6-11.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.12.6-11.el7.centos for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.12.6-11.el7.centos for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-1.11 for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.9-4 for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Processing Dependency: skopeo-containers for package: 2:docker-1.12.6-11.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.9-4.el7 will be installed
---> Package docker-client.x86_64 2:1.12.6-11.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-11.el7.centos will be installed
---> Package oci-register-machine.x86_64 1:0-1.11.gitdd0daef.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.1.4-9.git671c428.el7 will be installed
---> Package skopeo-containers.x86_64 1:0.1.18-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================
 Package                                         Arch                              Version                                              Repository                         Size
================================================================================================================================================================================
Installing:
 docker                                          x86_64                            2:1.12.6-11.el7.centos                               extras                             20 M
Installing for dependencies:
 container-selinux                               noarch                            2:2.9-4.el7                                          extras                             26 k
 docker-client                                   x86_64                            2:1.12.6-11.el7.centos                               extras                            4.4 M
 docker-common                                   x86_64                            2:1.12.6-11.el7.centos                               extras                             71 k
 oci-register-machine                            x86_64                            1:0-1.11.gitdd0daef.el7                              extras                            1.1 M
 oci-systemd-hook                                x86_64                            1:0.1.4-9.git671c428.el7                             extras                             29 k
 skopeo-containers                               x86_64                            1:0.1.18-1.el7                                       extras                            7.6 k

Transaction Summary
================================================================================================================================================================================
Install  1 Package (+6 Dependent packages)

Total download size: 26 M
Installed size: 104 M
Is this ok [y/d/N]: N
Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2017-03-29.17-20.O5pwGz.yumtx
[root@vm1 ~]#

My network interface file is as follows:

Code:
[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3 
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
NAME=enp0s3
UUID=0837ec6f-7e66-47c0-8d96-d423af21b9f1
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.1.12
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
[root@vm1 ~]# nmap $(hostname)

Starting Nmap 6.40 ( http://nmap.org ) at 2017-03-29 17:22 AEDT
Nmap scan report for vm1.master (192.168.1.12)
Host is up (0.000012s latency).
Other addresses for vm1.master (not scanned): 192.168.122.1
Not shown: 998 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
111/tcp open  rpcbind

Nmap done: 1 IP address (1 host up) scanned in 33.17 seconds
[root@vm1 ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 enp0s3
link-local      0.0.0.0         255.255.0.0     U     1002   0        0 enp0s3
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 enp0s3
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
[root@vm1 ~]# ping google.com
ping: google.com: Name or service not known
[root@vm1 ~]# ping 192.168.1.1 -c 5
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.12 icmp_seq=1 Destination Host Unreachable
From 192.168.1.12 icmp_seq=2 Destination Host Unreachable
From 192.168.1.12 icmp_seq=3 Destination Host Unreachable
From 192.168.1.12 icmp_seq=4 Destination Host Unreachable
From 192.168.1.12 icmp_seq=5 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4002ms
pipe 4

Also because of this I suppose I cannot access internet in firefox.

I don't know what is the problem as default route is there.

When I did not add line
DNS1=192.168.1.1, I could ping 192.168.1.1 but after addition of that of that line I cannot.

Either way I get heaps of errors and cannot access internet and this is the problem statement.

Any ideas to resolve ?
# 2  
Old 03-29-2017
What does gateway (in default route) resolve to?
# 3  
Old 03-29-2017
How do i check that ?
# 4  
Old 03-30-2017
Lightbulb

netstat -nr is the command !
Thanks anyway I got resolution myself. I tried another adapter in Virtualbox in Bridged network and it worked beautifully.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

Help using XEN in CentOS 5.9

Hey guys, I've been straddling with this issue for quite some time now and I'm getting absolutely nowhere with it. It took me a long time to get XEN up and running on my server. We only use SSH to manipulate our servers, but we finally got it up and running. Now I'm at the point of actually... (1 Reply)
Discussion started by: mccabec123
1 Replies

2. UNIX for Dummies Questions & Answers

Can someone Help install CentOS

Hello, I'm new to this Unix OS. I need help and guide to how to install this: Server requirements / Installation OS: CentOS6 / EXT4 SWAP: 16 GB (system level) Just show me the walk through by using centos manual install. Thanks, mimic (1 Reply)
Discussion started by: mimic51
1 Replies

3. Red Hat

RH V Centos

Hi, I have built out a new virtual production environment (VMWare, HA enabled, VMotion... all the bells & whistles) using RHEL5 VM's. I have got another ESX host that I plan to use as a pre-prod environment. To save some costs on RH subs I was thinking about installing this environment... (5 Replies)
Discussion started by: Duffs22
5 Replies

4. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

5. UNIX for Dummies Questions & Answers

Netstat(8) on CentOS?

Hi, Im currently using CentOS and have a few questions on the command Netstat(8). a.So what command do I use to list all active and available sockets? I also want to include UNIX domain sockets. (I have read the netstat man page but just really confused) b. What states may a TCP... (1 Reply)
Discussion started by: coolcalin812
1 Replies

6. Linux

SFTP an internet address from a system behind an internet proxy

I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location. Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies
Login or Register to Ask a Question