What Should I Do? <ds2.bbs@bbs.mgt.ncu.edu.tw> wrote in message
news:3cYUKO$H5L@bbs.mgt.ncu.edu.tw...
>
> 先前設過 route add -host 255.255.255.255 dev eth0
>
> 下面是我的dhcpd.conf
>
> =============================================================
> # dhcpd.conf
> # Sample configuration file for ISC dhcpd
> # option definitions common to all supported networks...
>
>     subnet 192.168.1.0 netmask 255.255.255.0 {
>
>     range 192.168.1.10 192.168.1.100;
>
>     option subnet-mask 255.255.255.0;
>
>     option broadcast-address 192.168.1.255;
>
>     option routers 192.168.1.254;
>
>     option domain-name "HackerLab.csie.ncu.edu.tw";
>
>     option domain-name-servers 192.168.1.1,192.168.1.2;
>
>     option subnet-mask 255.255.255.255;
>
>     default-lease-time 600;
>
>     max-lease-time 7200;
>
>     }
> ==================================================================
>
> 可是/usr/sbin/dhcpd -d -f 後卻出現
>
> No subnet declaration for eth0 (140.115.50.238).
> Please write a subnet declaration in your dhcpd.conf file for the
> network segment to which interface eth0 is attached.
> exiting.
>
> =================================================================
>

假設 140.115.50.238 的 netmask 是 255.255.255.248 吧﹐那就再加入﹕

subnet 140.115.50.232 netmask 255.255.255.248 {}