Menü +

find ./ -type f -name '*source-string*'

linux | services | dhcp


# apt-get install vim mc htop nmap -y



apt-get install isc-dhcp-server


vi /etc/dhcp/dhcpd.conf

ddns-update-style none;
option domain-name "nixcraft.net.in";
option domain-name-servers 192.168.1.2, 192.168.1.3;

subnet 10.20.30.0 netmask 255.255.255.0 {
        range 10.20.30.40 10.20.30.50;
        option subnet-mask 255.255.255.0;              
        option broadcast-address 10.20.30.255;
        option routers 10.20.30.1;

host hostname {
hardware ethernet 00:B0:CF:8B:49:37;
fixed-address 192.0.0.19;
}

vi /etc/default/isc-dhcp-server


DHCPD_CONF=/etc/dhcp/dhcpd.conf
DHCPD_PID=/var/run/dhcpd.pid

# Additional options to start dhcpd with.
#       Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
INTERFACES="eth1"

service isc-dhcp-server start

# test
netstat -tulpn | grep --color "dhcp"
#udp        0      0 0.0.0.0:28992           0.0.0.0:*    6070/dhcpd      
#udp        0      0 0.0.0.0:67              0.0.0.0:*    6070/dhcpd      
#udp6       0      0 :::31788                :::*         6070/dhcpd
ps aux | grep --color "[d]hcpd"
#root   6070  0.0  0.2   6956  3008 ?        Ss   21:08   0:00 /usr/sbin/dhcpd -q -cf #/etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth1

http://wwwhttp://www.cyberciti.biz/faq/howto-ubuntu-debian-squeeze-dhcp-server-setup-tutorial/.cyberciti.biz/faq/howto-ubuntu-debian-squeeze-dhcp-server-setup-tutorial/

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.