急!!!学校网络是DHCP分配 ubuntu不能上网!望指教
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
急!!!学校网络是DHCP分配 ubuntu不能上网!望指教
xp下能够正常上网。xp下相关消息为:
IP地址:172.16.19.169
默认网关:172.16.19.1
DHCP服务器:172.16.0.5
DNS服务器:172.16.0.5
172.16.0.6
ubuntu下ifconfig结果:
eth0 Link encap:Ethernet HWaddr 00:c0:26:28:1b:22
inet6 addr: fe80::2c0:26ff:fe28:1b22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11 Base address:0xc000
eth0:avahi Link encap:Ethernet HWaddr 00:c0:26:28:1b:22
inet addr:169.254.2.155 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1332 errors:0 dropped:0 overruns:0 frame:0
TX packets:1332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:66792 (65.2 KB) TX bytes:66792 (65.2 KB)
$sudo /etc/init.d/networking restart
open: Permission denied
* Reconfiguring network interfaces... ifdown: failed to open statefile /var/run/network/ifstate: Permission denied
ifup: failed to open statefile /var/run/network/ifstate: Permission denied
open: Permission denied
[fail]
感谢高手指教!急等!
IP地址:172.16.19.169
默认网关:172.16.19.1
DHCP服务器:172.16.0.5
DNS服务器:172.16.0.5
172.16.0.6
ubuntu下ifconfig结果:
eth0 Link encap:Ethernet HWaddr 00:c0:26:28:1b:22
inet6 addr: fe80::2c0:26ff:fe28:1b22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11 Base address:0xc000
eth0:avahi Link encap:Ethernet HWaddr 00:c0:26:28:1b:22
inet addr:169.254.2.155 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1332 errors:0 dropped:0 overruns:0 frame:0
TX packets:1332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:66792 (65.2 KB) TX bytes:66792 (65.2 KB)
$sudo /etc/init.d/networking restart
open: Permission denied
* Reconfiguring network interfaces... ifdown: failed to open statefile /var/run/network/ifstate: Permission denied
ifup: failed to open statefile /var/run/network/ifstate: Permission denied
open: Permission denied
[fail]
感谢高手指教!急等!
- yyrl
- 帖子: 121
- 注册时间: 2008-01-31 14:17
- 联系:
$ sudo vi /etc/network/interfaces
默认的内容是
auto lo
iface lo inet loopback
需要修改为:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
其中,不一定是eth0
你可以用 ifconfig -a查看,如果你只有一块网卡的话就用那个网卡号改。
默认的内容是
auto lo
iface lo inet loopback
需要修改为:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
其中,不一定是eth0
你可以用 ifconfig -a查看,如果你只有一块网卡的话就用那个网卡号改。
上次由 yyrl 在 2008-08-14 11:53,总共编辑 1 次。
德不孤,必有邻。
风来疏竹,风过而竹不留声,雁照寒潭,雁去而潭不留影。故君子事来而心始现,事去而心随空。
风来疏竹,风过而竹不留声,雁照寒潭,雁去而潭不留影。故君子事来而心始现,事去而心随空。
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
2楼说的方法不行啊。
按你说的做,终端结果如下:
auto ludo vi /etc/network/interfaces
iface lo inet loopback
iface eth0 inet dhcp
auto eth0
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/network/interfaces" 8 lines, 66 characters
什么意思啊?
能否说得详细些~~~~~
按你说的做,终端结果如下:
auto ludo vi /etc/network/interfaces
iface lo inet loopback
iface eth0 inet dhcp
auto eth0
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/network/interfaces" 8 lines, 66 characters
什么意思啊?
能否说得详细些~~~~~
★☆°那怕星際無限°
★也願風雨中等妳°
☆°希望相逢在花開的雨季,陪妳聽風.
☆☆☆☆☆→→→▲▲▲←←←☆☆☆☆☆
★★★★★★★★★★★★★★★★★★★★★
★
★
★也願風雨中等妳°
☆°希望相逢在花開的雨季,陪妳聽風.
☆☆☆☆☆→→→▲▲▲←←←☆☆☆☆☆
★★★★★★★★★★★★★★★★★★★★★
★
★
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
- yyrl
- 帖子: 121
- 注册时间: 2008-01-31 14:17
- 联系:
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
-
- 帖子: 1994
- 注册时间: 2007-05-06 10:12
- 想入非非
- 帖子: 8078
- 注册时间: 2008-07-14 22:42
- 来自: Beijing
- 联系:
- Jeff Hsu
- 帖子: 23
- 注册时间: 2008-04-06 13:48
- 来自: 山东 青岛
- 20sanguo
- 帖子: 794
- 注册时间: 2008-05-10 9:53
- qiang_liu8183
- 论坛版主
- 帖子: 10699
- 注册时间: 2006-09-10 22:36
- 系统: Arch Debian
- 来自: 北京
- love214925
- 帖子: 221
- 注册时间: 2008-07-21 0:26
- 来自: 郑州-北环-华北水利水电学院