[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"
源標識 源名稱
因為之前修改了網卡的文件,之前的網卡配置信息如下
[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.1
修改之后的就變成
[root@compute1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
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
:wq
yum clean all ;yum repolist
Recv failure: Connection reset by peer" 這個問題網上的解決辦法是關掉selinux跟firewalld,但是我關掉之后還是不行,所以最后還是修改文件變好了