Since you are using a text console then I would setup a static IP first, do as root from cli;
~#ifconfig -a #get recognized devices
~#ifconfig eth0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
~#route -n #show the route table
~#ifconfig eth0 up #should be up already
~#ping 192.168.0.1 #ping your gateway
~#ping 18.104.22.168 #google.com IP
~#ping google.com #test DNS, if fail then
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.
nameserver xxx.xxx.xxx.xxx #ISP DSN 'replace xxx.xxx.xxx.xxx
#with IP from your ISP
nameserver 22.214.171.124 #Verizon third level DNS
nameserver 126.96.36.199 #to use as fallback
If you are wanting to use name resolution on your LAN then as stated you will need to setup your 'hosts
excerpt from 'man hosts'
hosts - The static table lookup for host names
This manual page describes the format of the /etc/hosts file. This file is a simple text file that associates IP addresses with hostnames, one line per IP address. For each host a single line should be present with the following information:
IP_address canonical_hostname aliases
Fields of the entry are separated by any number of blanks and/or tab characters. Text from a "#" character until the end of the line is a comment, and is ignored. Host names may contain only alphanumeric characters, minus signs ("-"), and periods ("."). They must begin with an alphabetic character and end with an alphanumeric character. Aliases provide for name changes, alternate spellings, shorter hostnames, or generic hostnames (for example, localhost). The format of the host table is described in RFC 952.
The Berkeley Internet Name Domain (BIND) Server implements the Internet name server for UNIX systems. It augments or replaces the /etc/hosts file or host name lookup, and frees a host from relying on /etc/hosts being up to date and complete.
~# cat /etc/hosts
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# By the way, Arnt Gulbrandsen <email@example.com> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
# For loopbacking.
#04-09-07 09:52 renew
192.168.1.1 modem.workgroup modem #dsl modem
192.168.1.2 server.workgroup server #server
192.168.1.3 someuser.workgroupr someuser #some user
You can do a LQ search
as this has been covered a lot.
Hope this helps!