System: kali Linux 2.0
Nic: TP - LINK722N (installed)
Root @ kali: ~ # cat/etc/resolv. Conf
# Generated by NetworkManager
Nameserver 192.168.0.1
Root @ kali: ~ # cat/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
Auto eth0 iface eth0 inet DHCP
Root @ kali: ~ # ping www.baidu.com
Ping: unknown host www.baidu.com
Root @ kali: ~ # service networking restart
[...]. Running the/etc/init. D/networking restart is deprecated because it may not r [warnble some interfaces... (warning).
[...]. Reconfiguring network interfaces... The/etc/network/interfaces: 10: interface eth0 declared allow - auto twice
Restart the service errors show
Ifdown: couldn 't read interfaces file "/etc/network/interfaces"
The/etc/network/interfaces: 10: interface eth0 declared allow - auto twice
Ifup: couldn 't read interfaces file "/etc/network/interfaces"
Failed.
Is there a problem, what place is the great god told
Is double card, a built-in a USB, built-in network adapter configuration notebook XP, the virtual machine to separate connection USB card, network card is installed inside a virtual machine, but it is also can see the upper right corner of the signal, but is not Internet connection, online etc.!!!!!!!!!!!!!!!!!!! The great spirit genuflect is begged
CodePudding user response:
You are direct bridge or a wifi?CodePudding user response:
Configuration file to write the wrongauto eth0 iface eth0 inet DHCP
Change
auto eth0
Iface eth0 inet DHCP
CodePudding user response:
Depend, dig the grave interesting?