Command Line Reference
IP Unicast Routing
RIP configuration
31 min
rip configuration rip configuration show ip rip {vrf show ip rip {vrf name } \[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 show ip rip status show ip rip status \[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) ip rip authentication mode \[md5|text] ip rip authentication mode \[md5|text] \[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 description description 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 ip rip authentication string ip rip authentication string string \[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 description description 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 ip rip authentication key chain ip rip authentication key chain string \[command] ip rip authentication key chain string \[purpose] configure the key chain for rip message authentication on the interface \[parameter] parameter description description 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 ip rip authentication receive version <1|2> ip rip authentication receive version <1|2> \[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 ip rip authentication send version <1|2> ip rip authentication send version <1|2> \[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 ip rip split horizon \[poisoned reverse] ip rip split horizon \[poisoned reverse] \[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 ip rip v2 broadcast ip rip v2 broadcast \[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 router rip \[vrf router rip \[vrf name ] \[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 description description name vrf name \[view] interface configuration view \[use cases] sonic(config)# router rip sonic(config router)# network { network { a b c d/m |ethernet interface num |vlan vlan id |link aggregation lag id } \[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 description description 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 neighbor neighbor a b c d \[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 default information originate default information originate \[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 passive interface {default|ethernet passive interface {default|ethernet interface num |vlan vlan id |link aggregation lag id } \[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 description description 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 redistribute redistribute protocol \[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 description description 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 route route a b c d/m \[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 distribute list prefix distribute list prefix string \[in|out] {ethernet interface num |vlan vlan id |link aggregation lag id } \[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 description description 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 route map route map string \[in|out] \[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 description description 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 description description value configuration range 1 16 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# default metric 2 distance distance value \[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 description description value configuration range 1 255 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# distance 100 version version value \[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 description description value configurable version 1 or version 2 \[view] rip configuration view \[use cases] sonic(config)# router rip sonic(config router)# version 2 timers basic timers basic update timeout garbage \[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 description description 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 allow ecmp allow ecmp \[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
