8.3. Connecting another FreeBSD machine to the network

8.3.1. /etc/rc.conf

The configuration of a host FreeBSD machine will be very similar to that of the gateway/router machine. This example is for the 486.weeble.com machine shown in the network layout.

The /etc/rc.conf will contain some important differences as shown in this excerpt:

defaultrouter="192.168.0.2"
hostname="486.weeble.com"
ifconfig_ed0="inet 192.168.0.11 netmask 255.255.255.0"
     

8.3.2. Modify /etc/hosts

The /etc/hosts will be identical to the gateway/router machine (k6-2.weeble.com).

127.0.0.1       localhost.weeble.com localhost
192.168.0.2     k6-2.weeble.com k6-2
192.168.0.2     k6-2.weeble.com.
192.168.0.10    pentium.weeble.com pentium
192.168.0.10    pentium.weeble.com.
192.168.0.11    486.weeble.com gw
192.168.0.11    486.weeble.com
     

8.3.3. /etc/resolv.conf

The /etc/resolv.conf will need to be created and will be identical to the gateway/router machine:

domain  weeble.com
nameserver 204.117.214.10
nameserver 199.2.252.10
     

Again, be sure to use your nameservers and not those shown in the example.