首页 > 其他分享 >关于AWS中VPC下的IGW-internet gateway的创建与说明

关于AWS中VPC下的IGW-internet gateway的创建与说明

时间:2023-05-26 12:34:04浏览次数:55  
标签:IGW address AWS your VPC internet gateway

关于AWS中VPC下有一个资源叫做 Internet gateways , 也就是我们常说的IGW

关于IGW,我们可以参考官网文档 Amazon VPC / User Guide 中有如下说明:

An internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between your VPC and the internet.

It supports IPv4 and IPv6 traffic. It does not cause availability risks or bandwidth constraints on your network traffic.

An internet gateway enables resources in your public subnets (such as EC2 instances) to connect to the internet if the resource has a public IPv4 address or an IPv6 address.

Similarly, resources on the internet can initiate a connection to resources in your subnet using the public IPv4 address or IPv6 address.

For example, an internet gateway enables you to connect to an EC2 instance in AWS using your local computer.

An internet gateway provides a target in your VPC route tables for internet-routable traffic.

For communication using IPv4, the internet gateway also performs network address translation (NAT).

For communication using IPv6, NAT is not needed because IPv6 addresses are public. For more information, see IP addresses and NAT.

There's no additional charge for creating an internet gateway.

开启 Enable internet access 步骤

To enable access to or from the internet for instances in a subnet in a VPC using an internet gateway, you must do the following.

  • Create an internet gateway and attach it to your VPC.

  • Add a route to your subnet's route table that directs internet-bound traffic to the internet gateway.

  • Ensure that instances in your subnet have a public IPv4 address or an IPv6 address.

  • Ensure that your network access control lists and security group rules allow the desired internet traffic to flow to and from your instance.

 

1、其中对于IGW在页面上的创建也很简单,只需要输入一个Name的Tag即可(必须项),但是可以修改,如下图所示:

2、IGW创建了,但要让IGW启作用,还需要将IGW互联网网关 Attach 到 指定的VPC才可以的

3、对Subnet子网的路由表中,添加路由(一般是默认路由)到IGW,这样的Subnet子网,也称为公有子网

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17434245.html

 

标签:IGW,address,AWS,your,VPC,internet,gateway
From: https://www.cnblogs.com/5201351/p/17434245.html

相关文章

  • 部署aws命令配置管理机以及部署eksctl管理eks
    AWS命令部署curl"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"-o"awscliv2.zip"unzipawscliv2.zipsudo./aws/installaws--versionawsconfigurecurl-Ohttps://s3.us-west-2.amazonaws.com/amazon-eks/1.26.2/2023-03-17/bin/linu......
  • 阿里云vpc下面部署自建k8s一些注意事项
    简介这几天接手了一个政府单位项目,所有的资源均为云资源,而且是阿里云vpc机器。在部署k8s的过程中发现我部署的k8s跨主机网段不通。折腾了我好几天最后发现问题是我在vpc里面是用的不是规定的cidr,我是用的是172.235.0.0修改到规定的cidr清空etcd删除网络重装k8s即可。解决阿......
  • AWS
    InstallJDKYounowneedadditionalstepstogetthefile,asOraclerequiresyoutoacceptthelicence:a)GotodownloadpageusingFirefox,clickaccepttermsb)UseExportCookiesadd-on,tosaveacookies.txtfilec)Uploadcookies.txttoyourinstanced)......
  • RocketChip RISC-V 内核+ 亚马逊 AWS EC2 F1实例=FireSim云基硬件/软件协同开发环境
    https://docs.fires.im/en/stable/filesim文档网络电子商务巨头亚马逊已经广泛的将多个赛灵思公司的基于16nmFinFET工艺的VirtexUltraScaleVU9PFPGA部署到亚马逊弹性计算云(EC2)F1实例上。EC2是亚马逊云计算的基本平台,由于网络通信量复杂且随时变化,用户对计算能力的需求也在随着......
  • 关于购买AWS-EC2-RI-Reserved Instances的一些说明以及折扣后Reserved Instance ID的
    关于在AWS上,如果一台EC2机器需要长时间使用、都是建议购买ReservedInstances,即一种预付费的方式,建议是选择AllUpfront,预付全部的费用,则可以享受到最大的折扣,在购买时需要主意如下几个选项只有当上面的选项与EC2的对应的属性相匹配时,才能免除其运行时产生的费用 另外每......
  • 创建AWS EC2实例
    创建AWSEC2实例前提条件创建EC2步骤前提条件需要自行到AWS官网先注册AWS账号。本文不叙述注册账号过程!创建EC2步骤根据自己的需求选择系统镜像AMI,如果仅需免费套餐可以勾选仅免费套餐,如下图所示。如果不仅限于免费套餐,点击社区AMI,你可以看到琳琅满目的系统镜像,可根据自己需求选择......
  • 参加AWS技术峰会的收获与思考
    7月31日,我参加了AWS技术峰会2019北京站的会议。从厦门到帝都,奔赴千里,只为一场技术盛宴,我想记录一些收获和思考,才能不负此行。大会议程全天,上午是主题演讲和行业解决方案展示,下午是技术分论坛。我们一直都知道,企业上云,首先要解决的是安全问题。在上午的主题演讲中,我们看到AWS将安全......
  • Gdiplus::Graphics::DrawString绘制文字
     Gdiplus::FontFamilyfontfm(_T("微软雅黑"));Gdiplus::Fontfont(&fontfm,24,Gdiplus::FontStyleBold,Gdiplus::UnitPixel);/*参数1:FontFamilyfamily字体,如我们常见的“宋体”、“仿宋”、“微软雅黑”、“Arial”等参数2:floatemSize......
  • AWS Transfer Family创建新用户
    第一步:在客户端机器先创建sshkey,登陆机器,然后输入命令:ssh-keygen找到publickey,稍后添加用户时需要。第二步:进入AWSConsole,IAM,创建Role具体json如下:{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service&......
  • AWS RDS, ElastiCache
    WhichRDS(NOTAurora)featurewhenuseddoesnotrequireyoutochangetheSQLconnectionstring?   ReadReplicasaddnewendpointswiththeirownDNSname.Weneedtochangeourapplicationtoreferencethemindividuallytobalancethereadload.●Multi......