First of all, plan your network.
Make a table as follows....
Code:
interface network netmask broadcast address
and under each write the
(a) name of the interface, eg rt0 etc
(b) the network it will be connected to, eg 192.168.1.0/24
(c) the netmask it will use, eg 255.255.255.0
(d) the broadcast address it will use, eg 192.168.1.255
(e) the address this interface will have on this network, eg 192.168.1.1
do this for every interface. If the interface is to be configured by DHCP then write DHCP in the address column.
Once you have done that determine the address of your default route and which interface is connected to that address. If the network/netmask don't tally with the gateway you will not talk to it.
To configure a static address use
ifconfig rt0 inet 192.168.1.1 netmask 255.255.255.0
read the following....
man ifconfig
man ifconfig.if
man mygate
man resolv.conf