0% found this document useful (0 votes)
43 views9 pages

Linux Lecture9

Uploaded by

williamblitz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views9 pages

Linux Lecture9

Uploaded by

williamblitz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

DHCP

DHCP
DHCP

DHCP
DHCP (Dynamic Host Configuration Protocol) is a network
service that enables clients to obtain network settings (IP
Address, Subnet Mask, Default Gateway, DNS Server,
Hostname and Domain) automatically from a central server
The DHCP client sends a broadcast request to find the
DHCP server and the DHCP server in the subnet responds
with an IP address (and other common network parameters)
from a pool of IP addresses
The IP address can be bound to the MAC address of the
client
Daemon: dhcpd
Lease file: /var/lib/dhcp/[Link]
DHCP

DHCP Server Configuration


Configuration File: /etc/[Link]
subnet [Link] netmask [Link] {

authoritative;
option routers [Link];
option subnet-mask [Link];
option domain-name "[Link]";
option domain-name-servers [Link];

range [Link] [Link];


default-lease-time 7200;
max-lease-time 10800;
host tc1 {
hardware ethernet [Link];
fixed-address [Link];
}
}
DHCP

DHCP Client Configuration


Configure the Network Configuration to pickup
network settings from DHCP server
/etc/sysconfig/network-scripts/ifcg-eth0
BOOTPROTO=dhcp (static)
Applications  System Settings  Network
NIS Server Setup

NIS SERVER SETUP


NIS Server Setup

Network Information Service

Directory Service for Centralized


Authentication and Accounting
The NIS server and all NIS clients are
members of a NIS domain
Single Master Server and Multiple Slave
Servers
Uses ypserv, yppasswdd and ypbind
daemon (also uses portmap and rpc service)
NIS Server Setup

NIS Server Configuration

Edit File /etc/sysconfig/network and add


NISDOMAIN=<mynisdomain>

Build NIS maps by running


/usr/lib/yp/ypinit –m
(ypserv should be running)

service ypserv start/stop/restart


service yppasswdd start/stop/restart
NIS Server Setup

NIS Client Configuration

Specify NIS Server and NIS Domain


/etc/[Link]
domain <mynisdomain> server <nis server IP>
/etc/[Link]
passwd: files nis
shadow: files nis
group: files nis
/etc/sysconfig/network
NISDOMAIN=<mynisdomain>

service ypbind start/stop/restart


NIS Server Setup

NIS Troubleshooting

Use ypwhich to find and verify which server a


client is bound to, if any
Use ypcat to verify that correct NIS data is
available.
ypcat passwd | more

You might also like