From owner-freebsd-questions@freebsd.org Fri Jul 7 21:24:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2B92DABD01 for ; Fri, 7 Jul 2017 21:24:00 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C7263DF0 for ; Fri, 7 Jul 2017 21:23:59 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([78.55.111.92]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M9NIY-1dYV4L47sU-00CfPj for ; Fri, 07 Jul 2017 23:23:52 +0200 Date: Fri, 7 Jul 2017 23:23:44 +0200 From: "O. Hartmann" To: FreeBSD Questions Subject: Trunking vlans via one NIC to managed switch Message-ID: <20170707232344.46a16f2d@thor.intern.walstatt.dynvpn.de> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/T6J6=sldsS60EFeflYhGm3y"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:NRriAci4c8ckTUX9V+TC79yhnoIKa9HNzMHVscVKlbtDm4VfGyt hgOAerVkz5XHmb5qlqn5EPc3BZGeXwEYLb8VYVUIP37mDdJJMzc+WVn7RasRbwTn/WvxjN0 oY5ekgvCm+KOZBGR4H404GhORcc4xpqhUWjmjc9BN3XvTPGVUj7xv299c2mezdaLBIRr2YX EGb6O+UmWSFxsx/bg3SvA== X-UI-Out-Filterresults: notjunk:1;V01:K0:PmVjR2ENIdc=:Yilvp9F6gHrIDJBA/3ykpU 2RqnF37dZZCYvfvf8476leElmIJQm8aA5psXoW66EptTDlfDAFmgX8MI5PnL8xVw9JLMEeYO8 kXvWVAEJdkn8b2Rjg7hRYWWKxeKSWnyuEoZOFSy2GBqpCqxC7TiwBjnWsqVONF7RhH6kzXC3A nUQTmw8t2HlRDpQ2xvADsrn/eYWDOYfBkbHNU8y0K98jfABHH1njE9Mb27AvR6K5zXNT41fdC jkbR3cLOkkziR8rI5kUIbhYgre6xh9NypCHKvIdiBfsuShVz//rnePSR4macOnRS+U+wyLMFh 5DzrPUqh7s1QusqanTamCK24kZGikp6+yWEJNwYs7UZI1h0XRJebxcwlBRiLiTfbs1WvNf55e AqtEzuGbS3HZBEcxiG9knsschecD2VN8wQFsGqmjME9B6WDQxVlf1s/cgfsWi3GtmWC6mhZXa pLm67EmIqHQtw5bdLph2oCKp2QG110N//39hPSsOQm0IWzJzHpRMfICWPQMIK2EUgv+ljSr7+ qY6kLakpHxmQyavSafnFjb9PDbGeiix9fPDBIzLRLcsIj+/dZytnfzlNLZ1bChNMw8PWM2ild OduZUznqeB49aXSSRBH5O4J5dGwUpozrrgZURH9iziF8JRiQko0D6n5NhfGwy4FQd5yypmlMP jNkuQSaS7h+4Mzu7KscWhqwGyVha9BI9J7RbemkE1SROKe5DqkpUjtcIEqee4AR3dsepgXo4d 1BCAoK8K4OVXmDmqj3t6o+gcWrKZtl3IcgQEFcOuX6yz1bnoVzTl7nYWeH0= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2017 21:24:00 -0000 --Sig_/T6J6=sldsS60EFeflYhGm3y Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, please CC me, I'm not a subscriber. I have a self-made router running 12-CURRENT (PCengines APU 2C4), with thre= e NICs (igb0 - igb2). igb0 is attached to a modem via tun0 (cloned from igb0). The switch, a SoHo Netgear GS110TP, has three vlans, 2 (VoIP), 10 (my inter= nal net) and 100 (a free net/guest net).=20 Somehow I struggle with proper routing. On the router, I have three vlans, = 2, 10 and 100 with the appropriate igb1.2, igb1.10, igb1.100. At the moment, the igb1 interface has net 192.168.0.1/24 (my future vlan10). Before bothering you with details of my oddysee, I'd like to know whether i= t would be possible to trunk several vlans via one dedicated NIC and perform additiona= ly vlan routing. My routing on the router looks like this: root@gate:~ # netstat -Warn Routing tables Internet: Destination Gateway Flags Use Mtu Netif Exp= ire default xxx.xxx.xxx.xxx US 513 1492 tun0 xxx.xxx.xxx.xxx link#12 UHS 0 1492 tun0 xxx.xxx.xxx.xxx link#12 UHS 0 16384 lo0 127.0.0.1 link#5 UH 111 16384 lo0 192.168.2.0/24 link#7 U 0 1500 igb1.2 192.168.2.1 link#7 UHS 0 16384 lo0 192.168.0.0/24 link#9 U 0 1500 igb1.10 192.168.0.1 link#9 UHS 0 16384 lo0 192.168.66.0/24 link#10 U 0 1500 igb1.66 192.168.66.1 link#10 UHS 0 16384 lo0 192.168.100.0/24 link#11 U 0 1500 igb1.100 192.168.100.1 link#11 UHS 0 16384 lo0 Gatewaying is enabled. Before starting discussing the oddness of configuration of the Netgear GS11= 0TP, I'd like to ensure that on FreeBSD's side is everything all right (I doubt my config= , so I need some help and deeper insights into routing with FreeBSD). Thanks in advance, Oliver p.s. please CC ... --Sig_/T6J6=sldsS60EFeflYhGm3y Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWV/74AAKCRDS528fyFhY lA5kAf9fGcDdZdQ1MVFV2QYXuGfzDrGeTqTZxHTAUXAeFKOKkpPW9NEb9PsaOHSO wDas47tJoewe351DT6H1iZqzKRMsAf47DA0ldrQ4bMtOl+JgaABdo/x9kd1Vu6d1 1mFSeTsyGGKpHnjmc/CcTcwp0Rnw04/pBxXICYfpahMfv53iMU3U =+yRF -----END PGP SIGNATURE----- --Sig_/T6J6=sldsS60EFeflYhGm3y--