rhel7注册失败 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记录

echo "209.132.183.108 subscription.rhsm.redhat.com" >>/etc/hosts

重新运行注册,bigo注册成功。

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值