在Linux虚拟机中添加多个固定ip地址
1、右键点击设置

2、点击添加,再点击网络适配器,最后点击完成。

3、选择完成后的网络适配器,选择仅主机模式。

4、用roott身份登录,用nmtui进行设置

5、用回车键进入编辑连接,编辑新添加的ens35或ens37

6、使“自动”改为“手动”,“隐藏”改为“显示”。

7、设置自己想要的固定ip地址(别忘了ip地址后面加上/24)最后回车确定。

回车返回。

8、回车启用连接

9、选中刚刚的设置的ens35,回车启用即可(前面有*表示启用)。

10、ping一下看是否能连接。

11、最后输入systemctl restart network,使其能ssh远程连接。
