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.
|
 |
01-28-2014, 10:35 AM
|
#1
|
LQ Newbie
Registered: Jan 2014
Posts: 6
Rep: 
|
Internet not working in terminal
I am connected to network using a static IP, and a gateway.. I can access internet through Firefox by setting the proxy address, username and password in Advanced panel of the Firefox Options. But I cant access internet through any application in terminal. Neither does ping work, nor yum..! I have searched over internet, and got some results related to "resolv.conf" file, and "yum.conf" file but to no avail.. I am getting the following error in yum
Code:
[root]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot find a valid baseurl for repo: base
If someone could guide me in right direction...
Thanks
|
|
|
01-28-2014, 10:38 AM
|
#2
|
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,549
|
|
|
1 members found this post helpful.
|
01-28-2014, 04:08 PM
|
#3
|
Member
Registered: Jan 2013
Distribution: Debian
Posts: 166
Rep:
|
Quote:
Originally Posted by vviivveekkk
I am connected to network using a static IP, and a gateway.. I can access internet through Firefox by setting the proxy address, username and password in Advanced panel of the Firefox Options. But I cant access internet through any application in terminal. Neither does ping work, nor yum..! I have searched over internet, and got some results related to "resolv.conf" file, and "yum.conf" file but to no avail.. I am getting the following error in yum
Code:
[root]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot find a valid baseurl for repo: base
If someone could guide me in right direction...
Thanks
|
If you have a gateway, then by definition you probably have some kind of direct access to the Internet (that's the purpose of a gateway). Do you know, or could you find out, exactly what traffic you are allowed to send out through the firewall? That would make providing a helpful answer easier.
As far as routing your HTTP traffic through a http proxy, I believe you are looking for something like this:
http://yonitg.com/proxy-settings-for-the-command-line/
There are SOCKS proxies (e.g., TOR systems) that can handle all protocols, but I'm not sure what is available on your network. There are also some ways to tunnel through firewalls, if you are in a very restrictive situation...
|
|
1 members found this post helpful.
|
01-28-2014, 06:15 PM
|
#4
|
Member
Registered: Oct 2005
Location: Stockholm, Sweden
Distribution: Ubuntu
Posts: 78
Rep:
|
ryn the following command and paste in the output
ping mirrorlist.centos.org
|
|
|
01-30-2014, 04:39 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,264
|
Depending on the distro you might get some proxies to work globally or near globally with some system wide proxy setting. If you have a proxy.pac then forget about most command line apps unless you discover the proxy.pac rules.
If it doesn't work with global then you can sometimes edit various config files to mark the correct way to connect. We'd have to know your distro and maybe more about this topology. The admin might have blocked ports or even a application firewall is in the path.
|
|
|
02-13-2014, 01:39 PM
|
#6
|
LQ Newbie
Registered: Jan 2014
Posts: 6
Original Poster
Rep: 
|
It started working.. Thanks
Quote:
Originally Posted by TenTenths
|
I followed the link and made changes to the /etc/yum.conf and ~/.bash_profile, and the internet started working. Thanks for help.
|
|
|
All times are GMT -5. The time now is 12:14 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
|
|