There was no request for this problem!
I couldn't find some information in the archives about this problem, so I post this summary.
OS: SunOS 4.1.x
Problem:
How can we boot a dataless client over a router from a server?
How can we run ypset (after starting ypbind -ypset) over a router to a NIS server?
If you try to set up this configuration, adding netmask for your network in local /etc/netmasks and adding the router and the server to local /etc/hosts, you get an error while rebooting the system like this:
RPC: portmapper failure: could not send
The problem is, that in /etc/rc.boot, at the time the system tries to nfs mount the /usr partition, the default router isn't known.
There is a hint in /etc/rc.boot about this:
if /sbin/route and /etc/defaultrouter exist, there will be set the default router in the routing table.
Solution:
On the client do:
- create the file /etc/defaultrouter and put the name (or ip address if no entry in /etc/hosts exist) of your router into the file
- add the netmask of your network to /etc/netmasks
- now we have to install route in /sbin on the clients root partition. There are to ways:
1. get a static linked version of route (don't ask me where from)
2. get the dynamic linked version and also copy the ld.so and the shared libraries to the root partition
I did the second way:
- boot from cdrom and install miniroot
- if miniroot is booted, mount your root partition (may be /dev/sd0a) to /a
- copy /usr/etc/route to /a/sbin
- create /a/usr/lib (this is not possible if /usr is mounted from server)
- copy ld.so and the libc files from /usr/lib to /a/usr/lib
- copy /bin/cat to /a/sbin (there is no cat on the root partition) or edit /etc/rc.boot to use shcat instead of cat
- reboot the system
---@@@@@@@@@@@@@@@@@ ******************************************************* @ @ @@ @@@@@ Thomas Gusset, Neu-Technikum Buchs, CH-9470 BUCHS @@ @ @@ @ @ Abteilung Informatik Switzerland @ @ @ @@ @@@@@ phone: ++41 81 755 33 86 fax: ++41 81 756 54 34 @ @@ @@ @ @ E-Mail: Gusset@ntb.ch @ @ @@ @@@@@ *******************************************************
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:05 CDT