RIP configuration
31 min
\<font color="#1d50a2">rip configuration\</font> \<font color="#1d50a2">show ip rip {vrf \</font> \[command] show ip rip {vrf name } \[purpose] view the routing table of rip routing protocol \[view] system view \[use cases] sonic# show ip rip codes r rip, c connected, s static, o ospf, b bgp sub codes (n) normal, (s) static, (d) default, (r) redistribute, (i) interface network next hop metric from tag time c(r) 10 1 0 1/32 0 0 0 0 1 self 0 r(n) 10 1 0 210/32 16 1 1 1 2 16 1 1 1 0 02 55 c(r) 10 1 1 0/24 0 0 0 0 1 self 0 c(r) 10 1 2 0/24 0 0 0 0 1 self 0 c(i) 16 1 1 0/24 0 0 0 0 1 self 0 r(n) 20 1 1 0/24 16 1 1 1 2 16 1 1 1 0 02 55 r(n) 22 1 1 0/24 16 1 1 1 16 16 1 1 1 0 01 59 r(n) 30 1 1 0/24 16 1 1 1 2 16 1 1 1 0 02 55 c(r) 80 0 0 0/24 0 0 0 0 1 self 0 r(n) 99 1 1 0/24 16 1 1 1 2 16 1 1 1 0 02 55 c(r) 192 168 2 0/24 0 0 0 0 1 self 0 \<font color="#1d50a2">show ip rip status\</font> \[command] show ip rip status \[purpose] view detailed status and configuration information of rip routing protocol \[view] system view \[use cases] sonic# show ip rip status routing protocol is "rip" sending updates every 30 seconds with +/ 50%, next due in 0 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 connected default version control send version 2, receive any version interface send recv key chain ethernet3 2 1 2 routing for networks ethernet3 routing information sources gateway badpackets badroutes distance last update 16 1 1 1 0 0 120 00 00 12 distance (default is 120) \<font color="#1d50a2">ip rip authentication mode \[md5|text]\</font> \[command] ip rip authentication mode \[md5|text] \[purpose] enable rip packet authentication on the interface to prevent illegal routers from injecting false routes \[parameter] parameter \<font color="#0c121d">description\</font> md5 md5 encryption authentication method text clear text authentication method \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip authentication mode md5 \<font color="#1d50a2">ip rip authentication string \</font> \[command] ip rip authentication string string \[purpose] configure the password for rip message authentication on the interface, which can be a plaintext password or an md5 password \[parameter] parameter \<font color="#0c121d">description\</font> string configuration range 1 16 \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip authentication mode md5 \<font color="#1d50a2">ip rip authentication key chain \</font> \[command] ip rip authentication key chain string \[purpose] configure the key chain for rip message authentication on the interface \[parameter] parameter \<font color="#0c121d">description\</font> string key chain name \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip authentication key chain test \<font color="#1d50a2">ip rip authentication receive version \<1|2\>\</font> \[command] ip rip authentication receive version <1|2> \[purpose] configure the protocol type for receiving rip messages on the interface, supporting the simultaneous specification of 1 and 2 \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip receive version 1 2 \<font color="#1d50a2">ip rip authentication send version \<1|2\>\</font> \[command] ip rip authentication send version <1|2> \[purpose] configure the protocol type for sending rip messages on the interface, supporting the simultaneous specification of 1 and 2 \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip send version 1 2 \<font color="#1d50a2">ip rip split horizon \[poisoned reverse]\</font> \[command] ip rip split horizon \[poisoned reverse] \[purpose] configure horizontal cutting with rip enabled on the interface, and also enable both horizontal cutting and toxicity reversal simultaneously horizontal segmentation do not re advertise the route from the receiving interface to prevent the router from re advertising the learned route back to the source this feature is enabled by default toxicity reversal for routes learned from a certain interface, they are still advertised back from that interface, but the metric value is set to 16 (unreachable), which means "poisoning" the route it belongs to the advanced level of horizontal segmentation this function needs to be manually activated \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip split horizon poisoned reverse \<font color="#1d50a2">ip rip v2 broadcast\</font> \[command] ip rip v2 broadcast \[purpose] force the interface to send broadcast ripv2 updates instead of default multicast \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# ip rip v2 broadcast \<font color="#1d50a2">router rip \[vrf \</font> \[command] router rip \[vrf name ] \[purpose] enable rip routing process, which is a prerequisite for all other rip configurations and supports specifying specific vrfs afterwards \[parameter] parameter \<font color="#0c121d">description\</font> name vrf name \[view] interface configuration view \[use cases] sonic(config)# router rip sonic(config router)# \<font color="#1d50a2">network {\</font> \[command] network { a b c d/m |ethernet interface num |vlan vlan id |link aggregation lag id } \[purpose] enable rip based on network address or interface type when specifying a network address, all interfaces with ip addresses within the specified network will start sending and receiving rip messages when specifying the interface type, rip messages will be sent and received on the specified interface \[parameter] parameter \<font color="#0c121d">description\</font> a b c d/m configure ip addresses with masks to specify the declared network segment, such as 35 0 0 0/8 interface num the id of the physical interface, ranging from 1 to 16 vlan id vlan id, ranging from 1 to 4096 lag id the id of lag, ranging from 1 to 9999 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# network ethernet 3 \<font color="#1d50a2">neighbor \</font> \[command] neighbor a b c d \[purpose] statically specify a rip neighbor, rip will send unicast updates to that neighbor \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# neighbor 16 1 1 2 \<font color="#1d50a2">default information originate\</font> \[command] default information originate \[purpose] inject a default route (0 0 0 0/0) into the rip network, usually requiring the router to already have a default route \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# default information originate \<font color="#1d50a2">passive interface {default|ethernet \</font> \[command] passive interface {default|ethernet interface num |vlan vlan id |link aggregation lag id } \[purpose] set a passive interface that only receives rip updates and does not send multicast/broadcast updates (but sends unicast updates to neighbors specified by the neighbor command) when set to default, it applies to all interface types within the rip \[parameter] parameter \<font color="#0c121d">description\</font> default enable passive mode for all interface types within the rip interface num the id of the physical interface, ranging from 1 to 16 vlan id vlan id, ranging from 1 to 4096 lag id the id of lag, ranging from 1 to 9999 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# passive interface ethernet 3 \<font color="#1d50a2">redistribute \</font> \[command] redistribute protocol \[purpose] perform route redistribution by introducing routes from other routing protocols (such as bgp, ospf, direct connection, static, etc ) into rip \[parameter] parameter \<font color="#0c121d">description\</font> protocol specify the routing protocol type to be introduced, such as connected, static, bgp, ospf, etc \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# redistribute static \<font color="#1d50a2">route \</font> \[command] route a b c d/m \[purpose] create static routes that only exist within rip processes \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# route 1 2 3 4/32 \<font color="#1d50a2">distribute list prefix \</font> \[command] distribute list prefix string \[in|out] {ethernet interface num |vlan vlan id |link aggregation lag id } \[purpose] set the distribution list of rip and use access control lists or prefix lists to filter route updates in the input or output direction of the interface in filters routes learned from neighbors, and out filters routes declared to neighbors can be applied to global or specific interfaces \[parameter] parameter \<font color="#0c121d">description\</font> string prefix list name interface num the id of the physical interface, ranging from 1 to 16 vlan id vlan id, ranging from 1 to 4096 lag id the id of lag, ranging from 1 to 9999 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# distribute list prefix test in ethernet 3 \<font color="#1d50a2">route map \</font> \[command] route map string \[in|out] \[purpose] route mapping, using route map to filter route updates in the input or output direction of the interface, in filtering routes learned from neighbors, and out filtering routes declared to neighbors \[parameter] parameter \<font color="#0c121d">description\</font> string prefix list name interface num the id of the physical interface, ranging from 1 to 16 vlan id vlan id, ranging from 1 to 4096 lag id the id of lag, ranging from 1 to 9999 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# route map test in ethernet 3 default metric value \[command] default metric value \[purpose] set the default metric value for redistributing incoming routes, which defaults to 1 and does not affect the redistribution metric of directly connected routes \[parameter] parameter \<font color="#0c121d">description\</font> value configuration range 1 16 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# default metric 2 \<font color="#1d50a2">distance \</font> \[command] distance value \[purpose] set the default management distance for rip routing, with a default value of 120 the smaller the management distance, the more reliable the routing source (higher priority) \[parameter] parameter \<font color="#0c121d">description\</font> value configuration range 1 255 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# distance 100 \<font color="#1d50a2">version \</font> \[command] version value \[purpose] set the global version for rip sending and receiving, which can be configured as either version 1 or version 2 when the version is not set, it defaults to version 2 \[parameter] parameter \<font color="#0c121d">description\</font> value configurable version 1 or version 2 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# version 2 \<font color="#1d50a2">timers basic \</font> \[command] timers basic update timeout garbage \[purpose] adjust the key timer of rip update the time interval for sending the complete routing table (default is 30 seconds) timeout route failure timeout (default 180 seconds) garbage garbage collection time before the route is removed (default is 120 seconds) \[parameter] parameter \<font color="#0c121d">description\</font> update configurable range 5 2147483647, default 30s timeout configurable range 5 2147483647, default 180s garbage configurable range 5 2147483647, default 120s \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# timers basic 40 200 150 \<font color="#1d50a2">allow ecmp\</font> \[command] allow ecmp \[purpose] used for load balancing, the quantity is the maximum supported by the system by default, this ecmp advanced feature is turned off \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# allow ecmp
