Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2017 23:23:44 +0200
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Trunking vlans via one NIC to managed switch
Message-ID:  <20170707232344.46a16f2d@thor.intern.walstatt.dynvpn.de>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170707232344.46a16f2d>