運行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注冊成功。

