rhel7, redhat 8注冊失敗 Registering to: subscription.rhsm.redhat.com:443/subscription Network error


運行rhel7注冊出錯,連不上注冊服務器,無法解析該域名,但是我的虛擬機是可以上網的,能ping能百度。 

[root@foundation0 ~]# subscription-manager register --username=username --password=yourpassword --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
[root@foundation0 ~]# ping subscription.rhsm.redhat.com
ping: subscription.rhsm.redhat.com: Name or service not known
[root@foundation0 ~]# ping www.baidu.com
PING www.a.shifen.com (163.177.151.109) 56(84) bytes of data.
64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=1 ttl=50 time=4.94 ms
64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=2 ttl=50 time=12.9 ms
64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=3 ttl=50 time=5.20 ms

 

切到我的物理機,ping下subscription.rhsm.redhat.com,可以ping通。

Microsoft Windows [版本 10.0.18970.1005]
(c) 2019 Microsoft Corporation。保留所有權利。
 
C:\Users\huangshumao>ping subscription.rhsm.redhat.com
 
正在 Ping subscription.rhsm.redhat.com [209.132.183.108] 具有 32 字節的數據:
來自 209.132.183.108 的回復: 字節=32 時間=195ms TTL=235
來自 209.132.183.108 的回復: 字節=32 時間=193ms TTL=235
來自 209.132.183.108 的回復: 字節=32 時間=193ms TTL=235
來自 209.132.183.108 的回復: 字節=32 時間=196ms TTL=235
 
209.132.183.108 的 Ping 統計信息:
    數據包: 已發送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
    最短 = 193ms,最長 = 196ms,平均 = 194ms

  

 

 

回到虛擬機,添加host記錄

回到虛擬機,添加host記錄

重新運行注冊,bigo注冊成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM