校内网上不了,各位帮帮忙
-
- 帖子: 115
- 注册时间: 2005-08-19 13:46
校内网上不了,各位帮帮忙
昨天上网还好好的,就是今天一早开机却不行了
我用xp系统上的话就没有问题
那些ip,dns的设定是和windows一样的
但是ping不通网关
为什么会这样的呢
应该怎样办才好
谢谢各位
我用xp系统上的话就没有问题
那些ip,dns的设定是和windows一样的
但是ping不通网关
为什么会这样的呢
应该怎样办才好
谢谢各位
- gnix_oag
- 帖子: 1994
- 注册时间: 2005-05-19 18:38
- 来自: 湖南永州
- 联系:
viewtopic.php?t=2735&postdays=0&postorder=asc&start=30
我的也是用网关上网的,
网关是192.168.0.2
我的ip是192.168.5.20
在XP中 子网掩码用255.255.255.0 能上网
在linux 下就不能,
子网掩码要用 255.255.0.0 就能上网,
好象是 XP 没按规则办事
按理子网掩码是 255.255.255.0 是找不到 192.168.0.2
你的也应该是这个问题吧。
我的也是用网关上网的,
网关是192.168.0.2
我的ip是192.168.5.20
在XP中 子网掩码用255.255.255.0 能上网
在linux 下就不能,
子网掩码要用 255.255.0.0 就能上网,
好象是 XP 没按规则办事
按理子网掩码是 255.255.255.0 是找不到 192.168.0.2
你的也应该是这个问题吧。
-
- 帖子: 115
- 注册时间: 2005-08-19 13:46
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 115
- 注册时间: 2005-08-19 13:46
# 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
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
iface eth0 inet static
address 192.168.0.140
netmask 255.255.255.0
gateway 192.168.0.1
auto eth0
这就是文件里面的东西了
还有我想问一下在命令行里面用什么命令打开呢
就是不用双击那种
谢谢各位帮忙
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
iface eth0 inet static
address 192.168.0.140
netmask 255.255.255.0
gateway 192.168.0.1
auto eth0
这就是文件里面的东西了
还有我想问一下在命令行里面用什么命令打开呢
就是不用双击那种
谢谢各位帮忙
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
命令行里面用的是more /etc/network/interfaces 就可以看到文件内容了!
不过看你的配置好象没有什么问题!
但是好象不是很完全,完全的应该是如下所示:
不过看你的配置好象没有什么问题!
但是好象不是很完全,完全的应该是如下所示:
代码: 全选
# The primary network interface
iface eth0 inet static
address 192.168.0.140
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
我心无畏,源自于我心无知。
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 115
- 注册时间: 2005-08-19 13:46
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- hethe
- 帖子: 3666
- 注册时间: 2005-08-01 9:14
大哥,帮我也看一下吧:
网关应设为56.19.64.1
但是我在sudo kcmshell kcm_knetworkconfmodule 中(我用的kde),每次改的值一确定。再打开就没有了,而且好像配置文件里面也没有,自己加上也没用。
网关应设为56.19.64.1
但是我在sudo kcmshell kcm_knetworkconfmodule 中(我用的kde),每次改的值一确定。再打开就没有了,而且好像配置文件里面也没有,自己加上也没用。
# 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
address 127.0.0.1
netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
address 58.19.65.78
netmask 255.0.0.0
iface eth1 inet dhcp
auto eth0
上次由 hethe 在 2005-10-02 22:51,总共编辑 1 次。
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.