由 zjjqyc 在 06-24-2004 23:26 发表:
请教,A.B两个不同网段的机器共同连在一台linux服务器上,如何实现A PING 通B
意思就是通过LINUX服务器实现A和B直接建立通信,各位大虾,知道的告诉我啊,急!!!!
由 Snoopy 在 06-24-2004 23:36 发表:
网卡上多设置个ip让它做网关
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
由 faint 在 06-25-2004 00:11 发表:
如果用的debian,而且每个网卡对应就是那个网段。不用什么设置就查以通,只要你的网卡能启动起来。如果linux是只有一个网卡,那就做个 一个网卡绑定多个ip的方法:-)
由 Snoopy 在 06-25-2004 00:38 发表:
为了实现这功能多拿张网卡好像没什么必要吧
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
由 尘飞扬 在 06-25-2004 09:59 发表:
添加静态路由
清风徐来尘飞扬
由 smile787 在 06-25-2004 10:33 发表:
强烈建议实验用静态路由。。。
大访问量双网卡
由 zjjqyc 在 06-25-2004 14:39 发表:
忘记说了,A和B分别在不同的局域网上
give me a smoke!!!
由 faint 在 06-25-2004 14:47 发表:
你开始时不已经说明了吗?还有什么不明白哦?
你有几个网卡??
由 smile787 在 06-25-2004 17:38 发表:
忘记说了,A和B分别在不同的局域网上
不是指一个在北京,一个在上海吧。。
呵呵
由 faint 在 06-25-2004 19:22 发表:
楼主的情况估计不是这样。那样怎么可能?
如果的确是这样,那么他的条件不能满足。
由 强强 在 06-26-2004 14:57 发表:
服务器两个网卡,然后客户机分别将网关指向服务器的2个ip,
再将服务器的ip转发打开就可以了!
vi /etc/sysctl.conf 将net.ipv4.ip_forward设为1
欢迎大家来加我qq,大家一起进步提高!149676729
由 zjjqyc 在 06-26-2004 23:56 发表:
网络结构具体是这样
A和B分别处在单独的局域网络
A的IP地址 :192。168。0。9,linux服务器安装一个网卡连在A所在的交换机上,地址是192。168。0。94,A 可以正常和LINUX服务器建立通信
B的IP地址。192。210。9。50。和上述情况也与服务器建立连接,服务器共安装2网卡,IP地址不同网段
如何实现A和B建立通信呢
give me a smoke!!!
由 Snoopy 在 06-27-2004 00:13 发表:
> quote:
>
> * * *
>
> 最初由 尘飞扬 发表
>
> 添加静态路由
>
> * * *