[学习]ubuntu 网卡指定 eth0及其它

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
shown
帖子: 8
注册时间: 2009-03-24 10:45

Re: [学习]ubuntu 8.10 网卡指定 eth0及其它

#31

帖子 shown » 2009-03-31 9:59

我被这个network-manager搞死了,一会能通,一会不通,自己写的配置有时生效,有时不生效。按楼主的方法过一遍,正常了! :em05 谢谢了!
udlc
帖子: 181
注册时间: 2008-08-07 18:47

Re: [学习]ubuntu 8.10 网卡指定 eth0及其它

#32

帖子 udlc » 2009-03-31 10:30

network-manager

用的很方便啊,有线,无线,VPN,TV宽带

已经不用pppoeconf了

:em01
shumi_2008
帖子: 10
注册时间: 2008-04-18 19:02

Re: [学习]ubuntu 8.10 网卡指定 eth0及其它

#33

帖子 shumi_2008 » 2009-04-03 13:24

谢谢,此文甚好
大弓1728
帖子: 8
注册时间: 2009-04-21 12:27

Re: [学习]ubuntu 8.10 网卡指定 eth0及其它

#34

帖子 大弓1728 » 2009-04-22 22:59

百草谷居士 写了:为啥要把network-manager删掉?
给自己找麻烦吗? :em20
我也有同样疑问,删除了NetworkManager之后用什么来代替呢?如果经常变更上网地点更换上网配置还有什么工具能代替?虽说对NetworkManager没啥好感,至少看上去能起到切换上网配置的作用呢。
hellfire_fc
帖子: 58
注册时间: 2008-11-25 17:20

Re: [学习]ubuntu 8.10 网卡指定 eth0及其它

#35

帖子 hellfire_fc » 2009-04-27 21:45

NetworkManager很麻烦,出现网络设备未托管的情况,并且不能上网,删掉它后才能上网。
bob33
帖子: 8
注册时间: 2008-01-14 10:40

Re: [学习]ubuntu 网卡指定 eth0及其它

#36

帖子 bob33 » 2009-05-23 22:29

mark,学习
KennyW
帖子: 36
注册时间: 2008-06-29 0:58

Re: [学习]ubuntu 网卡指定 eth0及其它

#37

帖子 KennyW » 2009-05-25 12:32

请问那个广播地址broadcast是什么呢?又要怎么获得呢?
头像
天要下雨
帖子: 36
注册时间: 2009-06-22 14:09

Re: [学习]ubuntu 网卡指定 eth0及其它

#38

帖子 天要下雨 » 2009-06-30 15:17

顶起来!!!! :em50
太强了!!我就是一不小心吧NETWORK MANAGER给删了,上不去了!!
又看到希望了! :ema5
shendapeng
帖子: 79
注册时间: 2009-07-15 14:56

Re: [学习]ubuntu 网卡指定 eth0及其它

#39

帖子 shendapeng » 2009-08-06 16:47

从哪添加网络监视器啊,我的面板里,添加,没找到啊?
yudian973
帖子: 15
注册时间: 2008-02-27 12:52

Re: [学习]ubuntu 网卡指定 eth0及其它

#40

帖子 yudian973 » 2009-09-10 23:11

LZ 你好,我这里也出现你标题说的相关的问题,能帮我看看怎么处理么?

我的机子主机在XP下装了VMware,虚拟机里装上了ubuntu,
按着网上的一些资料自己搞过几次网路设置都是能成功共享上网的,
但是后来由于文件出错的原因就把VM卸载了再装上,打开原先配置好的ubunt虚拟机
网络老是会默认到eth1上,导致网络上不了了,有什么办法可以解决吗。

我试过

代码: 全选

yudian973@prince:~$ gksu gedit /etc/udev/rules.d/70-persistent-net.rules

删除下面eth1段
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:dc:8f:df", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:22:e1:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
但是发现重启网络会这么说:

代码: 全选

yudian973@prince:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          Ignoring unknown interface eth1=eth1.
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
有什么办法可以解决吗?其它地方如下,都做好设置了

代码: 全选

1、配置IP等相关网络设置
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
#上面2行是系统loopback设备,必须有
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
2、设置DNS
sudo gedit /etc/resolv.conf
nameserver 192.168.0.1
味精
帖子: 88
注册时间: 2005-10-29 19:22

Re: [学习]ubuntu 网卡指定 eth0及其它

#41

帖子 味精 » 2009-09-13 21:31

查查 ATTR{address}=="00:0c:29:22:e1:dd", 是不是你现在虚拟机的网卡地址,VM重装或新建会生成新的MAC,所以应该是注释eth0,把eth1改成eth0.
yudian973 写了:LZ 你好,我这里也出现你标题说的相关的问题,能帮我看看怎么处理么?

我的机子主机在XP下装了VMware,虚拟机里装上了ubuntu,
按着网上的一些资料自己搞过几次网路设置都是能成功共享上网的,
但是后来由于文件出错的原因就把VM卸载了再装上,打开原先配置好的ubunt虚拟机
网络老是会默认到eth1上,导致网络上不了了,有什么办法可以解决吗。

我试过

代码: 全选

yudian973@prince:~$ gksu gedit /etc/udev/rules.d/70-persistent-net.rules

删除下面eth1段
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:dc:8f:df", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:22:e1:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
但是发现重启网络会这么说:

代码: 全选

yudian973@prince:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          Ignoring unknown interface eth1=eth1.
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
有什么办法可以解决吗?其它地方如下,都做好设置了

代码: 全选

1、配置IP等相关网络设置
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
#上面2行是系统loopback设备,必须有
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
2、设置DNS
sudo gedit /etc/resolv.conf
nameserver 192.168.0.1
joyking1987
帖子: 5
注册时间: 2009-09-17 17:08

Re: [学习]ubuntu 网卡指定 eth0及其它

#42

帖子 joyking1987 » 2009-09-17 21:18

楼主啊,我看你很牛x啊,帮帮我好吗?vm虚拟ubuntu,该如何设置上网啊啊,帮帮忙吧我在学校上网,步骤越简单越好啊……谢谢了……
fuowen20
帖子: 9
注册时间: 2008-02-22 20:12
来自: 广东深圳
联系:

Re: [学习]ubuntu 网卡指定 eth0及其它

#43

帖子 fuowen20 » 2009-09-18 23:49

谢了,我的问题还没解决,先谢了,明天继续学习…… :em02
isping
帖子: 73
注册时间: 2008-07-28 18:49

Re: [学习]ubuntu 网卡指定 eth0及其它

#45

帖子 isping » 2009-10-30 17:29

shendapeng 写了:从哪添加网络监视器啊,我的面板里,添加,没找到啊?
同问!
回复