| | 162 | === static時の問題 === |
| | 163 | * /etc/network/interfaces |
| | 164 | {{{ |
| | 165 | auto eth0:0 |
| | 166 | iface eth0:0 inet static |
| | 167 | address 192.168.40.250 |
| | 168 | netmask 255.255.255.0 |
| | 169 | gateway 192.168.40.2 |
| | 170 | }}} |
| | 171 | * sudo ifup eth0:0 |
| | 172 | {{{ |
| | 173 | SIOCSIFFLAGS: Cannot assign requested address |
| | 174 | }}} |
| | 175 | * 実際には正常にassign |
| | 176 | * ifconfig eth0:0 |
| | 177 | {{{ |
| | 178 | eth0:0 Link encap:Ethernet HWaddr 00:0c:29:YY:YY:YY |
| | 179 | inet addr:192.168.40.250 Bcast:192.168.40.255 Mask:255.255.255.0 |
| | 180 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| | 181 | Interrupt:17 Base address:0x2000 |
| | 182 | }}} |
| | 183 | |
| | 184 | * wireless-tools のバグ? |
| | 185 | * [https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/123773 Bug #123773 in ifupdown (Ubuntu): “'SIOCSIFFLAGS: Cannot assign requested address' when setting up ip alias”] |
| | 186 | * 対応 |
| | 187 | * sudo chmod -x /etc/network/if-pre-up.d/wireless-tools |
| | 188 | * sudo aptitude -R remove wireless-tools (依存関係に問題があり非推奨?) |
| | 189 | {{{ |
| | 190 | The following packages are BROKEN: |
| | 191 | ubuntu-minimal |
| | 192 | The following packages will be REMOVED: |
| | 193 | wireless-tools |
| | 194 | 0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded. |
| | 195 | Need to get 0B of archives. After unpacking 352kB will be freed. |
| | 196 | The following packages have unmet dependencies: |
| | 197 | ubuntu-minimal: Depends: wireless-tools but it is not installable |
| | 198 | Resolving dependencies... |
| | 199 | The following actions will resolve these dependencies: |
| | 200 | |
| | 201 | Remove the following packages: |
| | 202 | ubuntu-minimal |
| | 203 | |
| | 204 | Score is 115 |
| | 205 | |
| | 206 | Accept this solution? [Y/n/q/?] |
| | 207 | }}} |
| | 208 | |