怎样设置路由(在线等,非常急)

由 ctgboy 在 03-29-2004 09:26 发表:

怎样设置路由(在线等,非常急)

我的linux服务器使用redhat9.0,eth0接外网地址62.240..,dns:211.97.168。*,eth1接192.168.0.169,网关192.168.0.1,可是上不了网,

友人告诉我得设路由,请问怎么设置?谢谢。请告诉我具体步骤。


由 faint 在 03-29-2004 09:51 发表:


你在网关做了nat或者其它的没有哦?


由 ctgboy 在 03-29-2004 10:04 发表:


没有,我只是设置了每个网卡的网关、ip、dns


由 大熊宝宝 在 03-29-2004 11:04 发表:


你外网的网关是多少??


请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.

新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了


由 ctgboy 在 03-29-2004 11:19 发表:


IP 62.240.75.145 mask 255.255.255.240

gateway 62.240.75.129


由 Eg_zm 在 03-29-2004 11:50 发表:

这样;

ifconfig eth0 62.240.75.145 netmask 255.255.255.0

route add default gw 62.240.75.129

ifconfig eth1 192.168.0.169 netmask 255.255.255.0


落日的余晖于喧嚣后的沙滩上蓦然发现一把略显锈态的钥匙,倔强地展露,感于它的执着,俯身拾起,试着用这钥匙去开启尘封已久的PC,PC释放出的能量让人震撼,品味才发现,岁月在它额头刻下的是:FreeBSD

[email protected]


由 ctgboy 在 03-29-2004 12:11 发表:

回复: 这样;

> quote: > > * * * > > 最初由 Eg_zm 发表
>
> **ifconfig eth0 62.240.75.145 netmask 255.255.255.0
>
> route add default gw 62.240.75.129
>
> ifconfig eth1 192.168.0.169 netmask 255.255.255.0 ** > > * * *

ip地址已经设置好了,设置路由时提示网络不可达,请问是怎么回事?


由 黯然销魂 在 03-29-2004 20:17 发表:


先停了iptables,然后再看你的网络设置问题。。。。


-- Hacking is "an appropriate application of ingenuity.." --

--If Linux doesn't have the solution, you have the wrong problem.--

^_^ LFS 511(/w udev) + BLFS CV

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