> We'd like to do some tests with Rush running on a standalone Mac
> that isn't connected to a network.
>
> We have HOSTNAME=valmont in the /etc/hostconfig file,
> but we still getting an error about 'hostname unknown'
> from both 'rush -ping' and 'ping valmont'.
Setting HOSTNAME=valmont sets the machine's hostname, but
it doesn't help the machine resolve the hostname lookup.
For a standalone mac, there are two things:
1) You need to help the machine know what it's own IP
address is by making an entry in /etc/hosts. So if
your machine is statically set to 192.168.1.5, add:
192.168.1.5 valmont
With that in place, 'ping valmont' should no longer give a
'hostname unknown' error.
However, the ping may still fail with 'no route to host'
if you don't have the network port plugged into something
(eg. a switch or hub). So:
2) You can either plug it into an otherwise empty
switch or hub to get the Mac to bring up the interface
(it just needs a link light), or you can *force*
the interface up with the following command
run as root:
ifconfig en0 192.168.1.5 up
Replace 'en0' with the name of your network interface.
Then 'ping valmont' should work, and equally 'rush -ping' should then
work (if you restart the rushd service).
|