QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
QNX4 ifconfig error |
Ref. No. |
QNX.000009472 |
Category(ies) |
Configuration |
Issue |
When booting a QNX4 machine, the error message "ifconfig:ioctl(SIOCGIFFLAGS):no such interface" is displayed on the screen.
What is causing this error?
|
Solution |
The error message gets printed to the console when the 'ifconfig' call is made to configure an interface, but that interface does not exist. It is typically called from within the sysinit file, either directly or from the /etc/netstart file.
example netstart file:
#!/bin/sh SOCK=$NODE su -c ' slay -f Socket Socklet; x09x09/usr/ucb/Socket -s2 node$SOCK & /usr/ucb/ifconfig en2 node$SOCK up & /usr/ucb/ifconfig lo0 localhost up &
'/usr/ucb/ifconfig en2 node$SOCK up &' would cause the error listed above if the actual interface to be configured is something other than 'en2'. |
|