0% found this document useful (0 votes)
46 views

Install DHCP in Debian

The document provides instructions for installing and configuring DHCP (Dynamic Host Configuration Protocol) on a Debian system. It describes using terminal commands like 'su -l root' and 'apt-get install dhcp3-server' to install the dhcp3-server package. It also explains configuring the network interfaces file and dhcpd configuration file to set the IP address, subnet, DNS, and other network settings for the DHCP server to serve addresses on the local network.

Uploaded by

Thuy Huynh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Install DHCP in Debian

The document provides instructions for installing and configuring DHCP (Dynamic Host Configuration Protocol) on a Debian system. It describes using terminal commands like 'su -l root' and 'apt-get install dhcp3-server' to install the dhcp3-server package. It also explains configuring the network interfaces file and dhcpd configuration file to set the IP address, subnet, DNS, and other network settings for the DHCP server to serve addresses on the local network.

Uploaded by

Thuy Huynh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Install DHCP in Debian.

Terminal. Su l root Tai goi dhcp3-server.

Apt get install dhcp3-server Neu co san goi dhcp3-debian thi dung lenh cai dat.

Aptitude install dhcp3-server Khi cai dat he thong se yeu cau nap dia soruce debian 6. Nap dia va enter. Cai hinh card mang.

Nano /etc/network/interfaces Tim dong lenh sau:

#NetworkManager# Go them lenh cau hinh ip.

Auto eth0 Iface eth0 inet static Address 172.16.1.34 Netmask 255.255.0.0 Gateway 172.16.1.129 Network 172.16.1.0 Broadcast 172.16.1.255 Dung to hop phim Ctrl +X de thoat. Nhan Y de luu. Cau hinh HDCP

Nano /etc/dhcp/dhcpd.conf Tim den dong lenh sau va tien hanh chinh sua.

#A slight different configuration for an internal subnet. Subnet 172.16.0.0 netmask 255.255.0.0{ Range 172.16.1.133 172.16.1.254; option domain-name-server 172.16.1.2; Option domain-name host.com; Option router 172.16.1.129;

Option broadcast-address 172.16.1.255; Default-lease-time 600; Max-lease-time 7200; } Dung to hop phim Ctrl+X the thoat, nhan Y de luu. Restat interfaces va restart dhcp.

/etc/init.d/networking restart /etc/init.d/isc-dhcp-server start Kiem tra lai ipaddress

Ifconfig Neu ket qua tra khong going voi ip chung ta thiet lap, thi chung ta phai xoa interface ma he thong da tu nhan truoc do.

You might also like