From nobody Sat Jan 20 06:23:22 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TH5yt4yKfz58LTl for ; Sat, 20 Jan 2024 06:23:34 +0000 (UTC) (envelope-from markbsdmail2023@gmail.com) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TH5ys4K43z45Hr for ; Sat, 20 Jan 2024 06:23:33 +0000 (UTC) (envelope-from markbsdmail2023@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=fFJ7Pt6f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of markbsdmail2023@gmail.com designates 2607:f8b0:4864:20::f2d as permitted sender) smtp.mailfrom=markbsdmail2023@gmail.com Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-68175861f3eso9158116d6.3 for ; Fri, 19 Jan 2024 22:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705731812; x=1706336612; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=kcNmvJ2NL9ppSYNsQ9cMOd9qQdabck1OygZOZy1XWtI=; b=fFJ7Pt6fMKBmr9nuF3nOM8f4y4yHzb4RLMGmg3W0uqdAV8wEO8XBIXZu9e+7oPyfNP WJH6Bh62xWnB2mG2FwempNrx+b4DG8LooQpcL98uwBV6zJO/A7yUcrHxVG1hULLgDbkn TX498wYGU7FV/fCzeb8eG4Ijw2geztp+VpdhhOXrHfe0h1bVVwqlR7+OBKMGLMC//gD6 E1GpjTgYgs+KPSSiF7OMT3AKPhPyLMWuMOQ/3r7NAmX9eVCpN76+pj6RphVxMWYYZaOg hgnxzffJDBbN4f2qynqRVDDlIEHLmm0TWqi8/e6smzB916NfPGHmU2UmB1Pu5rOOeTon Y52Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705731812; x=1706336612; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kcNmvJ2NL9ppSYNsQ9cMOd9qQdabck1OygZOZy1XWtI=; b=LIMpmN5IB5LYMtttylmimb1H/cmYrwpbmDOBF8FnznIHZ4YjOxwyCV63Lq5swPbLbo PWhKu3OU7hQQyrRZ87H77rgHm2UkuTPem0dhIsKOzzGQ1m41G1M7hER3M53ErOHAA/Tf a06JRtPiSfyPez/c38AxSfAW+jry6VnBXRdegkVHY3ELNONObtNIHMIOOs5GoYRIo5xd +I5k4cJG73AUxG/kuQcW6LB2yc8p+f8oLjmi45Vl3m2QLiB0hCCWobtOrbNXJG2DLTbT JVLWejlmgPSHRvtdKtAb2z2zVu2j1dW5h+W/auualcwGn0WmJJkjQc7WhV84rD2VVdiR E9Xg== X-Gm-Message-State: AOJu0Yws1c7tZQBL2y5FPSCH8pRGRYhYJu2jgaycE/0aU1Rgrob0pDT7 EIfwK+gm/igAFz0pVnzjzP/9cejUJMwpe9YuUD/bkwky9ZhO6e1QEwg143oxbNi8UJeH+RGnNCz M3VPtamxZcGU3matc8W2s2OCppCz3+XTEvsk= X-Google-Smtp-Source: AGHT+IFNBnTXkgET06ThrV/G68ueioEUbWkL9yfk/INpofoCCv10s5bQXMrnQ+1FhzUAGiyE7K3eXMvxSrHS/nrlDOQ= X-Received: by 2002:ad4:4eed:0:b0:680:f8a6:bcf9 with SMTP id dv13-20020ad44eed000000b00680f8a6bcf9mr1189641qvb.13.1705731811998; Fri, 19 Jan 2024 22:23:31 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Mark Date: Sat, 20 Jan 2024 09:23:22 +0300 Message-ID: Subject: Move VMs from vmswitch to vether0? To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000bc80f6060f5aa28a" X-Spamd-Bar: - X-Spamd-Result: default: False [-2.00 / 15.00]; HTTP_TO_IP(1.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2d:from] X-Rspamd-Queue-Id: 4TH5ys4K43z45Hr --000000000000bc80f6060f5aa28a Content-Type: text/plain; charset="UTF-8" Hi all, today I've learned and been reading about VETHER(4). Virtual ethernet interface on FreeBSD, wanted to try it for my VMs networking. My VMs currently are networking through vm-vmswitch with a set of private IP block; 192.168.2.1/29 (PF - NAT involved); # vm switch list NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS vmswitch standard vm-vmswitch 192.168.2.1/29 no - - - My question is; Is it possible to not use any virtual switch at all, but create a vether0 on the host, and assign it private IPs and aliases (thinking each alias IP would be for each VM of mine), and make VMs communicate with each other host machine through vether0 and its IP aliases? In order to try these all above, on my OpenBSD VM, I; Added in its conf file: network0_device="vether0" Started it, defined it's static IP as; 10.0.0.2 (vether0 alias), and gateway as 10.0.0.1 (vether0 IP). That didn't work. Any clue? Regards. --000000000000bc80f6060f5aa28a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all, today I've learned and been reading about VETH= ER(4). Virtual ethernet interface on FreeBSD, wanted to try it for my VMs n= etworking.

My VMs currently are networking through vm-vm= switch with a set of private IP block; 19= 2.168.2.1/29 (PF - NAT involved);

# vm swi= tch list
NAME =C2=A0 =C2=A0 =C2=A0TYPE =C2=A0 =C2=A0 =C2=A0IFACE =C2=A0 = =C2=A0 =C2=A0 =C2=A0ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 PRIVATE =C2=A0MTU = =C2=A0VLAN =C2=A0PORTS
vmswitch =C2=A0standard =C2=A0vm-vmswitch =C2=A0<= a href=3D"http://192.168.2.1/29">192.168.2.1/29 =C2=A0no =C2=A0 =C2=A0 = =C2=A0 - =C2=A0 =C2=A0- =C2=A0 =C2=A0 -

My que= stion is;
Is it possible to not use any virtual switch at all, but creat= e a vether0 on the host, and assign it private IPs and aliases (thinking ea= ch alias IP would be for each VM of mine), and make VMs communicate with ea= ch other host machine through vether0 and its IP aliases?
In order to try these all above, on my OpenBSD VM, I;
Added = in its conf file: network0_device=3D"vether0"
Started it, defi= ned it's static IP as; 10.0.0.2 (vether0 alias), and gateway as 10.0.0.= 1 (vether0 IP).

That didn't work. Any clue?

Regards.
<= /div>
--000000000000bc80f6060f5aa28a--