Groups | Search | Server Info | Login | Register


Groups > linux.debian.maint.ipv6 > #148

Re: Command to Display Prefixes and Default router entries in Linux

From Bjørn Mork <bjorn@mork.no>
Newsgroups linux.debian.maint.ipv6
Subject Re: Command to Display Prefixes and Default router entries in Linux
Date 2022-06-24 10:10 +0200
Message-ID <EBMy5-6SLB-1@gated-at.bofh.it> (permalink)
References <EBwCZ-6J1C-3@gated-at.bofh.it> <EBzKx-6KNw-1@gated-at.bofh.it> <EBAwV-6Lil-1@gated-at.bofh.it>
Organization m

Show all headers | View raw


Dheeraj Kandula <dkandula@gmail.com> 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

Back to linux.debian.maint.ipv6 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Command to Display Prefixes and Default router entries in Linux Dheeraj Kandula <dkandula@gmail.com> - 2022-06-23 17:10 +0200
  Re: Command to Display Prefixes and Default router entries in  Linux Povl Ole Haarlev Olsen <poho@stderr.dk> - 2022-06-23 20:30 +0200
    Re: Command to Display Prefixes and Default router entries in Linux Dheeraj Kandula <dkandula@gmail.com> - 2022-06-23 21:20 +0200
      Re: Command to Display Prefixes and Default router entries in Linux Bjørn Mork <bjorn@mork.no> - 2022-06-24 10:10 +0200
        Re: Command to Display Prefixes and Default router entries in Linux Dheeraj Kandula <dkandula@gmail.com> - 2022-06-24 17:10 +0200

csiph-web