Downloading Packages via Red Hat Official Network is Slow in mainland China

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux all versions
  • Systems which were registered by subscription-manager to Customer Portal

Issue

Resolution

  • Confirm that your firewall or web proxy configuration is not implementing IP address whitelisting of Red Hat CDN requests. This solution is not compatible with the whitelisting of the CDN CIDR lists.
  • Red Hat Global has enabled a China specific CDN server. To speed up the command line package downloading, switch to the China specific CDN server and clear the cache by running the following the command.
# subscription-manager config --rhsm.baseurl=https://china.cdn.redhat.com
# subscription-manager refresh
# yum clean all
# yum makecache

Root Cause

  • The default content base URL specified in /etc/rhsm/rhsm.confis https://cdn.redhat.com. The IP addresses mapped to the this URL are all outside of mainland China and it could take long time to visit. Red Hat Global has enabled a China specific CDN server to improve downloading speed.
SBR
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.