Cover V05, I10
Article
Figure 1

oct96.tar


Figure 1: Sample files

Sample /etc/hosts segment

127.0.0.1        localhost
198.109.160.153  lees.tcimet.net
198.109.160.1    gateway.tcimet.net
198.109.160.2    dns.tcimet.net

Edit the /etc/rc.d/rc.inet1 file to enable configuration of your Ethernet connection.

# Edit for your setup.
IPADDR="198.109.160.153" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0"  # REPLACE with YOUR netmask!
NETWORK="198.109.160.0"  # REPLACE with YOUR network address!
BROADCAST="198.109.160.255" # REPLACE with YOUR broadcast address!
GATEWAY="198.109.160.1"  # REPLACE with YOUR gateway address!

# Uncomment the line below to initialize the Ethernet device.
/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK}

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
/sbin/route add default gw ${GATEWAY} metric 1

# End of rc.inet1

Edit /etc/resolv.conf to point to your service provider's DNS server:

domain tcimet.net
nameserver 198.109.160.2