由 Snoopy 在 01-15-2004 15:33 发表:
为什么每次都要添加路由?
如果不设置eth0的ip后,播号后就可以上网,可设置eth0后
每次拨号后都要route -n看下,
root: ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
61.143.191.30 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.88.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.88.254 0.0.0.0 UG 0 0 0 eth0
root: ~ $ route add default gw 61.143.191.30
每次都要跟着上面的地址添加才可以上网?有什么简单点的办法吗?
每次都要这样麻烦死了
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bluejesica 在 01-15-2004 20:00 发表:
你是说你每次拨号之后不能直接上网,还需要再手动添加路由么?
你在拨号之前设定网关了么?我看到你里面的最后一句:
0.0.0.0 192.168.88.254 0.0.0.0 UG 0 0 0 eth0
自己拨号不应该设置网关的,如果你在第一次安装的时候把网关填写进去了,应该改回来
学海无涯,回头也看不到岸
由 Snoopy 在 01-15-2004 20:53 发表:
改成什么??之前可以那样的,它拨号后自动添加的?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bluejesica 在 01-15-2004 21:09 发表:
意思就是说拨号的那台机器不要设置默认网关,改成没有
学海无涯,回头也看不到岸
由 Snoopy 在 01-15-2004 21:14 发表:
好的,我试下,可之前不是那样的,之前我的eth0可以设置自己为网关,怎么回事?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bluejesica 在 01-15-2004 21:47 发表:
我看资料上面说的是拨号的那台机器是不可以设置网关的,因为既然是拨号分配一个公网的ip,拨号之后会自动加上网关的,可以用route看出来
你试试好么?
学海无涯,回头也看不到岸
由 Snoopy 在 01-15-2004 22:00 发表:
好的谢谢你了,Evanescence
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of