Chap3 - Network Configuration and Setting
Chap3 - Network Configuration and Setting
4
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
5
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
6
Chapter 3: Network Configuration and setting
1- Introduction
• A computer network is a telecommunications network that allows
computers to exchange data.
• The physical connection between networked computing devices is
established using either cable media or wireless media (The best-
known computer network is the Internet)
• Network configuration is an activity to properly configure any
network infrastructure
through which various network applications/services can be run
and accessed.
• Administrators must be able to configure IP addresses as well as
other configuration files at different network services such as
DHCP, DNS, Email, Web Servers and other such related network
7
services
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
8
Chapter 3: Network Configuration and setting
2- Configuring networks
• There is an essential need to configure various network services those
facilitate for the above network applications to work properly
9
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
10
Chapter 3: Network Configuration and setting
3- Dynamic Host Configuration Protocol (DHCP) (1/4)
• The DHCP is a network protocol used to configure devices that are
connected to a network.
• The DHCP server will then issue a "lease" and assign it to that
client (The time period of a valid lease can be specified on the
server)
12
Chapter 3: Network Configuration and setting
3- Dynamic Host Configuration Protocol (DHCP) (3/4)
13
Chapter 3: Network Configuration and setting
3- Dynamic Host Configuration Protocol (DHCP) (4/4)
• How it works?
– Lease Request: Client broadcasts request to DHCP server with a source address of
0.0.0.0 and a destination address of 255.255.255.255. The request includes the MAC
address which is used to direct the reply
– IP lease offer: DHCP server replies with an IP address, subnet mask, network
gateway, name of the domain, name servers, duration of the lease and the IP address
of the DHCP server
– Lease Selection: Client receives offer and broadcasts to al DHCP servers that will
accept given offer so that other DHCP server need not make an offer
– The DHCP server then sends an acknowledgement to the client. The client is
configured to use TCP/IP
– Lease Renewal: When half of the lease time has expired, the client will issue a new
request to the DHCP server
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
15
Chapter 3: Network Configuration and setting
4- Domain Name System (DNS) (1/5)
• A DNS server, or name server, is used to resolve an IP address to a hostname
or vice versa
• It is a hierarchical distributed naming system for computers, services, or any
resource connected to the internet or a private network.
• It associates various information with domain names assigned to each of the
participating entities.
• Most prominently, it translates easily memorized domain names to the
numerical IP addresses needed for the purpose of locating computer services
and devices worldwide
• By setting up a DNS server, you become part of a hierarchy of DNS servers
that make up the internet.
• At the top of this hierarchy is the root server, represented by a dot (“.”) below
the root server are the top level domains (such as .com, .org, and so on)
16
Chapter 3: Network Configuration and setting
4- Domain Name System (DNS) (2/5)
17
Chapter 3: Network Configuration and setting
4- Domain Name System (DNS) (3/5)
• Each domain is typically represented by a least two DNS servers.
The following are different types of DNS servers
– Primary (master) name server contains authoritative
information about the domains that it serves
– Secondary (slave) name server gets all information for the
domain from the primary
– Caching name server simply caches the information it receives
about the locations of hosts and domains
– Forwarding name server is essentially a caching name server
but is useful in cases where computers lie behind a firewall and
in which only one computer can make DNS queries outside that
firewall on behalf of all the internal computers
18
Chapter 3: Network Configuration and setting
4- Domain Name System (DNS) (4/5)
• Understanding BIND: Most Linux and UNIX systems
implement DNS services by using the Berkeley Internet
Name Domain (BIND) software.
• The basic components of BIND include the following:
– DNS server daemon (/usr/sbin/named): the named daemon listens on a port
for DNS services requests and then fulfills those requests based on
information in the configuration files that you create
– DNS configuration files (named.conf and /var/named/ *): the/etc/named.conf
file is where you add most of the general configuration information that you
need to define the DNS services for your domain
– DNS lookup tools to check that your DNS server is resolving host names
properly
19
Chapter 3: Network Configuration and setting
4- Domain Name System (DNS) (5/5)
• For security reasons, restrict access to those who
request it based on the following :
– Access control list can contain those hosts, domains or IP
addresses that one wants to group together and apply the same
level of access to DNS server
– Listen-on ports by default, name server accepts only name
server requests that come to port 53 on name server
– Authentication is to verify the identities of hosts that are
requesting services from DNS server, can use keys for
authentication and authorization.
• Click here to configure a DNS server on Debian
20
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
21
Chapter 3: Network Configuration and setting
5- Network File System (NFS) (1/4)
• NFS is a server-client protocol for sharing files between computers
on a common network.
• It allows a computer to access directories on remote computers by
mounting them on a local file system as if they were a local disk
• The administrator on the NFS server has to define the directories
that need to be activated, or exported, for access by the NFS clients,
and administrators on the clients need to define both the NFS server
and the subset of its exported directories to use.
• The server and client do not have to use the same operating system.
• The client system just needs to be ruining an NFS client compatible
with the NFS server
22
Chapter 3: Network Configuration and setting
5- Network File System (NFS) (2/4)
• One should follow some general rules when configuring
NFS
24
Chapter 3: Network Configuration and setting
5- Network File System (NFS) (4/4)
• Some NFS key concepts:
– NFS Daemons: NFS isn't a single program, but a suite of interrelated programs that
work together to get the job done. The following are several daemons that are started
when a system goes into run level 3 or multi-user mode :
• automountd Daemon : This daemon handles the mounting and unmounting
requests from the autofs service
• lockd Daemon: supports record-locking operations on NFS files
• mountd Daemon: handles file-system mount requests from remote systems and
provides access control
• nfslogd Daemon: This daemon provides operational logging
• statd Daemon: This daemon works with lockd daemon to provide crash and
recovery functions for the lock manager
• Nfs: Starts the RPC processes needed to serve shared NFS file systems
• nfs4cbd Daemon , rpcbind , nfslock , netfs .
• How to install and configure NFS?
25
Chapter 3 outlines
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
26
Chapter 3: Network Configuration and setting
5- Web Server (1/4)
• The primary function of a web server is to cater web page
to the request of clients using the Hypertext Transfer
Protocol (HTTP).
• This means delivery of HTML documents and any
additional content that may be included by a document,
such as images, style sheets and scripts.
• The server that sends your web browser the code to
display a web page is called a web server.
• Whether you need a web server to host a website on the
Internet a Red Hat Enterprise Linux server can function as
a web server using the Apache HTTP server. 27
Chapter 3: Network Configuration and setting
5- Web Server (2/4)
• The Apache HTTP server is a popular, open source server
application that runs on many UNIX-based systems as well as
Microsoft Windows
– If you need to access features that are not available through the samba server
configuration file you can edit /etc/samba/smb.conf file as required
– Daemon processes consist of smbd (the SMB daemon) and nmbd ( the
NetBIOS
name server ). The following are some of the clients that Samba supports:
• Introduction
• Configuring networks
• Dynamic Host Configuration Protocol (DHCP)
• Domain Name System (DNS)
• Network File System (NFS)
• Web Server
• Summary
31
Chapter 3: Network Configuration and setting
6- Summary
• In this Chapter, installation, configuration and setup of various
network services such as DHCP, DNS, NFS and Samba server are
explained.
• Student has to practice in real time to have more exposure and built
confidence in configuration of network services
32
Chapter 3: Network Configuration and setting
7- Homework
• Discuss the activities between DHCP Server and DHCP
Client
33
Bibliography
34