rdisc.8 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .\" This manpage has been automatically generated by docbook2man
  2. .\" from a DocBook document. This tool can be found at:
  3. .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
  4. .\" Please send any bug reports, improvements, comments, patches,
  5. .\" etc. to Steve Cheng <steve@ggi-project.org>.
  6. .TH "RDISC" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
  7. .SH NAME
  8. rdisc \- network router discovery daemon
  9. .SH SYNOPSIS
  10. \fBrdisc\fR [ \fB-abdfstvV\fR] [ \fB\fIsend_address\fB\fR] [ \fB\fIreceive_address\fB\fR]
  11. .SH "DESCRIPTION"
  12. .PP
  13. \fBrdisc\fR implements client side of the ICMP router discover protocol.
  14. \fBrdisc\fR is invoked at boot time to populate the network
  15. routing tables with default routes.
  16. .PP
  17. \fBrdisc\fR listens on the ALL_HOSTS (224.0.0.1) multicast address
  18. (or \fIreceive_address\fR provided it is given)
  19. for ROUTER_ADVERTISE messages from routers. The received
  20. messages are handled by first ignoring those listed router addresses
  21. with which the host does not share a network. Among the remaining addresses
  22. the ones with the highest preference are selected as default routers
  23. and a default route is entered in the kernel routing table
  24. for each one of them.
  25. .PP
  26. Optionally, \fBrdisc\fR can avoid waiting for routers to announce
  27. themselves by sending out a few ROUTER_SOLICITATION messages
  28. to the ALL_ROUTERS (224.0.0.2) multicast address
  29. (or \fIsend_address\fR provided it is given)
  30. when it is started.
  31. .PP
  32. A timer is associated with each router address and the address will
  33. no longer be considered for inclusion in the the routing tables if the
  34. timer expires before a new
  35. \fBadvertise\fR message is received from the router.
  36. The address will also be excluded from consideration if the host receives an
  37. \fBadvertise\fR
  38. message with the preference being maximally negative.
  39. .PP
  40. Server side of router discovery protocol is supported by Cisco IOS
  41. and by any more or less complete UNIX routing daemon, f.e \fBgated\fR.
  42. .SH "OPTIONS"
  43. .TP
  44. \fB-a\fR
  45. Accept all routers independently of the preference they have in their
  46. \fBadvertise\fR messages.
  47. Normally \fBrdisc\fR only accepts (and enters in the kernel routing
  48. tables) the router or routers with the highest preference.
  49. .TP
  50. \fB-b\fR
  51. Opposite to \fB-a\fR, i.e. install only router with the best
  52. preference value. It is default behaviour.
  53. .TP
  54. \fB-d\fR
  55. Send debugging messages to syslog.
  56. .TP
  57. \fB-f\fR
  58. Run \fBrdisc\fR forever even if no routers are found.
  59. Normally \fBrdisc\fR gives up if it has not received any
  60. \fBadvertise\fR message after after soliciting three times,
  61. in which case it exits with a non-zero exit code.
  62. If \fB-f\fR is not specified in the first form then
  63. \fB-s\fR must be specified.
  64. .TP
  65. \fB-s\fR
  66. Send three \fBsolicitation\fR messages initially to quickly discover
  67. the routers when the system is booted.
  68. When \fB-s\fR is specified \fBrdisc\fR
  69. exits with a non-zero exit code if it can not find any routers.
  70. This can be overridden with the \fB-f\fR option.
  71. .TP
  72. \fB-t\fR
  73. Test mode. Do not go to background.
  74. .TP
  75. \fB-v\fR
  76. Be verbose i.e. send lots of debugging messages to syslog.
  77. .TP
  78. \fB-V\fR
  79. Print version and exit.
  80. .SH "HISTORY"
  81. .PP
  82. This program was developed by Sun Microsystems (see copyright
  83. notice in source file). It was ported to Linux by
  84. Alexey Kuznetsov
  85. <kuznet@ms2.inr.ac.ru>.
  86. It is now maintained by
  87. YOSHIFUJI Hideaki
  88. <yoshfuji@skbuff.net>.
  89. .SH "SEE ALSO"
  90. .PP
  91. \fBicmp\fR(7),
  92. \fBinet\fR(7),
  93. \fBping\fR(8).
  94. .SH "REFERENCES"
  95. .PP
  96. Deering, S.E.,ed "ICMP Router Discovery Messages",
  97. RFC1256, Network Information Center, SRI International,
  98. Menlo Park, Calif., September 1991.
  99. .SH "SECURITY"
  100. .PP
  101. \fBrdisc\fR requires CAP_NET_RAWIO to listen
  102. and send ICMP messages and capability CAP_NET_ADMIN
  103. to update routing tables.
  104. .SH "AVAILABILITY"
  105. .PP
  106. \fBrdisc\fR is part of \fIiputils\fR package
  107. and the latest versions are available in source form at
  108. http://www.skbuff.net/iputils/iputils-current.tar.bz2.