From e5bd8dbb24c01321f5417463af17a10df98cd546 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 23 Feb 2022 10:51:46 +0100 Subject: conf, ndp: Disable router advertisements on --config-net 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 +++ 1 file changed, 3 insertions(+) (limited to 'conf.c') 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]); } + if (c->pasta_conf_ns) + c->no_ra = 1; + if (c->mode == MODE_PASTA && c->pasta_netns_fd == -1) pasta_start_ns(c); -- cgit v1.2.3