日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

RIP实验总结之一被动接口和单播更新

發(fā)布時間:2023/11/29 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RIP实验总结之一被动接口和单播更新 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
后續(xù)的小實驗: RIP實驗總結之二RipV2的手動匯總 RIP實驗總結之一rip v2的認證 前言:以前覺得rip只需要學NA的那種水平就行了,但在后來自己的許多實驗中不斷做過不少rip相關的實驗,在這總結一下。 實驗目的: 1)??????? 掌握rip被動接口的配置 2)??????? 掌握rip單播更新 3)??????? 掌握rip v2手動匯總 4)??????? 掌握rip v2的認證 實驗拓樸: 話外:我喜歡用工大瑞普的來做實驗,資源占用少,適合老爺機使用,慢慢摸索出怎樣寫net文件,如果機子配置高,還是建議使用GNS3,不僅方便,而且還可以手抓包。 注:對于接口地址,我習慣使用兩個路由器的編號,小的為1,大的為2,如R3R4之間,使用34.1.1.134.1.1.2,對于以太口使用<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />10.1.1.310.1.1.4,環(huán)回口使用全路由器編號即3.3.3.3 4.4.4.4,掩碼都為24.

實驗1rip的被動接口和單播更新。

實驗步驟: 1.啟動R1R2R3,完成串口基本接口的配置,使用ping保證每個接口的連通性。 R1(config)#int s1/1 R1(config-if)#ip add 12.1.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int s1/2 R1(config-if)#ip add 14.1.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#ip add 10.1.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int lo0 R1(config-if)#ip add 1.1.1.1 255.255.255.0 R2R3做相應配置,不在此列出。 2.啟用rip,將每個接口都添加進rip進程。 R1(config-if)#router rip R1(config-router)#net 10.1.1.1 R1(config-router)#net 12.1.1.1 R1(config-router)#net 1.1.1.1 R1show ip route R1#sh ip 00:36:11: %SYS-5-CONFIG_I: Configured from console by console R1#sh ip route <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

?

???? 1.0.0.0/24 is subnetted, 1 subnets C?????? 1.1.1.0 is directly connected, Loopback0 R??? 2.0.0.0/8 [120/1] via 12.1.1.2, 00:00:01, Serial1/1 R??? 3.0.0.0/8 [120/2] via 12.1.1.2, 00:00:01, Serial1/1 R??? 23.0.0.0/8 [120/1] via 12.1.1.2, 00:00:01, Serial1/1 ???? 12.0.0.0/24 is subnetted, 1 subnets C??? ???12.1.1.0 is directly connected, Serial1/1 看到了到R2R3的路由。 R1s1/1設置為被動接口 R1(config)#router rip R1(config-router)#passive-interface s1/1 R2R3上去show ip route R2#sh ip route R??? 1.0.0.0/8 [120/1] via 12.1.1.1, 00:01:51, Serial1/0?????????????? ???? 2.0.0.0/24 is subnetted, 1 subnets C?????? 2.2.2.0 is directly connected, Loopback0 R??? 3.0.0.0/8 [120/1] via 23.1.1.2, 00:00:01, Serial1/1 ???? 23.0.0.0/24 is subnetted, 1 subnets C?????? 23.1.1.0 is directly connected, Serial1/1 ???? 12.0.0.0/24 is subnetted, 1 subnets C?????? 12.1.1.0 is directly connected, Serial1/0 此時R3上: R3#sh ip route

?

?

R??? 1.0.0.0/8 [120/2] via 23.1.1.1, 00:00:14, Serial1/0 R??? 2.0.0.0/8 [120/1] via 23.1.1.1, 00:00:14, Serial1/0 ???? 3.0.0.0/24 is subnetted, 1 subnets C?????? 3.3.3.0 is directly connected, Loopback0 ???? 23.0.0.0/24 is subnetted, 1 subnets C?????? 23.1.1.0 is directly connected, Serial1/0 R??? 12.0.0.0/8 [120/1] via 23.1.1.1, 00:00:14, Serial1/0 注意兩個打紅字的時間,R1s1/1已設置為被動接口,R2上收不到R1的路由更新,上次收到時間為00:01:51之前并未超時,此時應該為holdtime,R3扔收到R2關于R1上的路由更新。所以在失效之前R2Rip仍要向R3發(fā)布更新。 等路由收斂完成后,再看: R1#sh ip route ???? 1.0.0.0/24 is subnetted, 1 subnets C?????? 1.1.1.0 is directly connected, Loopback0 R??? 2.0.0.0/8 [120/1] via 12.1.1.2, 00:00:13, Serial1/1 R??? 3.0.0.0/8 [120/2] via 12.1.1.2, 00:00:13, Serial1/1 R??? 23.0.0.0/8 [120/1] via 12.1.1.2, 00:00:13, Serial1/1 ???? 12.0.0.0/24 is subnetted, 1 subnets C?????? 12.1.1.0 is directly connected, Serial1/1

?

R2#sh ip route ???? 2.0.0.0/24 is subnetted, 1 subnets C?????? 2.2.2.0 is directly connected, Loopback0 R??? 3.0.0.0/8 [120/1] via 23.1.1.2, 00:00:22, Serial1/1 ???? 23.0.0.0/24 is subnetted, 1 subnets C?????? 23.1.1.0 is directly connected, Serial1/1 ???? 12.0.0.0/24 is subnetted, 1 subnets C?????? 12.1.1.0 is directly connected, Serial1/0

?

R3#sh ip route

?

R??? 2.0.0.0/8 [120/1] via 23.1.1.1, 00:00:11, Serial1/0 ???? 3.0.0.0/24 is subnetted, 1 subnets C?????? 3.3.3.0 is directly connected, Loopback0 ???? 23.0.0.0/24 is subnetted, 1 subnets C?????? 23.1.1.0 is directly connected, Serial1/0 R??? 12.0.0.0/8 [120/1] via 23.1.1.1, 00:00:11, Serial1/0 即被動接口的特點:能收到rip的更新但不從此接口發(fā)送更新。 3.R2R3上的所有串口都設為被動接口。并開啟所有路由器的以太口。配置R1使路由更新只“單播”給R2 R1(config)#router rip R1(config-router)#net 10.1.1.1 R1(config-router)#passive-interface fastEthernet 0/0 R1(config-router)#neighbor 10.1.1.2 R2R3show ip route R2#sh ip route R??? 1.0.0.0/8 [120/1] via 10.1.1.1, 00:00:03, FastEthernet0/0 ???? 2.0.0.0/24 is subnetted, 1 subnets C?????? 2.2.2.0 is directly connected, Loopback0 R??? 3.0.0.0/8 [120/1] via 10.1.1.3, 00:00:12, FastEthernet0/0 ???? 10.0.0.0/24 is subnetted, 1 subnets C?????? 10.1.1.0 is directly connected, FastEthernet0/0

?

R3#sh ip route R??? 2.0.0.0/8 [120/1] via 10.1.1.2, 00:00:24, FastEthernet0/0 ???? 3.0.0.0/24 is subnetted, 1 subnets C?????? 3.3.3.0 is directly connected, Loopback0 ???? 10.0.0.0/24 is subnetted, 1 subnets C?????? 10.1.1.0 is directly connected, FastEthernet0/0 可以看到R2學到了R1環(huán)回口的路由,R3沒學到。 R2由于水平分割沒有將R1環(huán)回口的路由更新到R3

轉載于:https://blog.51cto.com/hyhgd/204612

總結

以上是生活随笔為你收集整理的RIP实验总结之一被动接口和单播更新的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。