Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Default Route: (4 Items)
   
Default Route  
Hi All,
I am absolutely new to QNX and have no idea where to begin. My problem is this; The company that I work for who make 
bridges and wind turbines have a massive cnc plasma cutting machine for cutting huge sections of steel and it runs on a 
QNX os. The machine is accessible from the local network in that I can ping it from the same subnet, but not from remote
 networks. My immediate thoughts were that it needs a default route. I have looked at the ip config and I don’t think 
there’s a default gateway set on the machine. This would explain why we can ping it from the local network but not from
 outside.
I navigated to the mach_pref file by something like cd home> ls> Ped filename. An editor opened on the left side of the 
screen and under the Netw Config section all that was listed was the following:

# Netw Config
MACH_NAME=2144
MACH_DMAN=MYDOMAIN
MACH_ADDR=192.168.200.248
MACH_MASK=255.255.255.0

The manufacturer of the machine (Farley) told me that it was using QNX os, but that's about all. My question is How do I
 add a default route to the ip config and save it? Or is this the problem at all?

Any help would be much appreciated.

Thanks

Egg

RE: Default Route  
Hi Egg,
You can use the route command to add to your routing table. For instance
when I want to add a default gateway to an embedded target of mine I use
"route add default 127.0.0.1" with of course your gateway inserted
within the command.  You can also use route to view your current table
(might give you an idea of where traffic is going). Just use "route
show" to view the table.

-Wade

-----Original Message-----
From: Julian Hall [mailto:community-noreply@qnx.com] 
Sent: May-13-10 9:03 AM
To: general-community
Subject: Default Route

Hi All,
I am absolutely new to QNX and have no idea where to begin. My problem
is this; The company that I work for who make bridges and wind turbines
have a massive cnc plasma cutting machine for cutting huge sections of
steel and it runs on a QNX os. The machine is accessible from the local
network in that I can ping it from the same subnet, but not from remote
networks. My immediate thoughts were that it needs a default route. I
have looked at the ip config and I don't think there's a default gateway
set on the machine. This would explain why we can ping it from the local
network but not from outside.
I navigated to the mach_pref file by something like cd home> ls> Ped
filename. An editor opened on the left side of the screen and under the
Netw Config section all that was listed was the following:

# Netw Config
MACH_NAME=2144
MACH_DMAN=MYDOMAIN
MACH_ADDR=192.168.200.248
MACH_MASK=255.255.255.0

The manufacturer of the machine (Farley) told me that it was using QNX
os, but that's about all. My question is How do I add a default route to
the ip config and save it? Or is this the problem at all?

Any help would be much appreciated.

Thanks

Egg





_______________________________________________

General
http://community.qnx.com/sf/go/post54470
Re: RE: Default Route  
Hi Wade,

Thanks for your help. Do I need to navigate to any particular directory first? And will that be a persistant route?
RE: RE: Default Route  
You can use that util from any directory.  The route information you set
with the route util will not be persistent upon reboot.  When
configuring a Neutrino system we generally suggest two ways to set up
your networking.  Using either netmanager or a combination of ifconfig
and route.  Netmanager will use dhcp.client to contact the appropriate
dhcp server on your network and build the appropriate route table.
Using ifconfig and route is considered a more manual way of setting your
network settings.

-Wade

-----Original Message-----
From: Julian Hall [mailto:community-noreply@qnx.com] 
Sent: May-17-10 9:00 AM
To: general-community
Subject: Re: RE: Default Route

Hi Wade,

Thanks for your help. Do I need to navigate to any particular directory
first? And will that be a persistant route?



_______________________________________________

General
http://community.qnx.com/sf/go/post54836