kyoyaの日記: 6.0R - 505SX - dhclientで固定IPを設定できない問題
# cat /etc/dhclient.conf
interface "wi0" {
}
alias {
interface "wi0";
fixed-address xx.xx.xx.xx;
option subnet-mask 255.255.255.0;
}
これでdhclient wi0を実行すると、dhclientが強制終了する。
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/87465
--- dhclient.c.orig Fri Oct 14 23:13:48 2005
+++ dhclient.c Fri Oct 14 23:14:56 2005
@@ -221,10 +221,8 @@
if (addr_eq(a, l->address))
break;
- if (l != NULL) /* new addr is the one we set */
- break;
+ break;
- goto die;
case RTM_DELADDR:
ifam = (struct ifa_msghdr *)rtm;
if (ifam->ifam_index != ifi->index)
# cd /usr/src/sbin/dhclient
# patch -p0 p.patch
# make
# make install
6.0R - 505SX - dhclientで固定IPを設定できない問題 More ログイン