[问题]刚装的ubuntu-8.04.1-desktop-i386.iso 设置不了网络

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
kellersoon
帖子: 8
注册时间: 2008-07-24 11:02
送出感谢: 0
接收感谢: 0
联系:

[问题]刚装的ubuntu-8.04.1-desktop-i386.iso 设置不了网络

#1

帖子 kellersoon » 2008-07-25 19:55

wo用wubi安装的,装好之后试着如下设置,但还是连不上网络,麻烦高手指点下,谢谢了
1.动态获得ip

$sudo vi /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

然后启动网络
$sudo /etc/init.d/networking restart

查看
$ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:4f:e3:44:d8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:397 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:288 (288.0 B) TX bytes:39032 (38.1 KB)
Memory:febe0000-fec00000

eth0:avahi Link encap:Ethernet HWaddr 00:1e:4f:e3:44:d8
inet addr:169.254.8.174 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:febe0000-fec00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:621 errors:0 dropped:0 overruns:0 frame:0
TX packets:621 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40124 (39.1 KB) TX bytes:40124 (39.1 KB)

2.静态获得ip
$sudo vi /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0

iface eth0 inet static
address 10.0.76.38
netmask 255.255.255.0
gateway 10..0.76.250

$sudo vi /etc/resolv.conf
nameserver 10.0.1.2
nameserver 10.0.1.3

启动网络
$sudo /etc/init.d/networking restart
查看
$ifconfig

eth0 Link encap:Ethernet HWaddr 00:1e:4f:e3:44:d8
inet addr:10.0.76.38 Bcast:10.0.76.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:17502 (17.0 KB)
Memory:febe0000-fec00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:537 errors:0 dropped:0 overruns:0 frame:0
TX packets:537 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32250 (31.4 KB) TX bytes:32250 (31.4 KB)
yuxiong
帖子: 11
注册时间: 2008-07-26 0:08
送出感谢: 0
接收感谢: 0

#2

帖子 yuxiong » 2008-07-26 11:59

同问,昨晚用vm装的,连接方式桥接!
回复

回到 “网卡问题以及网络和拨号”