環境:vmware10.0.4
系統: kali linux 2.0
網卡:TP-LINK722N(已安裝成功)
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 /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces.../etc/network/interfaces:10: interface eth0 declared allow-auto twice
重啟服務 錯誤顯示
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:10: interface eth0 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"
failed.
請問那位大神告訴是什么地方有問題,
是雙網卡,一臺內置一臺USB,內置網卡配置筆記本XP,虛擬機想獨立連接USB網卡,網卡啟動已經安裝在虛擬機內了,但是就是也可以看見右上角信號格 但是就是連接不上網,在線等!!!!!!!跪求大神
uj5u.com熱心網友回復:
你是直接橋接的還是用wifi?uj5u.com熱心網友回復:
組態檔寫錯了auto eth0 iface eth0 inet dhcp
改成
auto eth0
iface eth0 inet dhcp
uj5u.com熱心網友回復:
靠,挖墳有意思嗎?轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/122978.html
標籤:網絡協議與配置
上一篇:問一個網路問題
