Got it

ECS is not able to get the IP address - OVS (VLAN)

Latest reply: Feb 3, 2022 11:05:12 1323 11 19 0 1

After the VM has ben created, log in to the VM using VNC and check if the corresponding IP address is obtained from the NIC of the VM.

1. Log in to the ECS via VNC.

Run the commands 'ifconfig' or 'ifconfig -a' to check the up NICs and Down NICs . Please try to run the commands 'ifup ethX' or 'ifconfig ethX up' to up the NICs. If the ECS is Windows, please restart the NICs.


2. Check if there are other DHCP servers on the enviroment. If yes, please shutdown the other DHCP servers. It will affect the 'Neutron' providing the DHCP services for ECS.

3. Confirm the ECS network type.

a) Get the ECS ID from the portal.

b) Log in to the CLI to query the port ID from the ECS ID.

Commands: nova interface-list <ECS_id>


c) Query the type of port.


4. Log in to the controller node (please refer to the product document to get the detailed steps).

a) Check if there are subnets belonging to this ECS network.

Run the commands to check the net-id : nova interface-list <ecs_id>


b) Check if the subnets is null.

Run the command: neutron net-show <net_id>


If it is null, please create subnets first.

c) If it isn't null, please check if subnets is enabled on the DHCP service.

Run the command: neutron subnet-show <subnets_id>


If it is false, please enable the DHCP via the commands.

Run the command: neutron subnet-update --enable-dhcp <subnets_id>

d) Check if the neutron-dhcp-agent is normal (active).

Run the commands: cps template-instance-list --service neutron neutron-dhcp-agent.


If it is faulty, please restart the neutron service.

Run the commands:

special host : cps host-template-instance-operate --action stop --service neutron neutron-dhcp-agent  --host host_id  

special host : cps host-template-instance-operate --action start --service neutron neutron-dhcp-agent  --host host_id

all hosts: cps host-template-instance-operate --action stop --service neutron neutron-dhcp-agent 

all hosts: cps host-template-instance-operate --action start --service neutron neutron-dhcp-agent 

5. Try to post the DHCP quest manually.

Run the commands on the linux OS: 'dhcpcd eth0' or 'dhclient eth0'. The service network restarts and reboots.

If still not able to get the IP, try assigning the IP to the ECS manually. (Note: this IP must come from the result of the command 'nova interface-list <vm_id >').

6. Find the DHCP port IP of the ECS network.

Run the commands: cps host-template-instance-operate --action stop --service neutron neutron-dhcp-agent



And then ping the port IP to check if it is reachable.

If the above steps can't find the root cause, I suggest to ask your local TAC for help.

  • x
  • convention:

MVE Created Oct 30, 2021 13:08:39

Good share thanks
View more
  • x
  • convention:

smileymind Created Mar 18, 2022 12:33:33 (0) (0)
Created Oct 31, 2021 03:59:50

A good troubleshooting walkthrough.
View more
  • x
  • convention:

user_4400653 Created Mar 18, 2022 12:31:30 (0) (0)
Created Jan 3, 2022 21:07:16

View more
  • x
  • convention:

Sothea_nh Created Mar 18, 2022 12:34:13 (0) (0)
Created Jan 4, 2022 05:12:22

Good share
View more
  • x
  • convention:

Navin_kay Created Mar 18, 2022 12:34:59 (0) (0)
Created Jan 13, 2022 04:42:10

View more
  • x
  • convention:

Created Jan 19, 2022 10:59:45

Thanks for sharing this useful info.
View more
  • x
  • convention:

Created Feb 3, 2022 11:05:12

Good one.
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.