From owner-freebsd-questions@freebsd.org Tue Jul 14 10:10:03 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4A7D235D44C for ; Tue, 14 Jul 2020 10:10:03 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5bqF674Wz3xwD for ; Tue, 14 Jul 2020 10:10:01 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 0D5EF10199; Tue, 14 Jul 2020 11:09:59 +0100 (BST) Subject: Re: Command to create multiple virtual NIC To: Ernie Luzar Cc: "freebsd-questions@FreeBSD.org" References: <5F0BABA9.9090105@gmail.com> <5F0C83B0.1060004@gmail.com> <5F0C8F94.6080207@gmail.com> <1f381b92-150c-14c0-ce51-e0addcd7b904@qeng-ho.org> <5F0C9FDF.7000805@gmail.com> From: Arthur Chance Message-ID: Date: Tue, 14 Jul 2020 11:09:58 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <5F0C9FDF.7000805@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4B5bqF674Wz3xwD X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-1.97 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.02)[-1.022]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[qeng-ho.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.31)[-0.309]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; RCVD_COUNT_TWO(0.00)[2]; R_MIXED_CHARSET(0.66)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 10:10:03 -0000 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, >>> > wrote: >>>> >>>>     Kurt Buff - GSEC, GCIH wrote: >>>>      > What are you trying to accomplish? >>>>      > >>>>      > On Sun, Jul 12, 2020 at 6:33 PM Ernie Luzar >>>> >>>     > 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.