Virtual IP on CentOS launched with Azure's Virtual Machines is not accessible from other servers.

Asked 2 years ago, Updated 2 years ago, 45 views

Thank you for your help.

I started two CentOS 7s on Azure and gave one of them a virtual IP using the command below.

 ip addadd$_IP_$/24 deveth0 label eth0:1

On ifconfig, eth0:1 is given an IP and ping itself, but
I don't get pings from other servers.

サブ It is within the subnet range.
他 Other servers will ping eth0.

Is it a specification that virtual IP cannot be given?Please let me know if you know.

centos azure

2022-09-29 22:40

1 Answers

If you want to give more than one IP address to the OS side, please also give the network interface on the Azure side an IP address.

Note:
https://docs.microsoft.com/ja-jp/azure/virtual-network/virtual-network-multiple-ip-addresses-portal

Azure's virtual network can only recognize addresses given to the Azure network interface.If you give an IP address only to the OS side, the virtual network does not know that the IP address exists, so it does not forward packets destined for this IP address.As a result, the ping to the IP address configured only on the OS side fails.


2022-09-29 22:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.