route error : socket no such file or directory

Hello,

I’m always trying to configure my Internet connection… DHCP server is well
found and provide all informations… But still one issue : No gateway seem
to be found in phlip. When I try to add it, the field clears when I click
“Apply”. I then open /etc/net.cfg and no gateway has been added… I then
try to add the gateway with the “route” command, but I get this error :

route : socket : no such file or directory

Is something missing ?? What can I do ??

Thanks

Laurent

Laurent CORNELIS <lcornelis@brutele.be> wrote:
: Hello,

: I’m always trying to configure my Internet connection… DHCP server is well
: found and provide all informations… But still one issue : No gateway seem
: to be found in phlip. When I try to add it, the field clears when I click
: “Apply”. I then open /etc/net.cfg and no gateway has been added… I then
: try to add the gateway with the “route” command, but I get this error :

: route : socket : no such file or directory

I believe phlip should allow you to input you gateway under the ‘Network’ tab.

-seanb

I believe phlip should allow you to input you gateway under the ‘Network’
tab.

Yes but it don’t work… When I apply, phlip erase the value I entered, and
in net.cfg no trace of gateway… I think it fails for the same reason
‘route’ fails… ( the error : socket : no such file or directory)

Laurent CORNELIS <lcor@brutele.be> wrote:

I believe phlip should allow you to input you gateway under the ‘Network’
tab.

Yes but it don’t work… When I apply, phlip erase the value I entered, and
in net.cfg no trace of gateway… I think it fails for the same reason
‘route’ fails… ( the error : socket : no such file or directory)

My guessing is your dhcp server didn’t give back the “gateway”
information, phlip will take the information from dhcp server
and erase whatever you set before.

Is it possiable for you to try a Manual config, set ip yourself
and see if it works?

Another solution for you is start the “big stack”, try to do a
“pidin arg | grep io-net”, remember the command line, and
“slay io-net”, re-run it with the command line just replace
“-p ttcpip” as “-p tcpip”.

-xtang

Laurent CORNELIS <lcor@brutele.be> wrote:
:>
:> I believe phlip should allow you to input you gateway under the ‘Network’
: tab.

: Yes but it don’t work… When I apply, phlip erase the value I entered, and
: in net.cfg no trace of gateway… I think it fails for the same reason
: ‘route’ fails… ( the error : socket : no such file or directory)

Nah. Do you have a route to your gateway? ie. is the gateway on the
same network as you? What’s your ip address / netmask? What gateway
are you trying to reach?

-seanb

Nah. Do you have a route to your gateway? ie. is the gateway on the
same network as you? What’s your ip address / netmask? What gateway
are you trying to reach?

My IP is 212.68.235.245 netmask : 255.255.255.0 and the gateway’s IP is
212.68.248.1

My Internet connection is a cable connection…

When I swith to manual config, I cannot add gateway either.

Laurent CORNELIS <lcornelis@brutele.be> wrote:
:> Nah. Do you have a route to your gateway? ie. is the gateway on the
:> same network as you? What’s your ip address / netmask? What gateway
:> are you trying to reach?

: My IP is 212.68.235.245 netmask : 255.255.255.0 and the gateway’s IP is
: 212.68.248.1

: My Internet connection is a cable connection…

: When I swith to manual config, I cannot add gateway either.

As I suspected. According to that netmask, you are on network
212.68.235.0. Your gateway is on network 212.68.248.0. You
can’t reach your gateway.

To reach that gateway, you would need a netmask something like
255.255.224.0; however, the tiny stack does not support “supernetting”.
ie for a class C address the netmask must be >= 255.255.255.0.

If you intended to supernet your address, you’ll need to run the full
stack. If you didn’t, you’ll need a new ip address or gateway or both.

-seanb

As I suspected. According to that netmask, you are on network
212.68.235.0. Your gateway is on network 212.68.248.0. You
can’t reach your gateway.

To reach that gateway, you would need a netmask something like
255.255.224.0; however, the tiny stack does not support “supernetting”.
ie for a class C address the netmask must be >= 255.255.255.0.

If you intended to supernet your address, you’ll need to run the full
stack. If you didn’t, you’ll need a new ip address or gateway or both.

-seanb

How can I run the full stack ? How do I configure my connection ? With phlip
?? I’m a little lost…

Thanks

See the “How to boot with -ptcpip” thread in qdn.public.qnxrtp.os

-Th

Laurent CORNELIS wrote:

As I suspected. According to that netmask, you are on network
212.68.235.0. Your gateway is on network 212.68.248.0. You
can’t reach your gateway.

To reach that gateway, you would need a netmask something like
255.255.224.0; however, the tiny stack does not support “supernetting”.
ie for a class C address the netmask must be >= 255.255.255.0.

If you intended to supernet your address, you’ll need to run the full
stack. If you didn’t, you’ll need a new ip address or gateway or both.

-seanb

How can I run the full stack ? How do I configure my connection ? With phlip
?? I’m a little lost…

Thanks

Thanks everybody !! It set the full tcpip stack and it works fine :astonished:)

Just edit /etc/system/enum/include/net in root mode (use vi insteed of
phedit to edit the file) and change pttcpip by ptcpip…

Laurent