LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2016, 09:30 AM   #1
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Rep: Reputation: Disabled
internet connectivity error


hello friends,

i am using Linux RHEL with curl and wget packge installed.

i am receiving below error message while installing one important package.

"no internet connection could be detected, or you do not have ping, curl or wget. please ensure that you download http://go.microsoft .com/fwlink/?linked=808107&clcid=0x409 and place it in this directory with name ....tar.gz"

how to overcome this issue?

i checked internet connectivity with curl and it seems down or slow...
 
Old 11-17-2016, 09:40 AM   #2
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 762

Rep: Reputation: 220Reputation: 220Reputation: 220
what version rhel?
have you tried installing curl or wget?
why do you have a link that shows go.microsoft.com?
what is the exact command you used? Please show it in code tags.
how did you check internet connectivity with curl? please show commands and output in code tags.
Down or slow? pick one.
Have you called or put in a ticket with Red Hat Support?

Last edited by erik2282; 11-17-2016 at 09:42 AM.
 
Old 11-17-2016, 10:05 AM   #3
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
i have used this script,


case "$(curl -s --max-time 2 -I http://google.com | sed 's/^[^ ]* *\([0-9]\).*/\1/; 1q')" in
[23]) echo "HTTP connectivity is up";;
5) echo "The web proxy won't let us through";;
*) echo "The network is down or very slow";;
esac




i have curl and wget but not ping

also i did;

yum install http://go.micro....rpm

and it shows package not found - nothing to do
 
Old 11-17-2016, 10:35 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Ok. Try these commands and post the output of each:

Code:
ping -c 2 8.8.8.8
curl www.google.com
wget www.google.com
 
1 members found this post helpful.
Old 11-17-2016, 10:57 AM   #5
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
ping -c 2 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 11000ms


curl www.google.com
curl: (6) Couldn't resolve host 'www.google.com'


wget www.google.com
--2016-11-17 09:55:45-- http://www.google.com/
Resolving www.google.com... failed: Name or service not known.
wget: unable to resolve host address “www.google.com”
 
Old 11-17-2016, 10:59 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
You are not connected to the internet. Try these commands to help figure out why:

Code:
ip a
ip r
 
1 members found this post helpful.
Old 11-17-2016, 11:09 AM   #7
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
ip a shows,

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master bond0 state UP qlen 1000
link/ether ac:16:2d:ad:d9:70 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether ac:16:2d:ad:d9:74 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master bond0 state UP qlen 1000
link/ether 2c:44:fd:e0:66:78 brd ff:ff:ff:ff:ff:ff

and more...

ip r shows, /*i mentioned <ip.add>/ instead real number*/

<ip.add>/24 dev bond0 proto kernel scope link src <ip.add>
<ip.add>//16 dev bond0 scope link metric 1014
default via <ip.add>/ dev bond0
 
Old 11-17-2016, 11:13 AM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
You do not have an IP address configured on an interface. You have to do that to have internet connectivity.
 
1 members found this post helpful.
Old 11-17-2016, 11:21 AM   #9
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
any quick steps to configure ip address on Linux rhel6?
 
Old 11-17-2016, 11:36 AM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Do you have your IP address, netmask and gateway? Do you have a dns server address?

Do you know which interface is plugged in to your switch/router/modem whatever? Eth0,1,2,3?

Assuming you have all of this information:

Interface
Code:
# assuming eth0 interface is plugged in
vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=STATIC
IPADDR=<your IP>
NETMASK=<your NETMASK>
GATEWAY=<your GATEWAY>
ONBOOT=yes
DNS
Code:
vim /etc/resolv.conf

nameserver <your primary nameserver IP>
nameserver <your secdonary nameserver IP>
once changes are made
Code:
service network restart
More info: https://access.redhat.com/documentat...nterfaces.html
 
1 members found this post helpful.
Old 11-17-2016, 11:50 AM   #11
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Have value like this for:

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

DEVICE="eth0"
MASTER="bond0"
ONBOOT="yes"
USERCTL="no"
SLAVE="yes"
HWADDR="AC:16:2D:AD9:70"

/etc/resolv.conf

# Generated by NetworkManager
domain xyz.com
search xyz.com
nameserver <ip_add>
nameserver <ip_add>
nameserver <ip_add>
options attempts:2
options timeout:1
 
Old 11-17-2016, 11:52 AM   #12
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
What about /etc/sysconfig/network-scripts/ifcfg-bond0 ?

Also - what all do you have in the /etc/sysconfig/network-scripts/ directory?

Last edited by szboardstretcher; 11-17-2016 at 11:53 AM.
 
Old 11-17-2016, 12:18 PM   #13
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
/etc/sysconfig/network-scripts/ifcfg-bond0


DEVICE="bond0"
ONBOOT="yes"
USERCTL="no"
NETMASK="<ip_add>"
IPADDR="<ip_add>"
GATEWAY="<ip_add>"
BOOTPROTO="none"
BONDING_OPTS="mode=balance-alb downdelay=xxxx updelay=xxxx miimon=xxx"
MTU="xxxx"


under /etc/sysconfig/network-scripts/ directory

have some files with "ifcfg-eth0" to 11 + some files with "ifdown" + "ifup" and so on...
 
Old 11-17-2016, 01:59 PM   #14
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
is there any file i need to modify or run any code to enable internet...? please advise...
 
Old 11-17-2016, 02:14 PM   #15
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Sufficient information was provided in post #10, including link to the RH documentation. We do not know how your box is wired to the net, you have more than one NIC. This obviously is not a home setup, so why don't you call your IT technician and stop tinkering with it by yourself.
 
  


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
monitor internet connectivity sumeet inani Linux - Newbie 1 05-14-2012 03:40 AM
Internet connectivity problem ngmix Linux - Newbie 6 08-19-2008 04:12 PM
Sharing internet connectivity cidkato Linux - Wireless Networking 7 01-01-2005 07:38 PM
No Internet Connectivity laltupi Linux - Networking 1 07-19-2004 11:34 AM
Internet Connectivity is a NO-GO Help Please!! ClericPreston Linux - Newbie 1 06-04-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration