亚洲精品国偷拍自产在线麻豆,国产精品成人观看视频国产奇米,国产成a人亚洲精品无码樱花,无码人妻丰满熟妇精品区

日志樣式

RIP V2 手動匯總

1.實驗目的:
在路由器上啟動RIPV2路由進程;
啟用參與路由協議的接口,并且通告網絡;
理解auto-summary 的開啟和關閉;
查看和調試RIPV2路由協議的相關信息
2實驗拓撲:
 
說明:R1上啟動一個loopback0口.
R4:啟動四個loopback0 口
開始實驗:
分別配置好 四個路由的基本配置,和ip,路由的基本配置前面的實驗已經講過,故不在具體闡述,直接配置ip;
R1:
 
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int s1/1
R1(config-if)#ip add 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int loop 0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R2:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int s1/0
R2(config-if)#ip add 192.168.0.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int s1/1
R2(config-if)#ip add 192.168.1.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#
*Nov 8 15:07:15.291: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Nov 8 15:07:15.363: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
R2(config)#
*Nov 8 15:07:16.295: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
*Nov 8 15:07:16.367: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R2(config)#
 
R3:
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R3
R3(config)#int s1/0
R3(config-if)#ip add 192.168.1.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int s1/1
R3(config-if)#ip add 192.168.2.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#
*Nov 8 15:07:26.167: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Nov 8 15:07:26.235: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
R3(config)#
*Nov 8 15:07:27.171: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
*Nov 8 15:07:27.239: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R3(config)#
 
R4:
Router(config)#host R4
R4(config)#int s1/0
R4(config-if)#ip add 192.168.2.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop 0
R4(config-if)#ip add 2.2.2.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop 1
R4(config-if)#ip add 2.2.3.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop 2
R4(config-if)#ip add 2.2.4.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop 3
R4(config-if)#ip add 2.2.5.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#
*Nov 8 15:07:37.903: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
R4(config)#
*Nov 8 15:07:38.907: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R4(config)#
 
分別在四個路由上器RIPV2路由協議:
R1:
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#version 2 \\配置版本為2默認是版本1
R1(config-router)#no auto-summary \\關閉自動匯總
R1(config-router)#net 1.1.1.0
R1(config-router)#net 192.168.0.0 \\宣告網絡
R1(config-router)#
R1(config-router)#^Z
R1#
*Nov 8 15:13:32.091: %SYS-5-CONFIG_I: Configured from console by console
R1#
 
R2:
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-s
R2(config-router)#net 192.168.0.0
R2(config-router)#net 192.168.1.0
R2(config-router)#^Z
R2#
*Nov 8 15:14:01.139: %SYS-5-CONFIG_I: Configured from console by console
R2#
 
R3:
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#net 192.168.1.0
R3(config-router)#net 192.168.2.0
R3(config-router)#no auto-s
R3(config-router)#^Z
R3#
*Nov 8 15:14:53.839: %SYS-5-CONFIG_I: Configured from console by console
R3#
 
R4:
*Nov 8 15:07:38.907: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R4(config)#router rip
R4(config-router)#version 2
R4(config-router)#net 192.168.2.0
R4(config-router)#net 2.2.2.0
R4(config-router)#net 2.2.3.0
R4(config-router)#net 2.2.4.0
R4(config-router)#net 2.2.5.0
R4(config-router)#no auto-s
R4(config-router)#^Z
R4#
*Nov 8 15:16:39.635: %SYS-5-CONFIG_I: Configured from console by console
R4#
在R1上“show ip route”查看路由表:
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 4 subnets
R 2.2.2.0 [120/3] via 192.168.0.2, 00:00:16, Serial1/1
R 2.2.3.0 [120/3] via 192.168.0.2, 00:00:16, Serial1/1
R 2.2.4.0 [120/3] via 192.168.0.2, 00:00:16, Serial1/1
R 2.2.5.0 [120/3] via 192.168.0.2, 00:00:16, Serial1/1
C 192.168.0.0/24 is directly connected, Serial1/1
R 192.168.1.0/24 [120/1] via 192.168.0.2, 00:00:16, Serial1/1
R 192.168.2.0/24 [120/2] via 192.168.0.2, 00:00:16, Serial1/1
R1#
 
注:可以看到R1的路由表中有R4的四條環回接口的明細路由,并且是沒有經過匯總的,因為我們已經通過“no auto-summary”命令關閉了每個路由的自動匯總,下面我們來手動匯總R4。
 
R1 R2 R3 三個路由配置如上,看R4:
 
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int s1/0
R4(config-if)#ip summary-address rip 2.2.0.0 255.255.248.0
R4(config-if)#^Z
R4#
*Nov 8 15:48:21.759: %SYS-5-CONFIG_I: Configured from console by console
R4#
 
30秒后我們查看R1的路由表:
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/21 is subnetted, 1 subnets
R 2.2.0.0 [120/3] via 192.168.0.2, 00:00:27, Serial1/1
C 192.168.0.0/24 is directly connected, Serial1/1
R 192.168.1.0/24 [120/1] via 192.168.0.2, 00:00:27, Serial1/1
R 192.168.2.0/24 [120/2] via 192.168.0.2, 00:00:27, Serial1/1
R1#
 
上面輸出說明R1已經接收到了匯總路由,當然R2 R3 也能接受到,注意比較下未匯總前的R1路由表信息。
 
下面我們看下路由更新的過程:
R1#debug ip rip
RIP protocol debugging is on
R1#
*Nov 8 16:15:56.395: RIP: sending v2 update to 224.0.0.9 via Serial1/1 (192.168.0.1)
*Nov 8 16:15:56.395: RIP: build update entries
*Nov 8 16:15:56.399: 1.1.1.0/24 via 0.0.0.0, metric 1, tag 0
R1#
*Nov 8 16:16:07.179: RIP: received v2 update from 192.168.0.2 on Serial1/1
*Nov 8 16:16:07.179: 2.2.0.0/21 via 0.0.0.0 in 3 hops
*Nov 8 16:16:07.179: 192.168.1.0/24 via 0.0.0.0 in 1 hops
*Nov 8 16:16:07.179: 192.168.2.0/24 via 0.0.0.0 in 2 hops
R1#
*Nov 8 16:16:13.551: RIP: sending v2 update to 224.0.0.9 via Loopback0 (1.1.1.1)
*Nov 8 16:16:13.551: RIP: build update entries
*Nov 8 16:16:13.551: 2.2.0.0/21 via 0.0.0.0, metric 4, tag 0
*Nov 8 16:16:13.551: 192.168.0.0/24 via 0.0.0.0, metric 1, tag 0
*Nov 8 16:16:13.551: 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0
*Nov 8 16:16:13.551: 192.168.2.0/24 via 0.0.0.0, metric 3, tag 0
*Nov 8 16:16:13.551: RIP: ignored v2 packet from 1.1.1.1 (sourced from one of our addresses)
R1#
*Nov 8 16:16:26.319: RIP: sending v2 update to 224.0.0.9 via Serial1/1 (192.168.0.1)
*Nov 8 16:16:26.319: RIP: build update entries
*Nov 8 16:16:26.323: 1.1.1.0/24 via 0.0.0.0, metric 1, tag 0
R1#
*Nov 8 16:16:33.687: RIP: received v2 update from 192.168.0.2 on Serial1/1
*Nov 8 16:16:33.691: 2.2.0.0/21 via 0.0.0.0 in 3 hops
*Nov 8 16:16:33.691: 192.168.1.0/24 via 0.0.0.0 in 1 hops
*Nov 8 16:16:33.695: 192.168.2.0/24 via 0.0.0.0 in 2 hops
R1#
*Nov 8 16:16:39.523: RIP: sending v2 update to 224.0.0.9 via Loopback0 (1.1.1.1)
*Nov 8 16:16:39.523: RIP: build update entries
*Nov 8 16:16:39.527: 2.2.0.0/21 via 0.0.0.0, metric 4, tag 0
*Nov 8 16:16:39.527: 192.168.0.0/24 via 0.0.0.0, metric 1, tag 0
*Nov 8 16:16:39.531: 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0
*Nov 8 16:16:39.531: 192.168.2.0/24 via 0.0.0.0, metric 3, tag 0
*Nov 8 16:16:39.535: RIP: ignored v2 packet from 1.1.1.1 (sourced from one of our addresses)
R1#
 
總結:需要注意幾點RIPV2的幾點特征:
1,路由更新過程中攜帶子網信息
2,采用組播(224.0.0.9)更新,更新過程如下:
3,不支持CIDR匯總,但可以傳遞CIDR匯總。(下一個實驗將介紹)

主站蜘蛛池模板: 仁寿县| 康平县| 亳州市| 灌南县| 广东省| 玛纳斯县| 十堰市| 鲁山县| 全州县| 金沙县| 贞丰县| 禹城市| 金坛市| 桂林市| 油尖旺区| 吉水县| 耿马| 全南县| 安丘市| 易门县| 石河子市| 黔南| 博野县| 冕宁县| 英德市| 大竹县| 上思县| 故城县| 大兴区| 茶陵县| 柏乡县| 柘荣县| 柏乡县| 云和县| 南澳县| 永修县| 金华市| 莫力| 潞西市| 桃江县| 兰溪市|