how to configure the route

bridged with qdn.public.articles
Post Reply
summer

how to configure the route

Post by summer » Thu Nov 29, 2001 2:06 am

I use the command "route add -net 123.234.123 123.234.123.123"
first,then I can see the change by "netstat -nr".When I reboot the
machine ,I use the "netstat -nr" it still unchanged.

welcome any advice .

lzhxu

Xiaodan Tang

Re: how to configure the route

Post by Xiaodan Tang » Thu Nov 29, 2001 2:54 am

summer <gpjin@nairc.ac.cn> wrote:
I use the command "route add -net 123.234.123 123.234.123.123"
first,then I can see the change by "netstat -nr".When I reboot the
machine ,I use the "netstat -nr" it still unchanged.

welcome any advice .
You have 2 choices.

1) write you own /etc/rc.d/rc.local, put whatever command you want
(route add ...) in it. That is the shell script to be execuated
during boot.

2) Use the photon network config (phlip) program. This will recored
any changed you did on harddisk, and reset it everytime you boot.

-xtang

diamond

Re: how to configure the route

Post by diamond » Fri Dec 07, 2001 5:50 am

I can't find the file named /etc/rc.d/rc.local,neither the command
phlip,can you give me something in details.
thank you all the same.
Xiaodan Tang <xtang@qnx.com> wrote in message
news:9u4820$sb7$1@nntp.qnx.com...
summer <gpjin@nairc.ac.cn> wrote:
I use the command "route add -net 123.234.123 123.234.123.123"
first,then I can see the change by "netstat -nr".When I reboot the
machine ,I use the "netstat -nr" it still unchanged.

welcome any advice .

You have 2 choices.

1) write you own /etc/rc.d/rc.local, put whatever command you want
(route add ...) in it. That is the shell script to be execuated
during boot.

2) Use the photon network config (phlip) program. This will recored
any changed you did on harddisk, and reset it everytime you boot.

-xtang

Mario Charest

Re: how to configure the route

Post by Mario Charest » Fri Dec 07, 2001 2:08 pm

"diamond" <gpjin@nairc.ac.cn> wrote in message
news:9upl0t$s9d$1@inn.qnx.com...
I can't find the file named /etc/rc.d/rc.local,
Normal you have to created it just as Xiaodan instructed. Don't
forget to setit it to executable (chmod +x rc.local)

neither the command
phlip,can you give me something in details.
Are you running as root and under Photon. That program is
accessible via the shelf under Photon.
thank you all the same.
Xiaodan Tang <xtang@qnx.com> wrote in message
news:9u4820$sb7$1@nntp.qnx.com...
summer <gpjin@nairc.ac.cn> wrote:
I use the command "route add -net 123.234.123 123.234.123.123"
first,then I can see the change by "netstat -nr".When I reboot the
machine ,I use the "netstat -nr" it still unchanged.

welcome any advice .

You have 2 choices.

1) write you own /etc/rc.d/rc.local, put whatever command you want
(route add ...) in it. That is the shell script to be execuated
during boot.

2) Use the photon network config (phlip) program. This will recored
any changed you did on harddisk, and reset it everytime you boot.

-xtang

Post Reply

Return to “qdn.public.articles”