通过ssh从多个ip public访问vm Ubuntu azure [英] Access the vm Ubuntu azure from multiple ip public via ssh

查看:86
本文介绍了通过ssh从多个ip public访问vm Ubuntu azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个新的linux vm:ubuntu在azure模型是d4_v3它有可能多个nic我的问题是创建2个公共ip在相同的vm

I created a new linux vm :Ubuntu in azure The model is d4_v3 it has the possibility multiple nic My issue is to create 2 public ip in the same vm


我已经创建了2张nic卡,我有2个公共ips,所以我想通过两个公共ips访问vm通过ssh,第一个ip正在为ssh工作,但第二个不是,我检查了ifconfig并找到了eth0和eth1?

I already create 2 nic cards and i had 2 public ips, so i want to access to the vm via the two public ips via ssh, the first ip is working for ssh but the second is not, i checked the ifconfig and found eth0 and eth1?


我怎样才能通过这两个访问vm ip public?谢谢

How can i get that the vm is accessible via the two ip public? Thanks indeed

推荐答案

 

Hi, 

创建多网卡后,您还需要在来宾操作系统中配置相同的网卡。以下文档解释了:  https://docs.microsoft.com/en-us/azure/virtual-machines/linux/multiple-nics#configure-guest-os-for-multiple-nics

Once you create Multi-NIC, you need to configure the same in the Guest OS as well. Here is the doc which explains that: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/multiple-nics#configure-guest-os-for-multiple-nics

问候, 

Msrini


这篇关于通过ssh从多个ip public访问vm Ubuntu azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆