Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 11:09:58 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: Command to create multiple virtual NIC
Message-ID:  <ceafb16d-0013-c959-13dc-dbd17661813d@qeng-ho.org>
In-Reply-To: <5F0C9FDF.7000805@gmail.com>
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> <5F0C9FDF.7000805@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13/07/2020 18:54, Ernie Luzar wrote:
> 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

Does your ISP support connection via vlan? What do you think is going to
happen?

> ifconfig=re0__1="inet 10.0.500.1/24"  gets invalid ip address in boot log.

IPv4 addresses have components in 0-255. 500 is not a valid component.

> 
> 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?


-- 
Fat Earther: One who believes the world is round but has put on too
much weight round the middle.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ceafb16d-0013-c959-13dc-dbd17661813d>