| 7 | == 複数NICでdhcp時 == #multipleDHCPCentos |
| 8 | * 最後にLinkUPしたNICのdefaultGWのみ有効になる |
| 9 | * ifconfig |
| 10 | {{{ |
| 11 | eth0 Link encap:Ethernet HWaddr 00:0C:29:XX:XX:XX |
| 12 | inet addr:133.XX.XX.177 Bcast:133.51.87.255 Mask:255.255.248.0 |
| 13 | (snip) |
| 14 | |
| 15 | eth1 Link encap:Ethernet HWaddr 00:0C:29:YY:YY:YY |
| 16 | inet addr:192.168.50.132 Bcast:192.168.50.255 Mask:255.255.255.0 |
| 17 | (snip) |
| 18 | |
| 19 | eth2 Link encap:Ethernet HWaddr 00:0C:29:ZZ:ZZ:ZZ |
| 20 | inet addr:192.168.40.156 Bcast:192.168.40.255 Mask:255.255.255.0 |
| 21 | (snip) |
| 22 | |
| 23 | eth3 Link encap:Ethernet HWaddr 00:0C:29:XY:ZX:YZ |
| 24 | inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0 |
| 25 | (snip) |
| 26 | }}} |
| 27 | * ip route |
| 28 | {{{ |
| 29 | 192.168.50.0/24 dev eth1 proto kernel scope link src 192.168.50.132 |
| 30 | 192.168.0.0/24 dev eth3 proto kernel scope link src 192.168.0.155 |
| 31 | 192.168.40.0/24 dev eth2 proto kernel scope link src 192.168.40.156 |
| 32 | 133.51.80.0/21 dev eth0 proto kernel scope link src 133.51.80.177 |
| 33 | 169.254.0.0/16 dev eth3 scope link |
| 34 | default via 192.168.0.1 dev eth3 |
| 35 | }}} |
| 36 | |
| 270 | == 複数NICでdhcp時 == #multipleDHCPUbuntu |
| 271 | * 最後にDHCPから取得できるdefaultGW全てが列挙される |
| 272 | * ifconfig |
| 273 | {{{ |
| 274 | eth0 Link encap:Ethernet HWaddr 00:0c:29:xx:xx:xx |
| 275 | inet addr:133.xx.xx.18 Bcast:133.51.87.255 Mask:255.255.248.0 |
| 276 | (snip) |
| 277 | |
| 278 | eth1 Link encap:Ethernet HWaddr 00:0c:29:yy:yy:yy |
| 279 | inet addr:192.168.50.128 Bcast:192.168.50.255 Mask:255.255.255.0 |
| 280 | (snip) |
| 281 | |
| 282 | eth2 Link encap:Ethernet HWaddr 00:0c:29:zz:zz:zz |
| 283 | inet addr:192.168.40.157 Bcast:192.168.40.255 Mask:255.255.255.0 |
| 284 | (snip) |
| 285 | |
| 286 | eth3 Link encap:Ethernet HWaddr 00:0c:29:xy:zx:yz |
| 287 | inet addr:192.168.0.222 Bcast:192.168.0.255 Mask:255.255.255.0 |
| 288 | (snip) |
| 289 | }}} |
| 290 | * ip route |
| 291 | {{{ |
| 292 | 192.168.50.0/24 dev eth1 proto kernel scope link src 192.168.50.128 |
| 293 | 192.168.0.0/24 dev eth3 proto kernel scope link src 192.168.0.222 |
| 294 | 192.168.40.0/24 dev eth2 proto kernel scope link src 192.168.40.157 |
| 295 | 133.51.80.0/21 dev eth0 proto kernel scope link src 133.51.81.18 |
| 296 | default via 133.51.87.254 dev eth0 |
| 297 | default via 192.168.0.1 dev eth3 |
| 298 | default via 192.168.40.2 dev eth2 |
| 299 | }}} |
| 300 | * eth3にはGWが無いため設定されていない |
| 301 | |