Solve the problem that centos7 cannot be used when multiple NICs are added to vm11.

Source: Internet
Author: User
Problem Description: after multiple NICs are added to the centos VM in vm11, the added Nic cannot be used normally. The solution is as follows: 1. you must add a Nic when the instance is shut down. You cannot set the Nic you want to add when the VM is running. delete the NIC and try again. & Nbs

Problem Description: after multiple NICs are added to the centos VM in vm11, the added Nic cannot be used normally.

 

The solution is as follows:

 

1. you must add a Nic when the instance is shut down. You cannot set the Nic you want to add when the VM is running. delete the NIC and try again.

 

2. view and record the uuid of the new Nic after the instance is started

# Nmcli conn

 

Note that the nic name here is different from the result of using ifconfig or ip add.

 

 

 

3. copy and edit the Nic configuration file:

# Cd/etc/sysconfig/network-scripts/

# Cp ifcfg-eno16777736 ifcfg-eno33554984

# Vim ifcfg-eno33554984.

UUID = 4d04259c-3ae0-49ac-a440-152803673a77

DEVICE =

NAME =

 

4. restart the service to take effect.

# Systemctl restart network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.