Technical article 119026

OSR504: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 found

OpenServer 5.0.4

Written · Last revised

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 found

You 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
          Kernel

parse: 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)

From the Xinuos technical article database, record 119026. Reproduced with permission. The original is at www.sco.com/ta/119026, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.