Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2020 06:38:25 -0400
From:      D'Arcy Cain <darcy@druid.net>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: When is a switch not a switch?
Message-ID:  <ad0f2796-6ced-197e-ec67-35c8dce1eb02@druid.net>
In-Reply-To: <f055d428-c798-f89f-04d7-09c99ef280e5@druid.net>
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> <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net> <FEAD843A-6E76-4299-A94F-7D4ECEB098FD@punkt.de> <f055d428-c798-f89f-04d7-09c99ef280e5@druid.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ubMN54aaVRv4Hwjs3Lve2ZfyGLa96noS0
Content-Type: multipart/mixed; boundary="zpMy5QCQ7WsQQk8WlgCUIfVBRhZpNH3OC";
 protected-headers="v1"
From: D'Arcy Cain <darcy@druid.net>
To: freebsd-virtualization@freebsd.org
Message-ID: <ad0f2796-6ced-197e-ec67-35c8dce1eb02@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>
 <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net>
 <FEAD843A-6E76-4299-A94F-7D4ECEB098FD@punkt.de>
 <f055d428-c798-f89f-04d7-09c99ef280e5@druid.net>
In-Reply-To: <f055d428-c798-f89f-04d7-09c99ef280e5@druid.net>

--zpMy5QCQ7WsQQk8WlgCUIfVBRhZpNH3OC
Content-Type: multipart/mixed;
 boundary="------------F8759A19EDB82BE7CD0E936E"
Content-Language: en-US

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

On 10/25/20 10:24 AM, D'Arcy Cain wrote:
> Things got stranger.=C2=A0 First of all, here is my current setup:

And embarrassing but still strange.  Turns out that my problem had nothin=
g=20
to do with bridging.  I still don't know what is wrong but I am going to =

continue in the networking list.  Virtualization is not the issue.

For future searches, here is how I set up my system.  In rc.conf I did th=
is:
   hostname=3D"vm01.vex.net"
   me=3D41 # last octet of IP in hex
   vm_list=3D"" # fill in as you create VMs

I then include a common rc.conf that includes this:
   set -- $(/sbin/ifconfig -l ether); eth0=3D$1 eth1=3D$2
   eval "ifconfig_${eth0}_name=3D\"eth0\""
   eval "ifconfig_${eth1}_name=3D\"eth1\""
   ifconfig_eth0=3D"inet 0x629e8b${me}/27 up"
   ifconfig_eth1=3D"inet 0xc0a897${me}/24 up"
   ifconfig_eth0_ipv6=3D"inet6 2605:2600:1001::${me}/64 up"
   ifconfig_eth1_ipv6=3D"inet6 fc00:97:97::${me}/64 up"
   vm_enable=3D"YES"
   vm_dir=3D"zfs:zroot/VM"
   vm_delay=3D"5"
   defaultrouter=3D"98.158.139.94"
   ipv6_defaultrouter=3D2605:2600:1001::1

In rc.local I do this:
   sysctl -w net.inet.ip.forwarding=3D1 # could be added to sysctl.conf
   sysctl -w net.inet6.ip6.forwarding=3D1
   vm switch create public
   vm switch add public eth0
   vm switch create private
   vm switch add private eth1

Now VMs are on the local network.

--=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.

--------------F8759A19EDB82BE7CD0E936E--

--zpMy5QCQ7WsQQk8WlgCUIfVBRhZpNH3OC--

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

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

wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCX5qboQUDAAAAAAAKCRA/5DDweYZnXeA9
AQDizeDh7Ce8hr9jeRAXdb7Q0wzRc3jkQ32V9IywwL7ibwEA0Ziy+3q57QN4/qWvUwGNT8dvcl+D
6/O9XS2EfBfkxgE=
=5pVT
-----END PGP SIGNATURE-----

--ubMN54aaVRv4Hwjs3Lve2ZfyGLa96noS0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad0f2796-6ced-197e-ec67-35c8dce1eb02>