Virtual Machine debian network failure

Source: Internet
Author: User
Virtual Machine debian network failure-Linux Release Technology-Debian information, the following is a detailed description. I am too lazy to install linux. I copied the linux hard drive files made by virtual machines on other computers to my own computer, but I found that I could not connect to the Internet.

Debian :~ # Ifconfig
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 66 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 66 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 5104 (4.9 KiB) TX bytes: 5104 (4.9 KiB)

Without the eth0 interface, view/etc/network/interfaces

Debian :~ # Vim/etc/network/interfaces
# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).
# The loopback network interface
Auto lo
Iface lo inet loopback
# The primary network interface
Allow-hotplug eth0
Iface eth0 inet static
Address 192.168.0.190
Netmask 255.255.255.0
Network 192.168.0.0
Broadcast 192.168.0.255
Gateway 192.168.0.1
# Dns-* options are implemented by the resolvconf package, if installed
Dns-nameservers 61.128.114.20.61.128.114.166

If eth0 is configured, you can view all interfaces by adding ifconfig-a and-a again. You can only view the active interfaces without adding parameters.

Eth1 is found and eth0 is gone. This should be because my virtual machine recognizes the network card as eth1, and the original Virtual Machine regards the network card as eth0, resulting in no eth1 configuration and network connection failure,
So modify/etc/network/interfaces to change eth1 to eth1, ifup eth1, or not, or/etc/init. d/networking restart. reboot, okay.
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.