Virtual machine only IPV6, no IPv4

Source: Internet
Author: User

1. Modify the configuration file

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0bootproto=Nonehwaddr=00:0C:29:20:CB:81ipv6init=Yesnm_controlled=yesonboot=yestype=ethernet#uuid="1ea05a64-a9b8-4093-a2c2-de7a9fa2add0"ipaddr=  10.10.1.19netmask=255.255.  252.0dns2=1.2.  4.8gateway=10.10.  0.1dns1=8.8.  8.8userctl=no                

Service Network restart

Error One:

Error:no suitable device Found:no device found for connection "System eth0"

Workaround:

1. Delete the/etc/udev/rules.d/70-persistent-net.rules file and restart the system.

2, if the above does not work, then to see the Ifcfg-eth0 file in the hwaddr is correct, changed to the correct hwaddr "Ifconfig view the correct hwaddr".

I was using these two methods to solve problems online.

Error Two:

Determining if IP address is already on use for device eth0

Solution:

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Modify method

Add arpcheck=no to the NIC configuration file

Virtual machine only IPV6, no IPv4

Related Article

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.