home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!bouncer
- From: eirik@elf.TN.Cornell.EDU (Eirik Fuller)
- Subject: default route for diskless clients
- Message-ID: <1992Dec28.044346.4184@tc.cornell.edu>
- Sender: news@tc.cornell.edu
- Nntp-Posting-Host: earache.tc.cornell.edu
- Organization: Cornell Theory Center
- Date: Mon, 28 Dec 1992 04:43:46 GMT
- Lines: 52
-
- Empirical observations have led me to the following conclusion:
-
- The default route for a diskless client is provided by rpc.bootparamd,
- and it chooses the first entry in the kernel's network routing table
- which is on the same subnet as the client. This can lead to some
- silly choices, such as one end of a PPP link, or a gateway to an
- optical network. Both of those have happened, with no contortions on
- my part.
-
- If this conclusion about how the client gets its default route is
- wrong, I welcome corrections.
-
- It might seem irrelevant which default route is used, but what happens
- if the default route (the silly choice, not the natural choice) goes
- down? Our networks have dedicated routers, which provide a natural
- choice of default route. Randomly choosing a host on the same subnet
- as a default route does not seem like a sensible algorithm.
-
- It might also seem trivial to fix this poor choice of default route.
- However, if the client's /usr lives on another subnet, there is a
- chicken-and-egg problem. The route command, even if copied to the
- root partition, still requires shared libraries, which become
- inaccessible (but are apparently still necessary) after the routing
- table is flushed.
-
- The 4.1.3 /etc/rc.boot mentions a statically linked route command, but
- I think that's just there to torment people like me. Providing a
- statically linked route command as part of the SunOS distribution
- would be almost as useful as providing a dynamically linked mount
- command. Had the designers of /sbin been on the ball, there would
- have been both static and dynamic versions of everything in there, and
- route would have been there.
-
- I could put libc.so.* into the client root partition, but that's gross.
-
- I could decide against mounting /usr from another subnet, but that's
- not what I want.
-
- I could settle for the silly choice of default route, but that's not
- what I want either.
-
- What are my other options? Is there some way to tell bootparamd what
- route to use for each client, or some way to convince it to use the
- default route, if applicable (i.e. if it's on the same subnet as the
- client)? Is there some way to rig the routing tables so that the
- default route comes first? Is there a SunOS patch somewhere that
- provides alternate linkages of the commands that live (or should live)
- in /sbin/?
-
- Will I have to start beating up some lawyers so we can get the SunOS
- source code we tried to get years ago? Perhaps the next thing to do
- is to look for a free implementation of the route command ...
-