Problem
A route to my local interface is missing from "netstat -rn" and
I am getting the following error from "gated -C": krt_ifread: ioctl
SIOCGIFCONF: Bad file number rt_add: interface not foundYou have configured "gated" in preference to "routed" because either you require your SCO OpenServer server to act as a router to an autonomous system, or there are more than 15 hops in the route to a destination network or your network topology has loops such that hosts can choose between routers, and you want the hosts to do load balancing between the routers.
You can also configure "gated" to use RIP, just as "routed" does in order for you to have routes entered into the kernel's routing table when a RIP or IRDP packet arrives, proposing a route.
An example, "/etc/gated.conf" file may look like:
# @(#)gated.rip,v 6.8 1994/02/17 09:53:44 stevea Exp -
STREAMware TCP/IP source
# SCCS IDENTIFICATION
#
interfaces {
interface all passive ;
} ; rip yes {
nobroadcast ;
} ;
bgp no ;
egp no;
snmp no; static {
<your ip address> masklen 32 gateway <your gateway address>
retain ; etc ... } ;When I run "/etc/gated -C" to parse the file for syntax errors I get:
krt_ifread: ioctl SIOCGIFCONF: Bad file number
rt_add: interface not found for <ip>/255.255.255 gw w.x.y.z
Kernelparse: gated.conf:16 gateway not a host address on an attached network:
Cause
This has been seen with OpenServer 5.0.4 running the "gated" protocol with Release Supplement RS504C, OSS469D and OSS601A patches installed.
Solution
The officially supported solution is be to upgrade the server to the latest version of OpenServer.
OpenServer 5.0.4 is now a retired product, however, taking the
"gated" binary from OpenServer 5.0.5 or 5.0.6 has been seen to
rectify this issue. It is recommended to copy the existing
/etc/gated to a safe place prior to updating the binary.
Once putting the new binary in place, it is recommended to
reboot the server.NOTE: OpenServer 5.0.5, 5.0.6 and OpenUNIX 8.0.0 servers on the same
network do not exhibit the same problem. See also
TA # 107715, "STREAMS failure when using /etc/gated.conf "snmp
yes" option."
TA # 109531, "I see the error "/etc/tcp: syntax error at line
257: `;;' unexpected" during bootup." gated(ADMN)
routed(ADMN)