DHCP and Name Resolution: 69-3 Nguyen Thi Nho, P9, Q.Tbinh, Tp. HCM
DHCP and Name Resolution: 69-3 Nguyen Thi Nho, P9, Q.Tbinh, Tp. HCM
DHCP and Name Resolution: 69-3 Nguyen Thi Nho, P9, Q.Tbinh, Tp. HCM
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Objectives
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
DHCP
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Dynamic Host Configuration Protocol
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
DHCP Client-Server
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
DHCP Client-Server
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Setting up DHCP
For server :
Install dhcp-2.0pl5-8.i386.rpm
Define /etc/dhcpd.conf
Run dhcpd daemon
For client :
Install dhcpcd-1.3.18pl8-13.i386.rpm
In /etc/sysconfig/network-scripts/, define (new)
ifcfg-eth0 file with following lines :
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Or type # dhcpcd eth0
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Configure DHCP Server
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Configure DHCP Server
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Shared network in dhcpd.conf
{
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.30 192.168.1.100;
option routers 192.168.0.1;
option domain-name-servers 192.168.1.1;
option broadcast-address 192.168.1.255
}
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
Shared network in dhcpd.conf
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
BOOTP Section in dhcpd.conf
group{
use-host-names true;
host workstation1 {
hardware ethernet 00:E0:29:42:7C:56;
fixed-address 192.168.4.50;
}
host workstation2 {
hardware ethernet 00:30:19:42:7C:56;
fixed-address 192.168.4.51;
}}
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
DHCP Clients
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102
dhcpcd
SAIGONLAB 83 Nguyễn
69-3 ThịThi
Nguyen Nhỏ,Nho,
P9, Q.Tân Bình, Tp.Tp.
P9, Q.TBinh, HCMHCM LPI 102