关于slackware9.1下通过路由器上网

由 storm the front 在 09-04-2004 16:50 发表:

关于slackware9.1下通过路由器上网

路由器IP:192.168.1.1,开了DHCP服务

我的ifconfig为:

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:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@darkstar:~# hostname

darkstar

root@darkstar:~# dnsdomainname

example.net

在win2000下一开机就能上网

C:>ipconfig

Windows 2000 IP Configuration

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . : domain

IP Address. . . . . . . . . . . . : 192.168.1.103

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1

linux下无法打开网页,无法ping通路由器和我自己的机器,这是什么原因?我启动时看到加载了eth0为via-rhine(我的网卡)

我该如何设置?


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 windrose 在 09-04-2004 17:03 发表:


netconfig时有没有指定使用dhcp?

有没有安装dhcpcd-1.3.22pl4-i386-1.tgz这个包?启动的时候有没有让它自动从dhcp服务器获取ip地址?


It works, it rockz -- SLACKWARE Linux

欢迎访问 http://slack.linuxsir.org


由 storm the front 在 09-04-2004 18:42 发表:


我刚才去设了一下netconfig,选了dhcp的那一项,然后

root@aaaaa:~# dhcpcd eth0

root@aaaaa:~# ifconfig eth0

eth0 Link encap:Ethernet HWaddr 00:B0:5C:A0:0F:51

BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:12 errors:0 dropped:0 overruns:0 frame:0

TX packets:6 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:1363 (1.3 Kb) TX bytes:3540 (3.4 Kb)

Interrupt:5 Base address:0xe800

root@aaaaa:~# ifconfig

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:32 errors:0 dropped:0 overruns:0 frame:0

TX packets:32 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:2400 (2.3 Kb) TX bytes:2400 (2.3 Kb)

进系统时多了一行dhcpcd[132]:broadcasting DHCP-DISCOVER

但还是打不开网页

郁闷


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 jhuangjiahua 在 09-04-2004 20:22 发表:


不如不要 DHCP ,自己指定 IP 吧


-

用 Debian 的感觉

就象家里开超市一样

不管要什么

只需一个 apt-get


Debian 3.1 testing Only


由 storm the front 在 09-04-2004 20:46 发表:


> quote: > > * * * > > 最初由 jhuangjiahua 发表
>
> 不如不要 DHCP ,自己指定 IP 吧 > > * * *

路由器不是我一个人用的,还有三个人一起在共享,他们(winxp用户)喜欢一开机就连上网


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 storm the front 在 09-04-2004 21:10 发表:


晕~~~~~

我把路由器的防火墙关了,冲击波来了(我win2000没装防火墙)。。。lsass.exe出错,离关机还有。。。

各位快带我脱离win的苦难吧


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 storm the front 在 09-04-2004 21:26 发表:


状态码为128系统现在关机。。。


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 storm the front 在 09-04-2004 21:35 发表:


还有,我2000下的主机名叫school-db0d29d0,slk下叫aaaaa,但是我进入slk后,路由器用户列表上的主机名还是叫school-db0d29d0,不过两个系统下的MAC地址是一样的,都是00-b0-5c-a0-0f-51


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 windrose 在 09-04-2004 21:57 发表:


看来你没有从dhcp服务器得到ip地址。你 man dhcpcd 看看用法应该是怎样的,我从 /etc/rc.d/rc.inet1 里面看到的用法是:

dhcpcd -t 10 -d eth0


It works, it rockz -- SLACKWARE Linux

欢迎访问 http://slack.linuxsir.org


由 storm the front 在 09-04-2004 23:17 发表:


我的/etc/rc.d/rc.inet1.conf

This file contains the configuration settings for network interfaces.

If USE_DHCP[interface] is set to "yes", this overrides any other settings.

If you don't have an interface, leave the settings null ("").

Config information for eth0:

IPADDR[0]=""

NETMASK[0]=""

USE_DHCP[0]="yes"

DHCP_HOSTNAME[0]="school-db0d29d0"

Default gateway IP address:

GATEWAY=""

Change this to "yes" for debugging output to stdout. Unfortunately,

/sbin/hotplug seems to disable stdout so you'll only see debugging output

when rc.inet1 is called directly.

DEBUG_ETH_UP="no"


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 storm the front 在 09-05-2004 00:30 发表:


如果我在slk下把IP指定为192.168.1.103,还有主机名相同,那么开机时会多出来一行字SIOCADDRT:Network is unreable

还有,我的IP和主机名好象被路由器锁住了,不管我开机关机或拔网线,随便进哪个系统,它都一直不变(这可以从我同学的机器登陆到192.168.1.1上看出)

PS:路由器为TP-LINK的TL-R402

192.168.1.1为改路由器信息的网页


花褪残红青杏小

燕子飞时

绿水人家绕

枝上柳绵吹又少

天涯何处无芳草

墙里秋千墙外道

墙外行人

墙里佳人笑

笑渐不闻声渐悄

多情却被无情恼


由 storm the front 在 09-05-2004 06:15 发表:


> quot

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus