Installing Vmware causes Ubuntu network problems

Source: Internet
Author: User
After vmware was reinstalled today, the original Ubuntu7.10 file was used again and no network connection was found. Web @ Ubuntu8 :~ $ Ifconfigeth1Linkencap: EthernetHWaddr00: 0C: 29: ED: F3: C2inetaddr: 0 Bcast: 0 Mask: 0 Interrupt: 16 Baseaddress: 0x2000loLinkencap: LocalLo

After vmware was reinstalled today, the original Ubuntu7.10 file was used again and no network connection was found.

Web @ Ubuntu8 :~ $ Ifconfig
Eth1 Link encap: Ethernet HWaddr 00: 0C: 29: ED: F3: C2
Inet addr: 0 Bcast: 0 Mask: 0
Interrupt: 16 Base address: 0x2000

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: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B)

Sudo 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
Auto eth0
Iface eth0 inet dhcp
The old and new vmware NICs are different. Change eth0 to eth1 and restart the network.
Sudo/etc/init. d/networking restart
Everything is OK

By the way,/etc/network/interfaces
If eth is configured as a static IP address
(For example, 192.168.1.1) and specify a gateway (for example, 192.168.1.254:
Auth eth0
Iface eth0 inet staticaddress 192.168.1.1
Netmask 255.255.255.0
Gateway 192.168.1.254
If you manually specify an IP address and need to access the Internet, such as wget download, you also need to set DNS:
$ Sudo pico/etc/resolv. conf Add the configuration content: nameserver xxx. xxx. Save.

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.