Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2020 22:47:46 -0400
From:      D'Arcy Cain <darcy@druid.net>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: When is a switch not a switch?
Message-ID:  <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net>
In-Reply-To: <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de>
References:  <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> <CF189122-7D85-4BF1-9172-75D3EE0E77FB@punkt.de> <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net> <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de> <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net> <A075C069-1F89-428C-BDB7-7A9F44A4E283@punkt.de> <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9VWmIojpVNM5X2IX12FC5MMzT25Cz4Atj
Content-Type: multipart/mixed; boundary="yd7Jtb4AgJcLURycmM9kV28eMgqUwZlUx";
 protected-headers="v1"
From: D'Arcy Cain <darcy@druid.net>
To: "Patrick M. Hausen" <hausen@punkt.de>
Cc: freebsd-virtualization@freebsd.org
Message-ID: <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net>
Subject: Re: When is a switch not a switch?
References: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net>
 <20201020065630.GE8272@funkthat.com>
 <CF189122-7D85-4BF1-9172-75D3EE0E77FB@punkt.de>
 <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net>
 <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de>
 <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net>
 <A075C069-1F89-428C-BDB7-7A9F44A4E283@punkt.de>
 <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de>
In-Reply-To: <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de>

--yd7Jtb4AgJcLURycmM9kV28eMgqUwZlUx
Content-Type: multipart/mixed;
 boundary="------------2417412F780BCE09EB82A2CF"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------2417412F780BCE09EB82A2CF
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 10/20/20 7:52 AM, Patrick M. Hausen wrote:
> What you need to configure depends on your hardware.
> I made a table for the various interfaces we use at our place:
>=20
> em:		-rxcsum -txcsum -lro -vlanmtu -vlanhwcsum -vlanhwfilter -vlanhwtag=
 up
> igb:		-rxcsum -rxcsum6 -txcsum -txcsum6 -tso -vlanhwtag -vlanhwtso up

I have bge(4) cards.  This seems to be the correct one for me.

It still doesn't work.  Here is the relevant lines from my rc.conf.  I ma=
y=20
as well use the actual values.  This is verbatim.

   ifconfig_eth0=3D"-rxcsum -rxcsum6 -txcsum -txcsum6 -tso -vlanhwtag=20
-vlanhwtso up"
   cloned_interfaces=3D"bridge0 bridge1"
   ifconfig_bridge0_name=3D"public"
   ifconfig_public=3D"addm eth0 up"
   ifconfig_public_alias0=3D"inet 0x629e8b${me}/27"
   ifconfig_public_alias0_ipv6=3D"inet6 2605:2600:1001::${me}/64"
   defaultrouter=3D"98.158.139.94"
   ipv6_defaultrouter=3D2605:2600:1001::1

Note that "me" is set to the hex value of the last octet, 65 in this case=
=2E

Here is what the interfaces look like:

eth0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric=
 0=20
mtu 1500
         options=3D80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
         ether 14:02:ec:31:60:d0
         media: Ethernet autoselect (1000baseT <full-duplex>)
         status: active
         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
public: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu=
 1500
         ether 02:9d:b2:b8:78:00
         inet 98.158.139.65 netmask 0xffffffe0 broadcast 98.158.139.95
         id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
         maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
         root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
         member: eth0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                 ifmaxaddr 0 port 1 priority 128 path cost 55
         groups: bridge
         nd6 options=3D9<PERFORMNUD,IFDISABLED>
tap0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1=
500
         description: vmnet-BASE-0-public
         options=3D80000<LINKSTATE>
         ether 00:bd:5f:56:f8:00
         groups: tap vm-port
         media: Ethernet autoselect
         status: active
         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
         Opened by PID 3679

In the VM I set the IP to 71 on the same network.  Here is what that look=
s like:

vtnet0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metr=
ic 0=20
mtu 1500
         options=3D80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
         ether 22:22:22:22:22:00
         inet 98.158.139.71 netmask 0xffffffe0 broadcast 98.158.139.95
         media: Ethernet 10Gbase-T <full-duplex>
         status: active
         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Everything looks correct but I can't even ping between the host and the V=
M.

--=20
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy@VybeNetworks.com, VoIP: sip:darcy@druid.net

Disclaimer: By sending an email to ANY of my addresses you
are agreeing that:

1.  I am by definition, "the intended recipient".
2.  All information in the email is mine to do with as I see
     fit and make such financial profit, political mileage, or
     good joke as it lends itself to. In particular, I may quote
     it where I please.
3.  I may take the contents as representing the views of
     your company if I so wish.
4.  This overrides any disclaimer or statement of
     confidentiality that may be included or implied in
     your message.

--------------2417412F780BCE09EB82A2CF--

--yd7Jtb4AgJcLURycmM9kV28eMgqUwZlUx--

--9VWmIojpVNM5X2IX12FC5MMzT25Cz4Atj
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCX5Dy0gUDAAAAAAAKCRA/5DDweYZnXcj7
AQDFzKjc7jNBPjQIuy/Z5sijlKJgg4xUazq4vugZR+sDhQEAnuXV1aknXHs8IZr9Ws37gPrHiJZ5
uVS4J4is5xT5AAM=
=n+GF
-----END PGP SIGNATURE-----

--9VWmIojpVNM5X2IX12FC5MMzT25Cz4Atj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6267599d-bc0c-6d63-bb19-1fc695e53997>