From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 20 02:45:07 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 388CCD3B for ; Fri, 20 Mar 2015 02:45:07 +0000 (UTC) Received: from mail-yk0-x236.google.com (mail-yk0-x236.google.com [IPv6:2607:f8b0:4002:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E491BFF9 for ; Fri, 20 Mar 2015 02:45:06 +0000 (UTC) Received: by ykcn8 with SMTP id n8so36333634ykc.3 for ; Thu, 19 Mar 2015 19:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3wvqDv2o43ravzC4Dgi78f4j+ZabGZ1v2DAOYOTi5as=; b=z8N4+e7PRV9+uaHr+v6XBGgeg4imnk5zdvBOgEPPnvex6Z9PvIlgGD2fecCOJF8RL9 rpNu45/l8Rv5hew4TBj48q3S2IvhG5YqJSZTugg1VSnz2spoBiBbhbRUxiScMS9blFBy wkiPELIoWl1il00uMJwdEeytC26wNb3A3pBbYTjQO5jEipQTkpaNGab/lgUboPf56Z4C D5wl1eH0lesLP5WKzV+W7jcu+4oJR4OLDobSy+seaWeReQ1zGdTQqfXGIG7YmGY7t25x qS6OKa0CBVtZBr5SQ+PYGCkSjw+nXwUeuWKTbhYDTrr5b/mwR5hhbDvNAHPuwHBvulCR pzxA== MIME-Version: 1.0 X-Received: by 10.170.155.198 with SMTP id w189mr42795264ykc.123.1426819506036; Thu, 19 Mar 2015 19:45:06 -0700 (PDT) Received: by 10.170.79.87 with HTTP; Thu, 19 Mar 2015 19:45:05 -0700 (PDT) Received: by 10.170.79.87 with HTTP; Thu, 19 Mar 2015 19:45:05 -0700 (PDT) In-Reply-To: <20150320012041.00006251@gmail.com> References: <20150319230613.000074b1@gmail.com> <550B4A9D.1080602@freebsd.org> <20150320012041.00006251@gmail.com> Date: Thu, 19 Mar 2015 19:45:05 -0700 Message-ID: Subject: Re: net rc.conf bug? From: Freddie Cash To: rank1seeker@gmail.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2015 02:45:07 -0000 On Mar 19, 2015 5:20 PM, wrote: > > On Thu, 19 Mar 2015 18:15:57 -0400 > Allan Jude wrote: > > > On 2015-03-19 18:06, rank1seeker@gmail.com wrote: > > > 10.1-RELEASE-p6 i386 > > > > > > /etc/rc.conf > > > ---- > > > # TO DO: Setting ether as prefix OR suffix to inet, WON'T set IP to > > > NIC ifconfig_em0="inet 10.232.191.1/22" > > > ---- > > > > > > Can someone confirm? > > > This nuked PF, which in turn disbled NAT, which in turn ... > > > :P > > > > > > > > > Domagoj S. > > > _______________________________________________ > > > freebsd-hackers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > To unsubscribe, send any mail to > > > "freebsd-hackers-unsubscribe@freebsd.org" > > > > > > > Not sure what you are asking. > > ifconfig_em1=" inet 94.100.23.178/29" > > ifconfig_em1_alias0=" inet 94.100.23.179/32" > > > > works prefectly fine for me > > > > Of course it does, as it doesn't have 'ether' specified. > Try this: > > ifconfig_em1="ether 00:90:99:8f:da:6f inet 94.100.23.178/29" > and/or > ifconfig_em1="inet 94.100.23.178/29 ether 00:90:99:8f:da:6f" If you split it into two it should always work. It's been many years since I had to do this (replaced nic in a firewall connected to DSL with IP locked to mac) but this used to work in one line. ifconfig_em1="ether 00:90:99:8f:da:6f" ifconfig_em1_alias0="inet 94.100.23.179/29"