From owner-freebsd-questions@freebsd.org Mon Jul 13 17:54:42 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 3C01D36C1E3 for ; Mon, 13 Jul 2020 17:54:42 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5B9s36trz4JL7 for ; Mon, 13 Jul 2020 17:54:41 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-qt1-x841.google.com with SMTP id k18so10625552qtm.10 for ; Mon, 13 Jul 2020 10:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=n/IL95Wmm8U96MgKaOoT7nL2QpGtnoogYL1x32sXkjI=; b=UELRaro6xIfp1DXtrHkpvWHAFq9ld6qirklIKWDkZuYG48IPCe5wneO3qbcpsO885P oh2RfToRymVJejCfg/QSFLJoTNMwSX7l8lbRtkkEvmbr1z1LIGPShBgQnIlp/AN1o521 6GeNKqhGXlTVJl1uSX3iXmLVz4k5XpduFuJ3mGVUNUNVnLWOqF1kyFzmYNNOc1e6OCgZ LsoPjaxgp88gUtQP60tqCGDbSgJhRvP9EJCzHlYdnv3vz4eE8FogAC1UC+HrIc24o8n2 v9aIkpdduodhZOvkPMLUcqnqJCWV5MjKG5llR+RMD+CvlL2nKY+/pJU5mcy1Y+rfud0Q wQZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=n/IL95Wmm8U96MgKaOoT7nL2QpGtnoogYL1x32sXkjI=; b=QmbvR19fORKUx+EwXBWgKk18wUblcUSNgBCXFHkFZ/J4B4ct8EFBBOo5AHDCch/rhp dahA7XbEEbjxYWvtNq1yUcRGS7GGppyNbdOrigeJr97ata429aYRkAOtlohK578Mvsgu 6WtiUYKYeb0PaTJ4p07DSrFZMh87m6G5CKlu4gMxk/xwIZiC5vhuwSpVLO+8g0O2e2sL 6x5wvTWwsKyrOeooSQjPKknuScO1AXfeJT1Wvq2ZQGou0ObnaULP7j70EJeg2361Gx+b Y2l7upymEJwi5GNkOxh8WtoK56xw/CtFW0qKjtk32o+AMjZ34hVokhw3Vvy8W/u7YPon LP2g== X-Gm-Message-State: AOAM5337mSG3cYtd+6AuF92vNLd4DKiUBN+nSL4honQlurFCc1qbCyaA BTVcAH+Fi/VamHkghqeb3esHQ4tt X-Google-Smtp-Source: ABdhPJwEbyPoAEMJOJ0hIEFVDclHW4N7zZwsTkVbAk+zUIVnroQyc1JKkuje7GqOyIR9Z04QK84L5Q== X-Received: by 2002:ac8:47ce:: with SMTP id d14mr486393qtr.285.1594662880553; Mon, 13 Jul 2020 10:54:40 -0700 (PDT) Received: from [10.0.10.8] (cpe-65-25-51-0.neo.res.rr.com. [65.25.51.0]) by smtp.googlemail.com with ESMTPSA id y67sm20665897qka.101.2020.07.13.10.54.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2020 10:54:40 -0700 (PDT) Message-ID: <5F0C9FDF.7000805@gmail.com> Date: Mon, 13 Jul 2020 13:54:39 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Arthur Chance CC: "freebsd-questions@FreeBSD.org" Subject: Re: Command to create multiple virtual NIC References: <5F0BABA9.9090105@gmail.com> <5F0C83B0.1060004@gmail.com> <5F0C8F94.6080207@gmail.com> <1f381b92-150c-14c0-ce51-e0addcd7b904@qeng-ho.org> In-Reply-To: <1f381b92-150c-14c0-ce51-e0addcd7b904@qeng-ho.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4B5B9s36trz4JL7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UELRaro6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of luzar722@gmail.com designates 2607:f8b0:4864:20::841 as permitted sender) smtp.mailfrom=luzar722@gmail.com X-Spamd-Result: default: False [-3.58 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.36)[-1.363]; RECEIVED_SPAMHAUS_PBL(0.00)[65.25.51.0:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; R_MIXED_CHARSET(0.77)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.968]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-1.02)[-1.018]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::841:from]; RCVD_TLS_ALL(0.00)[] 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: Mon, 13 Jul 2020 17:54:42 -0000 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 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?