From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 3/3] conf, ndp: Disable router advertisements on --config-net Date: Wed, 23 Feb 2022 11:04:59 +0100 Message-ID: <20220223100459.1035628-3-sbrivio@redhat.com> In-Reply-To: <20220223100459.1035628-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5836724992375289914==" --===============5836724992375289914== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable If we statically configure a default route, and also advertise it for SLAAC, the kernel will try moments later to add the same route: ICMPv6: RA: ndisc_router_discovery failed to add default route Signed-off-by: Stefano Brivio --- conf.c | 3 +++ passt.1 | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf.c b/conf.c index c8a3693..08f24be 100644 --- a/conf.c +++ b/conf.c @@ -1255,6 +1255,9 @@ void conf(struct ctx *c, int argc, char **argv) usage(argv[0]); } =20 + if (c->pasta_conf_ns) + c->no_ra =3D 1; + if (c->mode =3D=3D MODE_PASTA && c->pasta_netns_fd =3D=3D -1) pasta_start_ns(c); =20 diff --git a/passt.1 b/passt.1 index 65b473b..1e7cf1a 100644 --- a/passt.1 +++ b/passt.1 @@ -440,7 +440,9 @@ The default path is shown with --help. .TP .BR \-\-config-net Configure networking in the namespace: set up addresses and routes as config= ured -or sourced from the host, and bring up the tap interface. +or sourced from the host, and bring up the tap interface. This option implies +\fB--no-ra\fR: the static configuration of the IPv6 address will not allow t= he +kernel to set up the default route using SLAAC. =20 .TP .BR \-\-ns-mac-addr " " \fIaddr --=20 2.34.1 --===============5836724992375289914==--