简体   繁体   中英

How to get network access AWS VPC?

I have a non-private AWS VPC built on a Centos 7 image, however I am unable to to a yum update. Can you help me troubleshoot how I can get connection to the outside.network to do updates and downloads?

here what I have to see so far:

command:  echo $https_proxy
http://172.2x.xx.xx:8080


command: $ sudo yum -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was
14: curl#7 - "Failed to connect to 2620:52:3:1:dead:beef:cafe:fed6: Network is unreachable"
 * base: centos.host-engine.com
 * epel: fedora.mirrors.pair.com
 * extras: linux.cc.lehigh.edu
 * updates: centos.mirrors.tds.net
http://centos.s.uw.edu/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2607:4000:200:4a::38: Network is unreachable"
Trying other mirror.
http://centos.host-engine.com/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2001:49f0:d064:5::2: Network is unreachable"
Trying other mirror.
http://mirror.centos.iad1.serverforge.org/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.centos.iad1.serverforge.org/7.7.1908/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://mirror.mobap.edu/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to mirror.mobap.edu:80; Operation now in progress"
Trying other mirror.

Private VPC does not have inte.net access.

To enable inte.net access need to setup inte.net gateway and make one of your su.nets public. Instances in that su.net will be able to access inte.net and be accessible from the inte.net.

If your instances are in a private su.net, and you want your instances to have inte.net access, but not be accessible form inte.net, then have to setup NAT gateway or NAT instance .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM