V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
janwen

aws ec2 内网怎么互相访问?

  •  
  •   janwen · May 3, 2014 · 11627 views
    This topic created in 4376 days ago, the information mentioned may be changed or developed.
    2个ec2免费实例,一台web server一台mongodb,web server怎么用private ip来访问mongodb啊?不要告诉我用神马VPC,看了半天头都大了。
    11 replies    2016-03-10 14:37:23 +08:00
    cevincheung
        1
    cevincheung  
       May 3, 2014
    内网ip能ping通吗首先?
    janwen
        2
    janwen  
    OP
       May 3, 2014
    janwen
        3
    janwen  
    OP
       May 3, 2014
    @cevincheung 通过dns,ip都不能ping通
    cevincheung
        4
    cevincheung  
       May 3, 2014
    @janwen 看看Security Groups设置,还不行就通过设置Router试试。
    wdlth
        5
    wdlth  
       May 3, 2014
    VPC貌似是对外用的,放宽网络安全访问的规则试试。
    solf
        6
    solf  
       May 3, 2014
    security groups里面将各自的security group加进去,访问用aws提供的dns不要用elastic ip
    yangxin0
        7
    yangxin0  
       May 3, 2014
    在安全策略里面把相应端口打开就好了。
    janwen
        8
    janwen  
    OP
       May 4, 2014
    @cevincheung security group开放了所有ip,所有端口
    janwen
        9
    janwen  
    OP
       May 4, 2014
    大家可能没有理解我的意思,这2个实例都是免费的,也就是说这2个实例在不同账号下注册的。不是同一个账号2个实例
    cevincheung
        10
    cevincheung  
       May 4, 2014
    @janwen 无法访问,非同一router。相互隔绝的。
    DotKu
        11
    DotKu  
       Mar 10, 2016
    @janwen 很聪明的办法!那么可以通过内网来互通数据了?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3910 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 00:10 · PVG 08:10 · LAX 17:10 · JFK 20:10
    ♥ Do have faith in what you're doing.