public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH] passt.1: Default host interfaces are now selected based on IP version
Date: Sat, 30 Jul 2022 22:19:43 +0200	[thread overview]
Message-ID: <20220730201943.1456243-1-sbrivio@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]

Reflect the changes from commit 4b2e018d70f3 ("Allow different
external interfaces for IPv4 and IPv6 connectivity") into the manual.

Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
 passt.1 | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/passt.1 b/passt.1
index 4e06c0c..378778c 100644
--- a/passt.1
+++ b/passt.1
@@ -138,8 +138,8 @@ Assign IPv4 \fIaddr\fR via DHCP (\fByiaddr\fR), or \fIaddr\fR via DHCPv6 (option
 for an IPv6 \fIaddr\fR.
 This option can be specified zero (for defaults) to two times (once for IPv4,
 once for IPv6).
-By default, assigned IPv4 and IPv6 addresses are taken from the host interface
-with the first default route.
+By default, assigned IPv4 and IPv6 addresses are taken from the host interfaces
+with the first default route for the corresponding IP version.
 
 .TP
 .BR \-n ", " \-\-netmask " " \fImask
@@ -153,8 +153,8 @@ according to the CIDR block of the assigned address (RFC 4632).
 .BR \-M ", " \-\-mac-addr " " \fIaddr
 Use source MAC address \fIaddr\fR when communicating to the guest or to the
 target namespace.
-Default is to use the MAC address of the interface with the first default route
-on the host.
+Default is to use the MAC address of the interface with the first IPv4 default
+route on the host.
 
 .TP
 .BR \-g ", " \-\-gateway " " \fIaddr
@@ -163,7 +163,7 @@ Assign IPv4 \fIaddr\fR as default gateway via DHCP (option 3), or IPv6
 This option can be specified zero (for defaults) to two times (once for IPv4,
 once for IPv6).
 By default, IPv4 and IPv6 addresses are taken from the host interface with the
-first default route.
+first default route for the corresponding IP version.
 
 Note: these addresses are also used as source address for packets directed to
 the guest or to the target namespace having a loopback or local source address,
@@ -173,7 +173,8 @@ to allow mapping of local traffic to guest and target namespace. See the
 .TP
 .BR \-i ", " \-\-interface " " \fIname
 Use host interface \fIname\fR to derive addresses and routes.
-Default is to use the interface with the first default route.
+Default is to use the interfaces with the first default routes for each IP
+version.
 
 .TP
 .BR \-D ", " \-\-dns " " \fIaddr
-- 
@@ -138,8 +138,8 @@ Assign IPv4 \fIaddr\fR via DHCP (\fByiaddr\fR), or \fIaddr\fR via DHCPv6 (option
 for an IPv6 \fIaddr\fR.
 This option can be specified zero (for defaults) to two times (once for IPv4,
 once for IPv6).
-By default, assigned IPv4 and IPv6 addresses are taken from the host interface
-with the first default route.
+By default, assigned IPv4 and IPv6 addresses are taken from the host interfaces
+with the first default route for the corresponding IP version.
 
 .TP
 .BR \-n ", " \-\-netmask " " \fImask
@@ -153,8 +153,8 @@ according to the CIDR block of the assigned address (RFC 4632).
 .BR \-M ", " \-\-mac-addr " " \fIaddr
 Use source MAC address \fIaddr\fR when communicating to the guest or to the
 target namespace.
-Default is to use the MAC address of the interface with the first default route
-on the host.
+Default is to use the MAC address of the interface with the first IPv4 default
+route on the host.
 
 .TP
 .BR \-g ", " \-\-gateway " " \fIaddr
@@ -163,7 +163,7 @@ Assign IPv4 \fIaddr\fR as default gateway via DHCP (option 3), or IPv6
 This option can be specified zero (for defaults) to two times (once for IPv4,
 once for IPv6).
 By default, IPv4 and IPv6 addresses are taken from the host interface with the
-first default route.
+first default route for the corresponding IP version.
 
 Note: these addresses are also used as source address for packets directed to
 the guest or to the target namespace having a loopback or local source address,
@@ -173,7 +173,8 @@ to allow mapping of local traffic to guest and target namespace. See the
 .TP
 .BR \-i ", " \-\-interface " " \fIname
 Use host interface \fIname\fR to derive addresses and routes.
-Default is to use the interface with the first default route.
+Default is to use the interfaces with the first default routes for each IP
+version.
 
 .TP
 .BR \-D ", " \-\-dns " " \fIaddr
-- 
2.35.1


                 reply	other threads:[~2022-07-30 20:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220730201943.1456243-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).