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.