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

📄 ripd.texi

📁 大名鼎鼎的路由器源码。程序分ZEBRA、OSPFRIP等3个包。程序框架采用一个路由协议一个进程的方式
💻 TEXI
📖 第 1 页 / 共 2 页
字号:
First, one should specify the access-list.  Next, the name of theaccess-list is used in the distribute-list command.  For example, in thefollowing configuration @samp{eth0} will permit only the paths thatmatch the route 10.0.0.0/8@example@group!router rip distribute-list private in eth0!access-list private permit 10 10.0.0.0/8access-list private deny any!@end group@end example@end deffn@code{distribute-list} can be applied to both incoming and outgoing data.@deffn Command {distribute-list prefix @var{prefix_list} (in|out) @var{ifname}} {}You can apply prefix lists to the interface with a@code{distribute-list} command.  @var{prefix_list} is the prefix listname.  Next is the direction of @samp{in} or @samp{out}.  If@var{direct} is @samp{in} the access list is applied to input packets.@end deffn@node RIP Metric Manipulation, RIP distance, Filtering RIP Routes, RIP@comment  node-name,  next,  previous,  up@section RIP Metric ManipulationRIP metric is a value for distance for the network.  Usually@command{ripd} increment the metric when the network information isreceived.  Redistributed routes' metric is set to 1.@deffn {RIP command} {default-metric <1-16>} {}@deffnx {RIP command} {no default-metric <1-16>} {}This command modifies the default metric value for redistributed routes.  Thedefault value is 1.  This command does not affect connected routeeven if it is redistributed by @command{redistribute connected}.  To modifyconnected route's metric value, please use @command{redistributeconnected metric} or @command{route-map}.  @command{offset-list} alsoaffects connected routes.@end deffn@deffn {RIP command} {offset-list @var{access-list} (in|out)} {}@deffnx {RIP command} {offset-list @var{access-list} (in|out) @var{ifname}} {}@end deffn@node RIP distance, RIP route-map, RIP Metric Manipulation, RIP@comment  node-name,  next,  previous,  up@section RIP distanceDistance value is used in zebra daemon.  Default RIP distance is 120.@deffn {RIP command} {distance <1-255>} {}@deffnx {RIP command} {no distance <1-255>} {}Set default RIP distance to specified value.@end deffn@deffn {RIP command} {distance <1-255> @var{A.B.C.D/M}} {}@deffnx {RIP command} {no distance <1-255> @var{A.B.C.D/M}} {}Set default RIP distance to specified value when the route's source IPaddress matches the specified prefix.@end deffn@deffn {RIP command} {distance <1-255> @var{A.B.C.D/M} @var{access-list}} {}@deffnx {RIP command} {no distance <1-255> @var{A.B.C.D/M} @var{access-list}} {}Set default RIP distance to specified value when the route's source IPaddress matches the specified prefix and the specified access-list.@end deffn@node RIP route-map, RIP Authentication, RIP distance, RIP@comment  node-name,  next,  previous,  up@section RIP route-mapUsage of @command{ripd}'s route-map support.Optional argument route-map MAP_NAME can be added to each @code{redistribute}statement.@exampleredistribute static [route-map MAP_NAME]redistribute connected [route-map MAP_NAME].....@end exampleCisco applies route-map _before_ routes will exported to rip routetable.  In current Zebra's test implementation, @command{ripd} applies route-mapafter routes are listed in the route table and before routes will be announcedto an interface (something like output filter). I think it is not so clear,but it is draft and it may be changed at future.Route-map statement (@pxref{Route Map}) is needed to use route-mapfunctionality.@deffn {Route Map} {match interface @var{word}} {}This command match to incoming interface.  Notation of this match isdifferent from Cisco. Cisco uses a list of interfaces - NAME1 NAME2... NAMEN.  Ripd allows only one name (maybe will change in thefuture).  Next - Cisco means interface which includes next-hop ofroutes (it is somewhat similar to "ip next-hop" statement).  Ripdmeans interface where this route will be sent. This difference isbecause "next-hop" of same routes which sends to different interfacesmust be different. Maybe it'd be better to made new matches - say"match interface-out NAME" or something like that.@end deffn@deffn {Route Map} {match ip address @var{word}} {}@deffnx {Route Map} {match ip address prefix-list @var{word}} {}Match if route destination is permitted by access-list.@end deffn@deffn {Route Map} {match ip next-hop A.B.C.D} {}Cisco uses here <access-list>, @command{ripd} IPv4 address. Match ifroute has this next-hop (meaning next-hop listed in the rip routetable - "show ip rip")@end deffn@deffn {Route Map} {match metric <0-4294967295>} {}This command match to the metric value of RIP updates.  For otherprotocol compatibility metric range is shown as <0-4294967295>.  Butfor RIP protocol only the value range <0-16> make sense.@end deffn@deffn {Route Map} {set ip next-hop A.B.C.D} {}This command set next hop value in RIPv2 protocol.  This command doesnot affect RIPv1 because there is no next hop field in the packet.@end deffn@deffn {Route Map} {set metric <0-4294967295>} {}Set a metric for matched route when sending announcement.  The metricvalue range is very large for compatibility with other protocols.  ForRIP, valid metric values are from 1 to 16.@end deffn@node RIP Authentication, RIP Timers, RIP route-map, RIP@comment  node-name,  next,  previous,  up@section RIP Authentication@deffn {Interface command} {ip rip authentication mode md5} {}@deffnx {Interface command} {no ip rip authentication mode md5} {}Set the interface with RIPv2 MD5 authentication.@end deffn@deffn {Interface command} {ip rip authentication mode text} {}@deffnx {Interface command} {no ip rip authentication mode text} {}Set the interface with RIPv2 simple password authentication.@end deffn@deffn {Interface command} {ip rip authentication string @var{string}} {}@deffnx {Interface command} {no ip rip authentication string @var{string}} {}RIP version 2 has simple text authentication.  This command setsauthentication string.  The string must be shorter than 16 characters.@end deffn@deffn {Interface command} {ip rip authentication key-chain @var{key-chain}} {}@deffnx {Interface command} {no ip rip authentication key-chain @var{key-chain}} {}Specifiy Keyed MD5 chain.@end deffn@example!key chain test key 1  key-string test!interface eth1 ip rip authentication mode md5 ip rip authentication key-chain test!@end example@node RIP Timers, Show RIP Information, RIP Authentication, RIP@comment  node-name,  next,  previous,  up@section RIP Timers@deffn {RIP command} {timers basic @var{update} @var{timeout} @var{garbage}} {}RIP protocol has several timers.  User can configure those timers' valuesby @code{timers basic} command.The default settings for the timers are as follows: @itemize @bullet @itemThe update timer is 30 seconds. Every update timer seconds, the RIPprocess is awakened to send an unsolicited Response message containingthe complete routing table to all neighboring RIP routers.@itemThe timeout timer is 180 seconds. Upon expiration of the timeout, theroute is no longer valid; however, it is retained in the routing tablefor a short time so that neighbors can be notified that the route hasbeen dropped.@itemThe garbage collect timer is 120 seconds.  Upon expiration of thegarbage-collection timer, the route is finally removed from the routingtable.@end itemizeThe @code{timers basic} command allows the the default values of the timerslisted above to be changed.@end deffn@deffn {RIP command} {no timers basic} {}The @code{no timers basic} command will reset the timers to the defaultsettings listed above.@end deffn@node Show RIP Information, RIP Debug Commands, RIP Timers, RIP@comment  node-name,  next,  previous,  up@section Show RIP InformationTo display RIP routes.@deffn Command {show ip rip} {}Show RIP routes.@end deffnThe command displays all RIP routes. For routes that are receivedthrough RIP, this command will display the time the packet was sent andthe tag information.  This command will also display this informationfor routes redistributed into RIP.@c Exmaple here.@deffn Command {show ip protocols} {}The command displays current RIP status.  It includes RIP timer,filtering, version, RIP enabled interface and RIP peer inforation.@end deffn@example@groupripd> @b{show ip protocols}Routing Protocol is "rip"  Sending updates every 30 seconds with +/-50%, next due in 35 seconds  Timeout after 180 seconds, garbage collect after 120 seconds  Outgoing update filter list for all interface is not set  Incoming update filter list for all interface is not set  Default redistribution metric is 1  Redistributing: kernel connected  Default version control: send version 2, receive version 2     Interface        Send  Recv  Routing for Networks:    eth0    eth1    1.1.1.1    203.181.89.241  Routing Information Sources:    Gateway          BadPackets BadRoutes  Distance Last Update@end group@end example@node RIP Debug Commands,  , Show RIP Information, RIP@comment  node-name,  next,  previous,  up@section RIP Debug CommandsDebug for RIP protocol.@deffn Command {debug rip events} {}Debug rip events.@end deffn@code{debug rip} will show RIP events.  Sending and receivingpackets, timers, and changes in interfaces are events shown with @command{ripd}.@deffn Command {debug rip packet} {}Debug rip packet.@end deffn@code{debug rip packet} will display detailed information about the RIPpackets.  The origin and port number of the packet as well as a packetdump is shown.@deffn Command {debug rip zebra} {}Debug rip between zebra communication.@end deffnThis command will show the communication between @command{ripd} and @command{zebra}.  Themain information will include addition and deletion of paths to thekernel and the sending and receiving of interface information.@deffn Command {show debugging rip} {}Display @command{ripd}'s debugging option.@end deffn@code{show debugging rip} will show all information currently set for ripddebug.

⌨️ 快捷键说明

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