0% found this document useful (0 votes)
31 views1 page

Vim /etc/network/interfaces: Service Isc-Dhcp-Server Restart

The document provides instructions for configuring a Debian 6 server as a DHCP server to assign IP addresses to clients on the local network. It includes steps to install Debian 6, configure the server's static IP address, install the dhcp3-server package, edit the dhcpd.conf file to define the DHCP scope, enable the DHCP daemon to listen on the Ethernet interface, restart services, and configure a client to request an IP via DHCP.

Uploaded by

Abdul Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Vim /etc/network/interfaces: Service Isc-Dhcp-Server Restart

The document provides instructions for configuring a Debian 6 server as a DHCP server to assign IP addresses to clients on the local network. It includes steps to install Debian 6, configure the server's static IP address, install the dhcp3-server package, edit the dhcpd.conf file to define the DHCP scope, enable the DHCP daemon to listen on the Ethernet interface, restart services, and configure a client to request an IP via DHCP.

Uploaded by

Abdul Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Install Debian 6
2. Install driver
3. Konfigurasi ip / SETTING DHCP SERVER

vim /etc/network/interfaces

# The loopback network interface


auto lo
iface lo inet loopbackh

# The local network interface


auto eth0
iface eth0 inet static
address 192.168.10.2
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1

Restart networknya : /etc/init.d/networking restart

4. Install dhcp server


apt-get install dhcp3-server

vim /etc/dhcp/dhcpd.conf

#. . .
# A slightly different configuration for an internal subnet.
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
option domain-name-servers debian.edu;
option domain-name "debian.edu";
option routers 192.168.10.254;
option broadcast-address 192.168.10.255;
default-lease-time 600;
max-lease-time 7200;
}
#. . .

vim /etc/default/isc-dhcp-server
#. . .
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#          Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
#. . .

5. Restart
service isc-dhcp-server restart

6. SETTING CLIENT

Setting salah satu linux

vim /etc/network/interfaces

#. . .
auto eth0
iface eth0 inet dhcp

Restart network : /etc/init.d/networking restart

ifconfig

You might also like