how to configure the route

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

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

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

“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