Path: csiph.com!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!aioe.org!bofh.it!news.nic.it!robomod From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Newsgroups: linux.debian.maint.ipv6 Subject: Re: Command to Display Prefixes and Default router entries in Linux Date: Fri, 24 Jun 2022 10:10:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-ipv6-request@lists.debian.org Fri Jun 24 08:08:41 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.76 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, GMAIL=1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Injected-Via-Gmane: http://gmane.org/ Organization: m MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:gp2zNiQALDAhwqceiNsSY5b/528= X-Mailing-List: archive/latest/4963 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87edzeiivn.fsf@miraculix.mork.no Approved: robomod@news.nic.it Lines: 25 Sender: robomod@news.nic.it X-Original-Date: Fri, 24 Jun 2022 10:08:12 +0200 X-Original-Message-ID: <87edzeiivn.fsf@miraculix.mork.no> X-Original-References: Xref: csiph.com linux.debian.maint.ipv6:148 Dheeraj Kandula writes: > Thanks Povl. > > In the "ip neighbor" output, I see entries listed with "router". Maybe it > is a RA Default router learnt entry. Nope. That's the 'router' flag in the neigbour advertisment. Lots of systems will set this flag without sending RAs. Linux will set it if forwarding is enable on the interface where the NA is going out. >From net/ipv6/addrconf.c: /* send unsolicited NA if enabled */ if (send_na && (ifp->idev->cnf.ndisc_notify || dev_net(dev)->ipv6.devconf_all->ndisc_notify)) { ndisc_send_na(dev, &in6addr_linklocal_allnodes, &ifp->addr, /*router=*/ !!ifp->idev->cnf.forwarding, /*solicited=*/ false, /*override=*/ true, /*inc_opt=*/ true); } Bjørn