免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2984 | 回复: 4
打印 上一主题 下一主题

[IRIX] irix怎样实现网关和路由的功能,用什么软件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-27 10:17 |只看该作者 |倒序浏览
我要通过一台irix从内网连接外网,就是irix有两个网卡,一个界内网,一个接外网,内网机器通过他去上外网,xiexie

论坛徽章:
0
2 [报告]
发表于 2004-04-27 19:51 |只看该作者

irix怎样实现网关和路由的功能,用什么软件

启动routed守护进程,设置静态路由
route add ....

论坛徽章:
0
3 [报告]
发表于 2004-04-29 11:17 |只看该作者

irix怎样实现网关和路由的功能,用什么软件

you can edit the /etc/resolv.conf file. add the route ip and dns name to the file .
you can also edit the /etc/defaultrouter file , add the gateway as same as the cmd :route add  ip ..

论坛徽章:
0
4 [报告]
发表于 2004-07-29 11:55 |只看该作者

irix怎样实现网关和路由的功能,用什么软件

还没解决。我按照 IRIX Admin: Networking and Mail 文档照下面去做


Configuring a Router With Two Interfaces

The /etc/init.d/network script is designed to automatically detect and configure a router with two interfaces if the default naming scheme for the interfaces is used. By default, the Internet addresses of the primary and secondary interfaces are derived from the /etc/sys_id file. The primary interface uses the name in the sys_id file. The secondary interface prefixes gate- to the name specified in the sys_id file.

To set up a router with two interfaces using the default naming scheme, follow this procedure:

   1.

      Log in as root.
   2.

      Assign valid Internet names and addresses to both interfaces in the /etc/hosts file. For example, the /etc/hosts file entries for the primary and secondary interfaces on the station biway might look like this:

198.70.75.2     biway.salad.com   biway
198.70.80.3     gate-biway.salad.com   gate-biway


   3.

      Ensure that the router has the appropriate name in its /etc/sys_id file. Following this example, the /etc/sys_id file should look like this:

biway


   4.

      Reconfigure the kernel and reboot the station to initialize your changes and interfaces. Some systems prompt you for permission, as in the following example. Others simply return a shell prompt. In either case, enter the reboot command when the kernel has been reconfigured:

/etc/autoconfig


Automatically reconfigure the operating system? (y/n)y


reboot


然后在内网机器上加
route add  要访问的公网ip   irix的内网ip  
但出不去,在irix上 用
netstat -s -p ip |grep forward
看到(forwarding enabled)。
我的系统是
6.5 6.5.6m
IRIX64  6.5 10181058 IP27
大家邦我看下怎么办

谢谢上两位,但我不明白你们的方法,具体要怎么作,如果可以再帮我下

论坛徽章:
0
5 [报告]
发表于 2004-07-29 12:55 |只看该作者

irix怎样实现网关和路由的功能,用什么软件

ding
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP