如何通过站点到站点 VPN 访问对等 VPC 中的资源?

0

【以下的问题经过翻译处理】 您好,我在VPC A和VPC B之间设置了对等连接。我还设置了到 VPC A的站点到站点 的VPN 连接。请问我如何通过这个站点到站点的 VPN 连接访问 VPC B 中的资源?

profile picture
EXPERT
demandé il y a 5 mois35 vues
1 réponse
0

【以下的回答经过翻译处理】 简短的回答是这样行不通,因为VPC对等互连不支持中转路由。可传递路由的规则是流量必须在该VPC中的网络接口上发起或终止。这就是VPC对等互连不支持路由中转的原因 – 因为无网络接口参与流量,所以没有路由表。这也是为什么 中转网关(Transit Gateway )具有可中转能力的原因,因为它在 VPC 中的挂载点使用网络接口。

通常的方法是让您的站点到站点 VPN 具有到每个 VPC 的 VIF,或者更好的方法是,使用中转网关。

另一种解决方法是使用代理实例将网络接口放入您要通过的 VPC 中,参看在中转网关服务出现之前常使用的标准“Transit VPC”策略的例子。

profile picture
EXPERT
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions