+ -
当前位置:首页 → 问答吧 → debian6 ping 不通局域网

debian6 ping 不通局域网

时间:2011-10-01

来源:互联网

请问下我使用的是无线网络 (debian6), ip为192.168.1.105,我的有线网卡是没有接的eth0,但我用ping命令总是From 172.16.200.34 icmp_seq=1 Destination Host Unreachable 这是eth0的ip,导致我连局域网都ping不同,

作者: qq978304139   发布时间: 2011-10-01

Open the interfaces file in an editor:
sudo vim /etc/network/interfaces
This is an example of how my file looked before I modified it. Yours will be different:
auto lo
iface lo inet loopback
iface eth2 inet static
address 192.168.0.44
netmask 255.255.255.0
gateway 192.168.0.1
auto eth2
And here’s the same file again, but I’ve added #’s at the beginning of each line so that they are ignored:
#auto lo
#iface lo inet loopback
#iface eth2 inet static
#address 192.168.0.44
#netmask 255.255.255.0
#gateway 192.168.0.1
#auto eth2
In order for the changes to take effect, we need to restart the network manager and the applet by running each of these in the command line:
sudo /etc/init.d/networking restart
And now restart the network manager applet:
pkill nm-applet
nm-applet
You should now be able to manage the network connection from within the network manager applet.

gksudo gedit /etc/NetworkManager/nm-system-settings.conf
and change
Quote:
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false
to
Quote:
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true
then
Code:
killall nm-applet
nm-applet &
disown

作者: qq978304139   发布时间: 2011-10-02

相关阅读 更多