⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xnsrouted.8

📁 早期freebsd实现
💻 8
字号:
.\" Copyright (c) 1986, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)XNSrouted.8	8.1 (Berkeley) 6/5/93.\".Dd June 5, 1993.Dt XNSROUTED 8.Os BSD 4.3.Sh NAME.Nm XNSrouted.Nd NS Routing Information Protocol daemon.Sh SYNOPSIS.Nm XNSrouted.Op Fl q.Op Fl s.Op Fl t.Op Ar logfile.Sh DESCRIPTION.Nm XNSroutedis invoked at boot time to manage the Xerox NS routing tables.The NS routing daemon uses the Xerox NS RoutingInformation Protocol in maintaining up to date kernel routingtable entries..PpAvailable options:.Bl -tag -width logfile.It Fl qDo not supply routing information (opposite of.Fl soption below)..It Fl sForces .Nm XNSroutedto supply routing information whether it is acting as an internetworkrouter or not..It Fl tAll packets sent or received areprinted on the standard output.  In addition,.Nm XNSroutedwill not divorce itself from the controlling terminalso that interrupts from the keyboard will kill the process..It Ar logfileName of file in which .Nm XNSrouted Ns 'sactions should be logged.  This log contains informationabout any changes to the routing tables and a history ofrecent messages sent and received which are related tothe changed route..El.PpIn normal operation.Nm XNSroutedlistensfor routing information packets.  If the host is connected tomultiple NS networks, it periodically supplies copiesof its routing tables to any directly connected hostsand networks..PpWhen.Nm XNSroutedis started, it uses the.Dv SIOCGIFCONF.Xr ioctl 2to find thosedirectly connected interfaces configured into thesystem and marked.Dq up(the software loopback interfaceis ignored).  If multiple interfacesare present, it is assumed the host will forward packetsbetween networks..Nm XNSroutedthen transmits a .Em requestpacket on each interface (using a broadcast packet ifthe interface supports it) and enters a loop, listeningfor.Em requestand.Em responsepackets from other hosts..PpWhen a.Em requestpacket is received, .Nm XNSroutedformulates a reply based on the information maintained in itsinternal tables.  The.Em responsepacket generated contains a list of known routes, each markedwith a.Dq hop countmetric (a count of 16, or greater, isconsidered.Dq infinite ) .The metric associated with eachroute returned provides a metric.Em relative to the sender ..Pp.Em Responsepackets received by.Nm XNSroutedare used to update the routing tables if one of the followingconditions is satisfied:.Bl -bullet.ItNo routing table entry exists for the destination networkor host, and the metric indicates the destination is ``reachable''(i.e. the hop count is not infinite)..ItThe source host of the packet is the same as the router in theexisting routing table entry.  That is, updated information isbeing received from the very internetwork router through whichpackets for the destination are being routed..ItThe existing entry in the routing table has not been updated forsome time (defined to be 90 seconds) and the route is at leastas cost effective as the current route..ItThe new route describes a shorter route to the destination thanthe one currently stored in the routing tables; the metric ofthe new route is compared against the one stored in the tableto decide this..El.PpWhen an update is applied,.Nm XNSroutedrecords the change in its internal tables and generates a.Em responsepacket to all directly connected hosts and networks..Xr Routed 8waits a short periodof time (no more than 30 seconds) before modifying the kernel'srouting tables to allow possible unstable situations to settle..PpIn addition to processing incoming packets,.Nm XNSroutedalso periodically checks the routing table entries.If an entry has not been updated for 3 minutes, the entry's metricis set to infinity and marked for deletion.  Deletions are delayedan additional 60 seconds to insure the invalidation is propagatedto other routers..PpHosts acting as internetwork routers gratuitously supply theirrouting tables every 30 seconds to all directly connected hostsand networks..Sh SEE ALSO.Xr idp 4.Rs.%T "Internet Transport Protocols".%R "XSIS 028112".%Q "Xerox System Integration Standard".Re.Sh HISTORYThe.Nmcommand appeared in.Bx 4.3 .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -