I'm responding to your new thread
Your original post stated that you have a Realtek RTL8139/810X Family PCI Fast Ethernet NIC, and that you have a router. I will assume that you have no modem, but you connect to the internet like so: ethernet NIC -- > router --> ISP. Please correct me if you in fact use a modem rather than the ethernet NIC --> router connection.
Your ifconfig output indicates that your ethernet NIC is recognized as eth0. No need to worry about modules.
Your network configuration file is /etc/rc.d/rc.inet1
. Fortunately, Patrick V. of Slackware comments rc.inet1 extensively, so it is easy to figure out. Look for the following section:
# Edit these values to set up your first Ethernet card (eth0):
#IPADDR="192.168.0.1 # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
Chances are, your router will assign your ethernet NIC with an address through DHCP. Therefore leave the USE_DHCP=yes line uncommented.
Next, edit /etc/resolv.conf
and add the following line:
Where 22.214.171.124 is the DNS nameserver address for your ISP. If you don't know what it is, call your ISP support, or check your ISP's support website for it. /etc/resolv.conf is necessary to resolve the URLs.
Hostname is simply the name of your computer box. You can choose anything you want. Similarly, domain name is the domain of your home network; you can leave it blank, or put anything you want. These two environment variables do not affect internet connection.
If it is necessary to specify actual hostnames with IP addresses, then edit /etc/hosts eg. if you want to explicitly define your ISP's mailserver, then put
in /etc/hosts, where 126.96.36.199 is the IP address of your ISP's mailserver.