| 267 | |
| 268 | * boot時は特にエラー表示はないが、assignされない |
| 269 | |
| 270 | * 対応 |
| 271 | * dhcp3-clientの代わりにdhcpcdを入れる対策はHardyでは効果なし |
| 272 | * https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/351378/comments/12 |
| 273 | 1. install dhcp3-client dummy package |
| 274 | * sudo dpkg -i dhcp3-client-dummy_3.0.6.dfsg-1ubuntu9_i386.deb |
| 275 | {{{ |
| 276 | (Reading database ... 15336 files and directories currently installed.) |
| 277 | Preparing to replace dhcp3-client 3.0.6.dfsg-1ubuntu9 (using dhcp3-client-dummy_3.0.6.dfsg-1ubuntu9_i386.deb) ... |
| 278 | Unpacking replacement dhcp3-client ... |
| 279 | dpkg: warning - unable to delete old directory `/var/lib/dhcp3': Directory not empty |
| 280 | dpkg: warning - unable to delete old directory `/etc/dhcp3/dhclient-enter-hooks.d': Directory not empty |
| 281 | Setting up dhcp3-client (3.0.6.dfsg-1ubuntu9) ... |
| 282 | }}} |
| 283 | 1. hold dhcp3-client dummy package |
| 284 | * sudo aptitude hold dhcp3-client |
| 285 | {{{ |
| 286 | The following packages have been kept back: |
| 287 | dhcp3-client |
| 288 | 0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded. |
| 289 | }}} |
| 290 | 1. install udhcpc package |
| 291 | * sudo aptitude install -R udhcpc |
| 292 | 1. add alias to /etc/network/interfaces |
| 293 | * hostname, client-id は必須なのか不明。無くても手元では動作した |
| 294 | {{{ |
| 295 | auto eth0 |
| 296 | iface eth0 inet dhcp |
| 297 | |
| 298 | auto eth0:0 |
| 299 | iface eth0:0 inet dhcp |
| 300 | }}} |
| 301 | 1. restart NICs |
| 302 | * sudo /etc/init.d/networking restart |
| 303 | {{{ |
| 304 | * Reconfiguring network interfaces... |
| 305 | udhcpc (v0.9.9-pre) started |
| 306 | Sending discover... |
| 307 | Sending select for 192.168.40.146... |
| 308 | Lease of 192.168.40.146 obtained, lease time 1800 |
| 309 | Resetting default routes |
| 310 | adding dns 192.168.40.2 |
| 311 | SIOCSIFFLAGS: Cannot assign requested address |
| 312 | udhcpc (v0.9.9-pre) started |
| 313 | SIOCSIFFLAGS: Cannot assign requested address |
| 314 | Sending discover... |
| 315 | Sending select for 192.168.40.144... |
| 316 | Lease of 192.168.40.144 obtained, lease time 1800 |
| 317 | Resetting default routes |
| 318 | adding dns 192.168.40.2 |
| 319 | [ OK ] |
| 320 | }}} |