Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 19:45:05 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        rank1seeker@gmail.com
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: net rc.conf bug?
Message-ID:  <CAOjFWZ43Rm38L9nqpvcDcVhucU6ArsYL4UMFz0qVmy31ed%2B3ng@mail.gmail.com>
In-Reply-To: <20150320012041.00006251@gmail.com>
References:  <20150319230613.000074b1@gmail.com> <550B4A9D.1080602@freebsd.org> <20150320012041.00006251@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 19, 2015 5:20 PM, <rank1seeker@gmail.com> wrote:
>
> On Thu, 19 Mar 2015 18:15:57 -0400
> Allan Jude <allanjude@freebsd.org> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ43Rm38L9nqpvcDcVhucU6ArsYL4UMFz0qVmy31ed%2B3ng>