First you need to create Virtual Switch.
- On the command line of the host server run IPconfig /ALL
- Note the name of the network adapter that contains the IP address of the server’s assigned IP.
- In Hyper-V manager create the a new virtual switch.
- Connection Type is External
- Select the adapter with the server’s IP
- Check Allow management OS to share this network adapter
This step only is required once for a hyper-v server. For all VMs, a virtual switch is required to connect the VM's virtual network adapters to the server's physical adapter.
Then select the VM that you wish to add the Failover IP. Use the Hyper-V Manager to change the settings of the VM (it needs to be shutdown).
- Expand the Network Adapter and click on Advanced Features.
- Change the MAC address to Static and enter the Virtual MAC address for Failover IP.
- Press OK to apply changes.
Mikrotik:
/ip address add address=xxx.xxx.xxx.xxx interface=ether1 network=yyy.yyy.yyy.254
/ip route add gateway=yyy.yyy.yyy.254
xxx.xxx.xxx.xxx - your Failover IP
yyy.yyy.yyy.254- Gateway address dedicated server
0 Комментарии