RIP configuration
此内容尚不支持你的语言。
RIP configuration
Section titled “RIP configuration”show ip rip {vrf name}
Section titled “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 ripCodes: R - RIP, C - connected, S - Static, O - OSPF, B - BGPSub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface
Network Next Hop Metric From Tag TimeC(r) 10.1.0.1/32 0.0.0.0 1 self 0R(n) 10.1.0.210/32 16.1.1.1 2 16.1.1.1 0 02:55C(r) 10.1.1.0/24 0.0.0.0 1 self 0C(r) 10.1.2.0/24 0.0.0.0 1 self 0C(i) 16.1.1.0/24 0.0.0.0 1 self 0R(n) 20.1.1.0/24 16.1.1.1 2 16.1.1.1 0 02:55R(n) 22.1.1.0/24 16.1.1.1 16 16.1.1.1 0 01:59R(n) 30.1.1.0/24 16.1.1.1 2 16.1.1.1 0 02:55C(r) 80.0.0.0/24 0.0.0.0 1 self 0R(n) 99.1.1.0/24 16.1.1.1 2 16.1.1.1 0 02:55C(r) 192.168.2.0/24 0.0.0.0 1 self 0show ip rip status
Section titled “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 statusRouting 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]
Section titled “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 |
|---|---|
| md5 | MD5 encryption authentication method |
| text | Clear text authentication method |
[View]
Interface Configuration View
[Use Cases]
sonic(config)# interface ethernet 3sonic(config-if-3)# ip rip authentication mode md5ip rip authentication string string
Section titled “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 |
|---|---|
| String | Configuration range:1~16 |
[View]
Interface Configuration View
[Use Cases]
sonic(config)# interface ethernet 3sonic(config-if-3)# ip rip authentication mode md5ip rip authentication key-chain string
Section titled “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 |
|---|---|
| String | Key-chain Name |
[View]
Interface Configuration View
[Use Cases]
sonic(config)# interface ethernet 3sonic(config-if-3)# ip rip authentication key-chain testip rip authentication receive version <1|2>
Section titled “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 3sonic(config-if-3)# ip rip receive version 1 2ip rip authentication send version <1|2>
Section titled “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 3sonic(config-if-3)# ip rip send version 1 2ip rip split-horizon [poisoned-reverse]
Section titled “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 3sonic(config-if-3)# ip rip split-horizon poisoned-reverseip rip v2-broadcast
Section titled “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 3sonic(config-if-3)# ip rip v2-broadcastrouter rip [vrf name ]
Section titled “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 |
|---|---|
| name | vrf Name |
[View]
Interface Configuration View
[Use Cases]
sonic(config)# router ripsonic(config-router)#network { A.B.C.D/M |ethernet interface_num |vlan vlan_id |link-aggregation lag_id}
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# network ethernet 3neighbor A.B.C.D
Section titled “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 ripsonic(config-router)# neighbor 16.1.1.2default-information originate
Section titled “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 ripsonic(config-router)# default-information originatepassive-interface {default|ethernet interface_num |vlan vlan_id |link-aggregation lag_id}
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# passive-interface ethernet 3redistribute protocol
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# redistribute staticroute A.B.C.D/M
Section titled “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 ripsonic(config-router)# route 1.2.3.4/32distribute-list prefix string [in|out] {ethernet interface_num |vlan vlan_id |link-aggregation lag_id}
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# distribute-list prefix test in ethernet 3route-map string [in|out]
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# route-map test in ethernet 3default-metric value
Section titled “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 |
|---|---|
| value | Configuration range 1-16 |
[View]
RIP Configuration View
[Use Cases]
sonic(config)# router ripsonic(config-router)# default-metric 2distance value
Section titled “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 |
|---|---|
| value | Configuration range 1-255 |
[View]
RIP Configuration View
[Use Cases]
sonic(config)# router ripsonic(config-router)# distance 100version value
Section titled “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 |
|---|---|
| value | Configurable version 1 or version 2 |
[View]
RIP Configuration View
[Use Cases]
sonic(config)# router ripsonic(config-router)# version 2timers basic update timeout garbage
Section titled “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 |
|---|---|
| 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 ripsonic(config-router)# timers basic 40 200 150allow-ecmp
Section titled “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 ripsonic(config-router)# allow-ecmp