So yes, I installed FreeBSD 1.1 for fun and learning on a Unisys CWD4002 small-form factor 486. It has a humble 350 MB hard drive, 16 MB of RAM, with a 1.44 MB floppy drive and no CD-ROM. The RAM and the floppy-install necessitated a rather old version of BSD, so I decided to go all the way back to the first major revision in order to get the smallest install size. It does, however, have a built-in 10Base-T network interface, which is what I'm tinkering with now.
The only stubling block is the default gateway configuration (as DHCP is not an option yet). I've been able to add the gateway manually:
Which results in the following routing table:
But getting it to persist has been a bit awkward. Part of the problem is that I'm not finding any good examples of /etc/gateways online. The best I found was for Solaris.
But when I set my gateways file as follows:
I just get a garbage entry in the routing table:
And I'm not really sure what I'm doing wrong. The manpage for this version of BSD (attached) indicates that the format is correct, but again it has no examples.
Yes, I can just put the route() command in a startup script instead, but that feels like cheating somehow. I'd really just like to get the correct format so the gateways file is happy.
The only stubling block is the default gateway configuration (as DHCP is not an option yet). I've been able to add the gateway manually:
# route add default 10.0.1.1
Which results in the following routing table:
Code:
$ netstat -rn
Routing tables
Destination Gateway Flags Refs Use IfaceMTU Rtt
Netmasks:
(root node)
(0) 0000 ff00
(root node)
Route Tree for Protocol Family inet:
(root node) =>
default 10.0.1.1 UG 0 0 ed0 - -
10 10.0.1.10 U 2 103 ed0 - -
127.0.0.1 127.0.0.1 UH 1 0 lo0 - -
(root node)
But when I set my gateways file as follows:
Code:
$ cat /etc/gateways
net 0.0.0.0 gateway 10.0.1.1 metric 100 passive
Code:
$ netstat -rn
Routing tables
Destination Gateway Flags Refs Use IfaceMTU Rtt
Netmasks:
(root node)
(0) 0000 ff00
(root node)
Route Tree for Protocol Family inet:
(root node) =>
default (0) UG 0 0 ed0 - -
10 10.0.1.10 U 3 379 ed0 - -
127.0.0.1 127.0.0.1 UH 1 0 lo0 - -
(root node)
Yes, I can just put the route() command in a startup script instead, but that feels like cheating somehow. I'd really just like to get the correct format so the gateways file is happy.