Not able to access internet with proxy at virtual centos 7

Issues related to applications and software problems
pragyagupta
Posts: 10
Joined: 2018/03/06 06:53:48

Re: Not able to access internet with proxy at virtual centos 7

Post by pragyagupta » 2018/03/14 07:05:03

I ran command and getting an error again please help me out from this. as I am frustrated with that.
curl https://www.centos.org
curl: (7) Failed to connect to 2a01:788:a002:0:225:90ff:fe33:f34c: Network is unreachable.
-------------------------------------------------------------------------------------------------------------
And getting same error while network restarting

[root@localhost ~]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
-------------------------------------------------------------------
[root@localhost ~]# vi /var/log/messages

Mar 14 12:31:12 localhost dhclient[5672]: have been made to the base software release in order to make
Mar 14 12:31:12 localhost dhclient[5672]: it work better with this distribution.
Mar 14 12:31:12 localhost dhclient[5672]:
Mar 14 12:31:12 localhost dhclient[5672]: Please report for this software via the CentOS Bugs Database:
Mar 14 12:31:12 localhost dhclient[5672]: http://bugs.centos.org/
Mar 14 12:31:12 localhost dhclient[5672]:
Mar 14 12:31:12 localhost dhclient[5672]: exiting.
Mar 14 12:31:12 localhost network: failed.
Mar 14 12:31:12 localhost network: WARN : [/etc/sysconfig/network-scripts/ifup-eth] Unable to obtain IPv4 DHCP address enp0s3.
Mar 14 12:31:12 localhost /etc/sysconfig/network-scripts/ifup-eth: Unable to obtain IPv4 DHCP address enp0s3.
Mar 14 12:31:12 localhost network: RTNETLINK answers: File exists
Mar 14 12:31:13 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 1060ms.
Mar 14 12:31:14 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 2080ms.
Mar 14 12:31:16 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 4340ms.
Mar 14 12:31:21 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 8780ms.
Mar 14 12:31:29 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 16810ms.
Mar 14 12:31:46 localhost dhclient[5694]: XMT: Solicit on enp0s3, interval 26910ms.
Mar 14 12:32:13 localhost dhclient[5694]: Max retransmission duration exceeded.
Mar 14 12:32:13 localhost network: Determining IPv6 information for enp0s3... failed.
Mar 14 12:32:13 localhost network: [FAILED]
Mar 14 12:32:13 localhost network: Bringing up interface enp0s3.old:
Mar 14 12:32:13 localhost dhclient[5748]: dhclient(986) is already running - exiting.
Mar 14 12:32:13 localhost network: Determining IP information for enp0s3...dhclient(986) is already running - exiting.
Mar 14 12:32:13 localhost network: This version of ISC DHCP is based on the release available
Mar 14 12:32:13 localhost network: on ftp.isc.org. Features have been added and other changes
Mar 14 12:32:13 localhost network: have been made to the base software release in order to make
Mar 14 12:32:13 localhost network: it work better with this distribution.
Mar 14 12:32:13 localhost network: Please report for this software via the CentOS Bugs Database:
Mar 14 12:32:13 localhost network: http://bugs.centos.org/
Mar 14 12:32:13 localhost network: exiting.
Mar 14 12:32:13 localhost dhclient[5748]:
Mar 14 12:32:13 localhost dhclient[5748]: This version of ISC DHCP is based on the release available
Mar 14 12:32:13 localhost dhclient[5748]: on ftp.isc.org. Features have been added and other changes
Mar 14 12:32:13 localhost dhclient[5748]: have been made to the base software release in order to make
Mar 14 12:32:13 localhost dhclient[5748]: it work better with this distribution.
Mar 14 12:32:13 localhost dhclient[5748]:
Mar 14 12:32:13 localhost dhclient[5748]: Please report for this software via the CentOS Bugs Database:
Mar 14 12:32:13 localhost dhclient[5748]: http://bugs.centos.org/
Mar 14 12:32:13 localhost dhclient[5748]:
Mar 14 12:32:13 localhost dhclient[5748]: exiting.
Mar 14 12:32:13 localhost network: failed.
Mar 14 12:32:13 localhost network: [FAILED]

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Not able to access internet with proxy at virtual centos 7

Post by TrevorH » 2018/03/14 15:39:45

Mar 14 12:31:12 localhost network: WARN : [/etc/sysconfig/network-scripts/ifup-eth] Unable to obtain IPv4 DHCP address enp0s3.
Mar 14 12:32:13 localhost network: Bringing up interface enp0s3.old:
Fix your networking.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pragyagupta
Posts: 10
Joined: 2018/03/06 06:53:48

Re: Not able to access internet with proxy at virtual centos 7

Post by pragyagupta » 2018/03/29 03:27:54

Network is working fine but now I am getting this an error
please help me out.

yum repolist

Loaded plugins: fastestmirror, langpacks
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_6 4&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7 ... o=os&infra =stock: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Not able to access internet with proxy at virtual centos 7

Post by hunter86_bg » 2018/03/29 05:01:42

What is the output of

Code: Select all

curl http://centos.org |head -n 5 && curl https://centos.org | head -n 5

pragyagupta
Posts: 10
Joined: 2018/03/06 06:53:48

Re: Not able to access internet with proxy at virtual centos 7

Post by pragyagupta » 2018/04/03 04:33:37

Please find output of that


[root@localhost ~]# curl http://centos.org |head -n 5 && curl https://centos.org | head -n 5
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:41 --:--:-- 0
curl: (56) Recv failure: Connection reset by peer
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:41 --:--:-- 0

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Not able to access internet with proxy at virtual centos 7

Post by TrevorH » 2018/04/03 09:18:15

curl: (56) Recv failure: Connection reset by peer
Your network is not "fine".
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply