问题描述
我使用centos7映像创建了一个ec2实例,并附加了带有专用ip的附加网络接口。我现在有2个接口eth0和eth1。现在,我想使用新的接口private ip从同一子网中的另一个实例进行SSH。我怎样才能做到这一点? (所有接口和实例都在同一子网中,并且使用相同的安全组。)
VPC-172.31.0.0/16
subnet-172.31.2.0/24
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-693.11.6.el7.x86_64
Architecture: x86-64
eth0: flags=4163<UP,broADCAST,RUNNING,MULTICAST> mtu 9001
inet 172.31.2.234 netmask 255.255.255.0 broadcast 172.31.2.255
inet6 fe80::862:34ff:fee4:20e2 prefixlen 64 scopeid 0x20<link>
ether 0a:62:34:e4:20:e2 txqueuelen 1000 (Ethernet)
RX packets 379 bytes 37642 (36.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 427 bytes 46789 (45.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 12 bytes 920 (920.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 920 (920.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)