[root@ls /root]# cat /var/lib/dhcp/dhcpd.leases # All times in this file are in UTC (GMT), not your local timezone. This is # not a bug, so please don't ask about it. There is no portable way to # store leases in the local timezone, so please don't request this as a # feature. If this is inconvenient or confusing to you, we sincerely # apologize. Seriously, though - don't ask. # The format of this file is documented in the dhcpd.leases(5) manual page. lease 192.168.1.126 { starts 5 2004/05/28 17:12:00; ends 5 2004/05/28 23:12:00; hardware ethernet 00:07:40:60:54:xx; uid 01:00:07:40:60:54:x; } : :192.168.1.126 が割り当てられている。
host seco { hardware ethernet 00:07:40:60:54:xx; fixed-address 192.168.1.33; }続いて dhcpd に設定の再読み込ませを行う。
[root@ls /root]# /etc/rc.d/init.d/dhcpd reload dhcpdを停止中: [ OK ] dhcpdを起動中: [ OK ]
[root@ls named]# /etc/rc.d/init.d/named reload namedを再読み込み中: [ OK ]
[root@ls /root]# tail /var/log/messages May 29 02:50:47 ls dhcpd: DHCPDISCOVER from 00:07:40:60:54:xx via eth0 May 29 02:50:47 ls dhcpd: DHCPOFFER on 192.168.1.33 to 00:07:40:60:54:xx via eth0 May 29 02:50:47 ls dhcpd: DHCPDISCOVER from 00:07:40:60:54:xx via eth0 May 29 02:50:47 ls dhcpd: DHCPOFFER on 192.168.1.33 to 00:07:40:60:54:xx via eth0 May 29 02:50:47 ls dhcpd: DHCPREQUEST for 192.168.1.33 from 00:07:40:60:54:xx via eth0 May 29 02:50:47 ls dhcpd: DHCPACK on 192.168.1.33 to 00:07:40:60:54:xx via eth0割り当てた 192.168.1.33 に ping してみる
[root@ls /root]# ping seco PING seco (192.168.1.33) 送信元 192.168.1.8 : 56(84) bytes of data. 64 バイト応答 送信元 seco (192.168.1.33): icmp_seq=0 ttl=255 時間=271 マイクロ秒 64 バイト応答 送信元 seco (192.168.1.33): icmp_seq=1 ttl=255 時間=219 マイクロ秒 64 バイト応答 送信元 seco (192.168.1.33): icmp_seq=2 ttl=255 時間=245 マイクロ秒 --- seco ping 統計 --- 送信パケット数 3, 受信パケット数 3, パケット損失 0% Round-Trip 最小/平均/最大/mdev = 0.219/0.245/0.271/0.021ミリ秒OK。
← | LinkStation/玄箱 をハックしよう | → HD-120LAN ファームウェアアップデート |