2008-12-12

[Debian] DHCP server

1. apt-get install dhcp3-server

2. Use ifconfig to check ethernet interface (ex. eth0)

3. edit /etc/dhcpd.conf

    subnet 192.168.0.0 mask 255.255.255.0 {

        range 192.168.0.100 192.168.0.200;   

    }

4. edit /etc/default/dhcp

    INTERFACE="eth0"

5. /etc/init.d/dhcp restart

 

p.s. Note that eth0's ip address must in the same subnet with the range wrote in dhcpd.conf

沒有留言:

★★★★★★ 傑森系列 ★★★★★★