Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2020 13:54:39 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Arthur Chance <freebsd@qeng-ho.org>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: Command to create multiple virtual NIC
Message-ID:  <5F0C9FDF.7000805@gmail.com>
In-Reply-To: <1f381b92-150c-14c0-ce51-e0addcd7b904@qeng-ho.org>
References:  <5F0BABA9.9090105@gmail.com> <CADy1Ce6tiZxri5x-4Q9bxC_DD7y5qJB=4AYm-0H0BeoWHv1=Bg@mail.gmail.com> <5F0C83B0.1060004@gmail.com> <CAOyJeZRPHq1bw%2Baq9sDoJsqMFfyy7yqh2LOhGm2RrWVwqQaaWw@mail.gmail.com> <5F0C8F94.6080207@gmail.com> <1f381b92-150c-14c0-ce51-e0addcd7b904@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Arthur Chance wrote:
> On 13/07/2020 17:45, Ernie Luzar wrote:
>> Shamim Shahriar wrote:
>>>
>>> On Mon, 13 Jul 2020, 16:54 Ernie Luzar, <luzar722@gmail.com
>>> <mailto:luzar722@gmail.com>> wrote:
>>>
>>> Â Â Â  Kurt Buff - GSEC, GCIH wrote:
>>> Â Â Â Â  > What are you trying to accomplish?
>>> Â Â Â Â  >
>>> Â Â Â Â  > On Sun, Jul 12, 2020 at 6:33 PM Ernie Luzar <luzar722@gmail.com
>>> Â Â Â  <mailto:luzar722@gmail.com>> wrote:
>>> Â Â Â Â  >> Hello List;
>>> Â Â Â Â  >> I have hardware interface em0 and want to create em1 and em2.
>>> Â Â Â Â  >> What is command to do that?
>>> Â Â Â Â  >>
>>> Â Â Â Â  >> Thanks
>>> Â Â Â Â  >
>>>
>>> Â Â Â  Looking for command to create multiple virtual NICs to hand vlans
>>> Â Â Â  off of.
>>> Â Â Â  __________________
>>>
>>>
>>>
>>> https://www.freebsd.org/doc/handbook/network-vlan.html
>>>
>>> Does it answer your question?
>>>
>>> Regards
>>>
>> NO it does not. It does not tell you what 192.168.20.20/24 is suppose to
>> represent. Is that suppose to be the hosts public routables ip address
>> or an ip address from one of the reserved private lan non-public
>> routable ip address ranges.
> 
> Any address beginning 192.168 is an RFC 1918 private address (as are
> 10.* and 172.16-31.*). If you're not familiar with something that basic
> you might want to read up a bit more about networking before getting
> into vlans.
> 
> 
Ya I know about them. I have LAN behind the host that working just fine 
using 10.0.0.0/8

I get my dynamic ip address from my ISP this way.
ifconfig_re0="DHCP"

Now to create vlan for re0 I have this in rc.conf

vlans_re0="1 2 3"

ifconfig=re0__1="DHCP"  times out with no address from the isp during boot
ifconfig=re0__1="inet 10.0.500.1/24"  gets invalid ip address in boot log.

My understanding of vlans is the first vlan tag steps on any ip address 
the parent re0 has gotten by DHCP. That is why I tried 
ifconfig=re0__1="inet 10.0.500.1/24"

What is wrong here?






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F0C9FDF.7000805>