Changes between Version 7 and Version 8 of TipAndDoc/network/alias


Ignore:
Timestamp:
Jun 7, 2009 11:59:15 PM (16 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/alias

    v7 v8  
    111111 
    112112 * assignされたりされなかったりするため、不安定 
     113 
     114 == Ubuntu == 
     115 * [http://quox.org/tips/linux/redhat.html#net-ipalias Tips Collection - Red Hat Linux] 
     116 * [http://hirokasa.jp/new/?Linux%2Fdebian%2Finterfaces Linux/debian/interfaces - hirokasa.jp] 
     117 
     118 === 設定 === 
     119 * 全て /etc/network/interfaces に記述 
     120{{{ 
     121# The loopback network interface 
     122auto lo 
     123iface lo inet loopback 
     124 
     125# The primary network interface 
     126auto eth0 
     127iface eth0 inet dhcp 
     128}}} 
     129 * 例 
     130   * dhcp (後述) 
     131{{{ 
     132auto eth0:0 
     133iface eth0:0 inet dhcp 
     134}}} 
     135   * static 
     136{{{ 
     137auto eth0:0 
     138iface eth0:0 inet static 
     139        address 192.168.40.250 
     140        netmask 255.255.255.0 
     141        gateway 192.168.40.2 
     142}}} 
     143 
     144 * ifconfig (static) 
     145{{{ 
     146eth0      Link encap:Ethernet  HWaddr 00:0c:29:YY:YY:YY 
     147          inet addr:192.168.40.144  Bcast:192.168.40.255  Mask:255.255.255.0 
     148          inet6 addr: fe80::20c:29ff:feb1:838a/64 Scope:Link 
     149          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
     150          RX packets:1051 errors:0 dropped:0 overruns:0 frame:0 
     151          TX packets:877 errors:0 dropped:0 overruns:0 carrier:0 
     152          collisions:0 txqueuelen:1000 
     153          RX bytes:94083 (91.8 KB)  TX bytes:113925 (111.2 KB) 
     154          Interrupt:17 Base address:0x2000 
     155 
     156eth0:0    Link encap:Ethernet  HWaddr 00:0c:29:YY:YY:YY 
     157          inet addr:192.168.40.250  Bcast:192.168.40.255  Mask:255.255.255.0 
     158          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
     159          Interrupt:17 Base address:0x2000 
     160}}} 
     161 
     162 === dhcp時の問題 === 
     163 * CentOSと同様、dhcp時に問題が起きる 
     164   * dhclientのバグ? 
     165   * [https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/351378 Bug #351378 in dhcp3 (Ubuntu): “dhclient fails for virtual interfaces (IP aliases)”] 
     166   * [https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/123773 Bug #123773 in ifupdown (Ubuntu): “'SIOCSIFFLAGS: Cannot assign requested address' when setting up ip alias”] 
     167 * sudo /etc/init.d/networking restart 
     168{{{ 
     169 * Reconfiguring network interfaces... 
     170There is already a pid file /var/run/dhclient.eth0.pid with pid 4361 
     171killed old client process, removed PID file 
     172Internet Systems Consortium DHCP Client V3.0.6 
     173Copyright 2004-2007 Internet Systems Consortium. 
     174All rights reserved. 
     175For info, please visit http://www.isc.org/sw/dhcp/ 
     176 
     177Listening on LPF/eth0/00:0c:29:YY:YY:YY 
     178Sending on   LPF/eth0/00:0c:29:YY:YY:YY 
     179Sending on   Socket/fallback 
     180There is already a pid file /var/run/dhclient.eth0.pid with pid 134519072 
     181Internet Systems Consortium DHCP Client V3.0.6 
     182Copyright 2004-2007 Internet Systems Consortium. 
     183All rights reserved. 
     184For info, please visit http://www.isc.org/sw/dhcp/ 
     185 
     186Listening on LPF/eth0/00:0c:29:YY:YY:YY 
     187Sending on   LPF/eth0/00:0c:29:YY:YY:YY 
     188Sending on   Socket/fallback 
     189DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 
     190DHCPOFFER of 192.168.40.144 from 192.168.40.254 
     191DHCPREQUEST of 192.168.40.144 on eth0 to 255.255.255.255 port 67 
     192DHCPACK of 192.168.40.144 from 192.168.40.254 
     193bound to 192.168.40.144 -- renewal in 855 seconds. 
     194SIOCSIFFLAGS: Cannot assign requested address 
     195Internet Systems Consortium DHCP Client V3.0.6 
     196Copyright 2004-2007 Internet Systems Consortium. 
     197All rights reserved. 
     198For info, please visit http://www.isc.org/sw/dhcp/ 
     199 
     200SIOCSIFFLAGS: Cannot assign requested address 
     201SIOCSIFFLAGS: Cannot assign requested address 
     202Bind socket to interface: No such device 
     203Failed to bring up eth0:0. 
     204                                                                         [ OK ] 
     205}}} 
     206 * sudo ifup eth0:0 
     207{{{ 
     208SIOCSIFFLAGS: Cannot assign requested address 
     209There is already a pid file /var/run/dhclient.eth0:0.pid with pid 134519072 
     210Internet Systems Consortium DHCP Client V3.0.6 
     211Copyright 2004-2007 Internet Systems Consortium. 
     212All rights reserved. 
     213For info, please visit http://www.isc.org/sw/dhcp/ 
     214 
     215SIOCSIFFLAGS: Cannot assign requested address 
     216SIOCSIFFLAGS: Cannot assign requested address 
     217Bind socket to interface: No such device 
     218Failed to bring up eth0:0. 
     219}}}