From owner-freebsd-net@FreeBSD.ORG Fri Jul 10 16:24:29 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DEC4106566C for ; Fri, 10 Jul 2009 16:24:29 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f221.google.com (mail-bw0-f221.google.com [209.85.218.221]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC4A8FC14 for ; Fri, 10 Jul 2009 16:24:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz21 with SMTP id 21so803826bwz.43 for ; Fri, 10 Jul 2009 09:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ttyFEMpKBUlM1o/w4a9AYvdJPS1aoI/JwGb2QtYw+vE=; b=mpiwUpJoPBWsEuwHhJZPAPKvBcRJn8GSKzXHnlbPGKFT4RkxFXsOyXIkCAkjAMZAPX xkygG7QLj85i2zwepw9mpnJjm9XB/4lKD4x+noK34VjH0FoZUdTII3xbnY0qWHx0GFqj WLzX0PkWcaVFDnxdl9W/l6StJbNIN7cahOyck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=A99akH83h5HR7IzIDF7r/cVrT8IYACLoPuzEJqUv+GIaMu5Lr1qTmXFSvJbXdJ4IyE CVIcIb6/rmbKiTNeb1ME1/vkbT008WjipVC/yhOW2+qFstlFA4oT4+mPVemprIruhGLx Rwo1TPNChMAGNYBS8oPsh0fwyvJ7L33BuSTh4= MIME-Version: 1.0 Received: by 10.204.102.14 with SMTP id e14mr2076371bko.183.1247243067412; Fri, 10 Jul 2009 09:24:27 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2009 20:24:27 +0400 Message-ID: From: pluknet To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: aliases on lo0: SIOCDIFADDR gives EADDRNOTAVAIL X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2009 16:24:29 -0000 2009/7/10 pluknet : > Hi. > > I have the next string in rc.conf: > ifconfig_lo0_alias0=3D"inet 192.168.193.193/32" > > /etc/rc.d/netif restart lo0 prints an error: > > Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested ad= dress > =A0lo0. > lo0: flags=3D8049 mtu 16384 > =A0 =A0 =A0 =A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > =A0 =A0 =A0 =A0inet6 ::1 prefixlen 128 > =A0 =A0 =A0 =A0inet 127.0.0.1 netmask 0xff000000 > =A0 =A0 =A0 =A0inet 192.168.193.193 netmask 0xffffffff > > Can someone comment on this? > P.S. AFAICS from sh -x this equvalents to: ifconfig lo0 inet 192.168.193.193/32 -alias ifconfig lo0 inet 192.168.193.193 delete $ sudo ifconfig lo0 inet 192.168.193.193/32 -alias $ ifconfig lo0 lo0: flags=3D8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 $ sudo ifconfig lo0 inet 192.168.193.193 delete ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address --=20 wbr, pluknet