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.


173307e316ir3o1o1x180p.png?image.png


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>


173337edfetfddi1ge2fed.png?image.png


c) Query the type of port.


173447dgrwg3tfr7sr6nq6.png?image.png


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>


174057xyh794dhal7ia4r9.png?image.png


b) Check if the subnets is null.


Run the command: neutron net-show <net_id>


174246huusjsui1j9f4au1.png?image.png


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>


174518z9rqj97qr5nmfw3f.png?image.png


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.


175254h5l2hajjqghchc8z.png?image.png


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

 

181259whi0h0h0lzo4n3ej.png?image.png


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:

Unicef
MVE Created Oct 30, 2021 13:08:39

Good share thanks
View more
  • x
  • convention:

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

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

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

GOOD
View more
  • x
  • convention:

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

Good share
View more
  • x
  • convention:

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

thanks
View more
  • x
  • convention:

user_4358465
Created Jan 19, 2022 10:59:45

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

hanhcao
Created Feb 3, 2022 11:05:12

Good one.
View more
  • x
  • convention:

Comment

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

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

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
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.