hackkit:~# apt-get install dhcp Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: dhcp 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 114kB of archives. After unpacking 340kB of additional disk space will be used. Get:1 http://ftp2.jp.debian.org etch/main dhcp 2.0pl5-19.5etch2 [114kB] Fetched 114kB in 0s (397kB/s) Selecting previously deselected package dhcp. (Reading database ... 14420 files and directories currently installed.) Unpacking dhcp (from .../dhcp_2.0pl5-19.5etch2_arm.deb) ... Setting up dhcp (2.0pl5-19.5etch2) ... Generating /etc/default/dhcp... Please note that if you are installing the DHCP server for the first time you need to configure it first. Please stop (/etc/init.d/dhcp stop) the DHCP server daemon, edit /etc/dhcpd.conf to suit your needs and particular configuration, and restart the DHCP server daemon (/etc/init.d/dhcp start). You also need to edit /etc/default/dhcp to specify the interfaces dhcpd should listen to. By default it listens to eth0. NOTE: dhcpd's messages are being sent to syslog. Look there for diagnostics messages. Starting DHCP server: dhcpd failed to start - check syslog for diagnostics. hackkit:~#
hackkit:~# /etc/init.d/dhcp stop Stopping DHCP server: dhcp. hackkit:~#
subnet 192.168.1.0 netmask 255.255.255.0 { # --- default gateway option routers 192.168.1.1; option subnet-mask 255.255.255.0; option domain-name "example.jp"; option domain-name-servers 192.168.1.30, 192.168.1.2; option ntp-servers 192.168.1.30, 192.168.1.2; range dynamic-bootp 192.168.1.121 192.168.1.129; default-lease-time 21600; max-lease-time 43200; #host panerina { # hardware ethernet 00:07:40:e8:12:xx; # fixed-address 192.168.1.24; #} #host psp { # hardware ethernet 00:02:c7:ce:16:xx; # fixed-address 192.168.1.52; #} }
hackkit:/etc# cat /etc/default/dhcp # Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/dhcp by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="" hackkit:/etc#
hackkit:/etc# /etc/init.d/dhcp start Starting DHCP server: dhcpd. hackkit:/etc#syslog にエラーが出ていないか確認します。
hackkit:/etc# tail /var/log/daemon.log :
hackkit:/etc# tail -f /var/log/daemon.log : : Aug 16 13:34:11 hackkit dhcpd: DHCPREQUEST for 192.168.2.67 from 00:0c:96:c0:42:b8 via eth0など、dhcpd のログが出力されていれば OK です。
|
楽天市場
livedoor デパート Sofmap TSUKUMO ネットショップ TWO TOP Yahoo!ショッピング パソQ ムラウチドットコム ヤマダ電機WEB アット・ニフティストア Joshin インターネットショッピング |
← ftp サーバ |
LS-HGL ハックキット LinkStation/玄箱をハックしよう |