Command to create multiple virtual NIC

Arthur Chance freebsd at qeng-ho.org
Tue Jul 14 10:10:03 UTC 2020


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 at gmail.com
>>>> <mailto:luzar722 at 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 at gmail.com
>>>>     <mailto:luzar722 at 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.


More information about the freebsd-questions mailing list