linux更新到9.04后 系统管理中的“网络”没了

来源:百度知道 编辑:UC知道 时间:2024/06/25 06:27:56
另外 关于设置ip 接路由我也不太会
纯新手 谢谢各位帮忙
能不能先帮我解决题目,网络没了,Network没了,在系统管理中找不到了

你到底是接路由还是拨号?

1.路由:
sudo dpkg --get-selections|grep dhcp
dhcp3-client这个包要有,自动获取ip用,没有你只能自己设置固定ip了

修改网络配置文件:
sudo gedit /etc/network/interfaces

我的配置(lo是回环接口,eth0是有线以太网卡,wlan0是我的无线网卡):
stesen@debian:~$ 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

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.151
gateway 192.168.1.1
netmask 255.255.255.0

allow-hotplug wlan0
iface wlan0 inet dhcp

如果设置自动获取ip的话应该是:

# 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

allow-hot