Where do I put default route (gateway) and netmask configura

I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default
ifconfig en1 netmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar

The best way to do this is to put all your configuration information into
/etc/netstart. Then in your sysinit.1 file, you can add the line
/etc/netstart after the network driver(s) has been started.

Previously, QNXNewbie@nomail.com wrote in qdn.public.qnx4:

I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default <myGateway
ifconfig en1 netmask <myNetmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar

Thanks Hugh,

I found one interseting caveat about sysinit.1 that I noticed - you
need to have a carriage return at the end of last line or else it
generates an error when running. Although you probly already know
that.

Erick


On Thu, 12 Sep 2002 13:17:30 -0400, Hugh Brown <hsbrown@qnx.com>
wrote:

The best way to do this is to put all your configuration information into
/etc/netstart. Then in your sysinit.1 file, you can add the line
/etc/netstart after the network driver(s) has been started.

Previously, > QNXNewbie@nomail.com > wrote in qdn.public.qnx4:
I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default <myGateway
ifconfig en1 netmask <myNetmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar

“Hugh Brown” <hsbrown@qnx.com> wrote in message
news:Voyager.020912131730.28188C@node90.ott.qnx.com

The best way to do this is to put all your configuration information into
/etc/netstart. Then in your sysinit.1 file, you can add the line
/etc/netstart after the network driver(s) has been started.

Hum, the latest install CD creates /etc/config/bin/tcpip.X and calls
it from within the sysinit.

Previously, > QNXNewbie@nomail.com > wrote in qdn.public.qnx4:
I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default <myGateway
ifconfig en1 netmask <myNetmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar

<QNXNewbie@nomail.com> wrote in message
news:3d810393.29568218@inn.qnx.com

Thanks Hugh,

I found one interseting caveat about sysinit.1 that I noticed - you
need to have a carriage return at the end of last line or else it
generates an error when running. Although you probly already know
that.

This is true of any shell script

Erick


On Thu, 12 Sep 2002 13:17:30 -0400, Hugh Brown <> hsbrown@qnx.com
wrote:

The best way to do this is to put all your configuration information into
/etc/netstart. Then in your sysinit.1 file, you can add the line
/etc/netstart after the network driver(s) has been started.

Previously, > QNXNewbie@nomail.com > wrote in qdn.public.qnx4:
I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default <myGateway
ifconfig en1 netmask <myNetmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar

Mario Charest wrote:

QNXNewbie@nomail.com> > wrote in message
news:> 3d810393.29568218@inn.qnx.com> …
Thanks Hugh,

I found one interseting caveat about sysinit.1 that I noticed - you
need to have a carriage return at the end of last line or else it
generates an error when running. Although you probly already know
that.

This is true of any shell script
Actually, it’s a newline/linefeed. Literal chars often cause

totally flakey behavior on Unix machines.

Richard

Erick


On Thu, 12 Sep 2002 13:17:30 -0400, Hugh Brown <> hsbrown@qnx.com
wrote:

The best way to do this is to put all your configuration information into
/etc/netstart. Then in your sysinit.1 file, you can add the line
/etc/netstart after the network driver(s) has been started.

Previously, > QNXNewbie@nomail.com > wrote in qdn.public.qnx4:
I apologize in advance. I have been playing around with 4.25 & 6.2 a
bit but I am still quite a novice. I know how to configure the
default gateway and netmask in 6.2’s (and windoze) gui but I don’t
know how to do it in 4.25 per se.

From a shell I can run
route add default <myGateway
ifconfig en1 netmask <myNetmask
to add a default route and overide the default netmask.

However every time I reboot that info is wiped.
I believe these commands should be added to some sort of startup
script file somewhere but I don’t know which. I was guessing
/etc/config/sysinit.1
/etc/config/inetd.1
/etc/config/bin/tcpip.1
or
.profile

I need to do this for all users so I think I can rule out the
profile file, but I could use some guidance here.

Thanks in advance

Erick Oberstar