net rc.conf bug?

Freddie Cash fjwcash at gmail.com
Fri Mar 20 02:45:07 UTC 2015


On Mar 19, 2015 5:20 PM, <rank1seeker at gmail.com> wrote:
>
> On Thu, 19 Mar 2015 18:15:57 -0400
> Allan Jude <allanjude at freebsd.org> wrote:
>
> > On 2015-03-19 18:06, rank1seeker at 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 at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > To unsubscribe, send any mail to
> > > "freebsd-hackers-unsubscribe at 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"


More information about the freebsd-hackers mailing list