centos7.4 yum安裝包出現網絡不可達跟Recv failure: Connection reset by peer" 這個問題

[root@controller ~]# yum repolist
已加載插件:fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
http://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2605:9000:401:102::2: 網絡不可達"
正在嘗試其它鏡像。
^Chttp://mirror.centos.org/centos/7/storage/x86_64/ceph-jewel/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
正在嘗試其它鏡像。
^Chttp://mirror.centos.org/centos/7/cloud/x86_64/openstack-pike/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
正在嘗試其它鏡像。
^Chttp://mirror.centos.org/centos/7/virt/x86_64/kvm-common/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
正在嘗試其它鏡像。
^CCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#56 - "Callback aborted"
^CCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was
14: curl#56 - "Callback aborted"
源標識 源名稱 linux

由於以前修改了網卡的文件,以前的網卡配置信息以下centos

[root@compute1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3網絡

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
NAME=enp0s3
UUID=28bff50c-ed5e-403d-9954-34021967359e
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.1.100
PREFIX=24
GATEWAY=192.168.1.1curl

修改以後的就變成url

[root@compute1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3spa

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=28bff50c-ed5e-403d-9954-34021967359e
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.1.100
PREFIX=24
GATEWAY=192.168.1.1插件

:wq3d

yum clean all ;yum repolist  xml

Recv failure: Connection reset by peer"  這個問題網上的解決辦法是關掉selinux跟firewalld,可是我關掉以後仍是不行,因此最後仍是修改文件變好了ip

相關文章
相關標籤/搜索