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 |
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.
|
 |
|
11-17-2016, 08:30 AM
|
#1
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Rep: 
|
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...
|
|
|
11-17-2016, 08:40 AM
|
#2
|
Member
Registered: May 2011
Location: Texas
Distribution: debian, ubuntu, centos stream
Posts: 849
|
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 08:42 AM.
|
|
|
11-17-2016, 09:05 AM
|
#3
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
11-17-2016, 09:35 AM
|
#4
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
11-17-2016, 09:57 AM
|
#5
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
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”
|
|
|
11-17-2016, 09:59 AM
|
#6
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
You are not connected to the internet. Try these commands to help figure out why:
|
|
1 members found this post helpful.
|
11-17-2016, 10:09 AM
|
#7
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
11-17-2016, 10:13 AM
|
#8
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
11-17-2016, 10:21 AM
|
#9
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
any quick steps to configure ip address on Linux rhel6?
|
|
|
11-17-2016, 10:36 AM
|
#10
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
11-17-2016, 10:50 AM
|
#11
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
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:AD  9: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
|
|
|
11-17-2016, 10:52 AM
|
#12
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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 10:53 AM.
|
|
|
11-17-2016, 11:18 AM
|
#13
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
/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...
|
|
|
11-17-2016, 12:59 PM
|
#14
|
LQ Newbie
Registered: Nov 2016
Posts: 13
Original Poster
Rep: 
|
is there any file i need to modify or run any code to enable internet...? please advise...
|
|
|
11-17-2016, 01:14 PM
|
#15
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 03:45 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
|
|