RDISC6(8)
πΈ NAME πΈ
rdisc6 β the ICMPv6 Router Discovery tool, and yes bestie this is the rdisc6(8) page from the System Manager's Manual, so buckle up π
β¨ SYNOPSIS β¨
rdisc6 [-qv] [-r attempts] [-s source_ip] [-w wait_ms] [IPv6 address]
<iface>
π°οΈ DESCRIPTION π°οΈ
Okay so RDisc6 is a Unix program that implements ICMPv6 Router Discovery in userland β which is normally the kernel's whole job, but here we are doing it ourselves, main character energy fr fr π . You use it to look up the list of on-link routers and IPv6 prefixes.
It can also be used to force the kernel to update the state of a given IPv6-autoconfigured network interface. Like, giving the kernel a lil nudge, you're welcome π«Ά.
The name of the network interface to probe routers for must be specified. Non-negotiable, it's required, periodt.
π OPTIONS π
-1,--singleβ exit the second the first advertisement shows up. No waiting around, we're busy π-h,--helpβ show some help and dip.-m,--multipleβ wait for possible multiple advertisements and print all of them. This is the default btw, so if you didn't say anything, this is what you got β¨-n,--numericβ if the optional parameter isn't a valid IPv6 address, don't even try to resolve it as a DNS hostname. Just no. π-q,--quietβ only display the advertised IPv6 prefixes. If it fails, display absolutely nothing. That's mostly useful when you're calling the program from a shell script, where silence is golden π-rattempts,--retryattempts β send ICMPv6 Router Discovery that many times until a reply is received, or just abort. By default,rdisc6will try 3 times before aborting (that'sMAX_RTR_SOLICITATIONSfrom RFC2461, iykyk).-ssource_ip,--sourcesource_ip β specify the IPv6 address to be used as the source for the router solicitation packets π-V,--versionβ display program version and license, then exit. Iconic.-v,--verboseβ display verbose information. That is the default, so congrats, you're already verbose π-wwait_ms,--waitwait_ms β wait wait_ms milliseconds for a response before retrying. By default,rdisc6waits 4 second between each attempts (RTR_SOLICITATION_INTERVALfrom RFC2461, no cap).
Okay so exit codes, pay attention bestie: if rdisc6 does not receive any response after the specified number of attempts, waiting wait_ms milliseconds each time, it will exit with code 2. On error, it exits with code 1. Otherwise it exits with code 0. Simple as π
π SECURITY π
rdisc6 must be setuid root to allow use by non privileged users. And before any attempt is made to send or receive data from the network, it will drop its root privileges β that's to reduce the possible impact of a security vulnerability. Responsible king behavior, we love to see it π
π SEE ALSO π
π AUTHOR π
RΓ©mi Denis-Courmont <remi at remlab dot net>
That's the whole vibe, bestie π
β this page is rdisc6 from the System Manager's Manual, dated $Date$, and it's filed under RDISC6(8). Go discover some routers, you got this π¦π
π¦ where this page comes from
- alpine 3.22: ndisc6-doc 1.0.8-r1 Β· GPL-2.0-or-later
- alpine 3.23: ndisc6-doc 1.0.8-r1 Β· GPL-2.0-or-later
- alpine 3.24: ndisc6-doc 1.0.8-r1 Β· GPL-2.0-or-later
- arch rolling: ndisc6 1.0.9-1 Β· GPL-2.0-only OR GPL-3.0-only
- debian bookworm: ndisc6 1.0.5-1+b2
- debian trixie: ndisc6 1.0.7-1
- epel 10: ndisc6 1.0.8-4.el10_2 Β· GPL-2.0-only OR GPL-3.0-only
- epel 9: ndisc6 1.0.7-3.el9 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 43: ndisc6 1.0.8-4.fc43 Β· GPL-2.0-only OR GPL-3.0-only
- fedora 44: ndisc6 1.0.8-5.fc44 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: ndisc6 1.0.4
- nixpkgs unstable: ndisc6 1.0.9
- ubuntu jammy: ndisc6 1.0.4-2ubuntu2
- ubuntu noble: ndisc6 1.0.7-1ubuntu2
- ubuntu questing: ndisc6 1.0.7-1ubuntu2
- ubuntu resolute: ndisc6 1.0.8-1
- ubuntu stonking: ndisc6 1.0.8-1
- Copyright Β© 2004-2006 RΓ©mi Denis-Courmont
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms