大网数据广告活动
服务器运维问答

Hyper-V external IP address

· 52CE 我爱测

I am trying to apply an external IP address to my Virtual Host on CentOS, I have purchased a failover IP from my host and they have assigned me a Virtual MAC. I have created a static MAC on the Virtual Host with the MAC the host …

问题原文

原帖链接 · Nathan · CC BY-SA 3.0

I am trying to apply an external IP address to my Virtual Host on CentOS, I have purchased a failover IP from my host and they have assigned me a Virtual MAC. I have created a static MAC on the Virtual Host with the MAC the host provided.

I've added the secondary IP address to the vSwitch(External) now I have two IPv4 addresses assigned to the switch. I configure the correct IPv4 within CentOS but I still have no connectivity.

Am I doing this the right way? I want my Windows side of the server to host one of game servers and use CentOS to host a game panel, So I would like them to have two different IP addresses.

已采纳解答

原帖链接 · joeqwerty · CC BY-SA 3.0

First, let's get on the same page in regards to terminology: When you say you have a Virtual Host do you mean the virtual machine (the guest) running in Hyper-V? If so, please don't call it a Virtual Host as that makes it difficult to understand if you mean Hyper-V (the hypervisor host) or if you mean the virtual machine (the hypervisor guest).

Second, you don't assign ip addresses to your virtual switches, except in the case where you share the virtual switch with the management operating system (the Hyper-V host) for the purpose of using that ip address to connect to and manage the Hyper-V host. When you do this, Hyper-V creates a virtual network adapter to which you assign ip addressing information, again for connecting to and managing the Hyper-V host itself. This ip address isn't related to your virtual machines. You need to assign the ip addresses that you wish to use for the virtual machines in the operating system of the virtual machines.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-02-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。