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

日志樣式

驗證RIP V2 不支持CIDR匯總,但可傳遞CIDR匯總特性

在前面一個實驗我們已經(jīng)做了關(guān)于RIPv2的簡單配置和手動匯總的實驗,下面這個實驗主要目的是為了驗證下RIP V2 不支持CIDR匯總,但可傳遞CIDR匯總特性。
 
實驗?zāi)繕?biāo):驗證RIP V2 不支持CIDR匯總,但可傳遞CIDR匯總特性
 
拓?fù)?
 
R1 R2 R3 的實驗配置和上一個RIPv2 實驗的配置是一樣的,詳細(xì)配置請自己查看哦,為了不浪費時間這里就不在重復(fù)了哦!配置是完全一樣的,我們要改的是R4,前一個實驗我們是在R4是配置了四個loop0口,且ip 分別是2.2.2.2 2.2.3.2 2.2.4.2 2.2.5.2 那么我們現(xiàn)在要做的是將這四個loop0口的ip 分別改給成 192.168.96.4/24, 192.168.97.4/24, 192.168.98.4/24,192.168.99.4/24. 配置如下:
 
R4:
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int loop 0
R4(config-if)#ip add 192.168.96.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop
*Nov 8 16:56:01.495: %LINK-3-UPDOWN: Interface Loopback0, changed state to up
*Nov 8 16:56:02.495: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R4(config-if)#int loop1
R4(config-if)#ip add 192.168.97.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop2
R4(config-if)#ip add 192.168.98.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int loop
*Nov 8 16:56:59.619: %LINK-3-UPDOWN: Interface Loopback2, changed state to up
*Nov 8 16:57:00.619: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up
R4(config-if)#int loop3
R4(config-if)#ip add 192.168.99.4 255.255.255.0
R4(config-if)#^Z
R4#
*Nov 8 16:57:29.415: %SYS-5-CONFIG_I: Configured from console by console
R4#
在R4上啟動RIPv2協(xié)議:
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#router rip
R4(config-router)#version 2
R4(config-router)#no auto-s
R4(config-router)#net 192.168.96.0
R4(config-router)#net 192.168.97.0
R4(config-router)#net 192.168.98.0
R4(config-router)#net 192.168.99.0
R4(config-router)#net 192.168.2.0
R4(config-router)#^Z
R4#
 
在R1上查看"show ip route"查看路由表:
*Nov 8 16:59:21.943: RIP: ignored v2 packet from 1.1.1.1 (sourced from one of our addresses)
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
R 192.168.98.0/24 [120/3] via 192.168.0.2, 00:00:15, Serial1/1
R 192.168.96.0/24 [120/3] via 192.168.0.2, 00:00:27, Serial1/1
R 192.168.97.0/24 [120/3] via 192.168.0.2, 00:00:22, 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#
 
以上表明R上已經(jīng)學(xué)到了R4上重新配置好的四條loop0口信息,下面我們來匯總R4看看有什么變化:
 
R4#
R4#conf
Configuring from terminal, memory, or network [terminal]? t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int s1/0
R4(config-if)#ip summary-add rip 192.168.96.0 255.255.252.0
Summary mask must be greater or equal to major net
R4(config-if)#
 
顯示提示信息表明匯總后的掩碼長度必須喲大于或等于主類網(wǎng)絡(luò)掩碼的掩碼長度,因為“22<24”,所以不能匯總。
所以RIPV2不支持CIDR匯總,但是可以傳遞CIDR匯總。
方法:
我們用靜態(tài)路由發(fā)布被匯總的路由:
*Nov 8 17:10:35.415: %SYS-5-CONFIG_I: Configured from console by console
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#ip route 192.168.96.0 255.255.252.0 null0 \\靜態(tài)路由發(fā)布被匯總的路由
R4(config)#route rip
R4(config-router)#redistribute static \\將靜態(tài)路由重發(fā)布到RIP路由協(xié)議中
R4(config-router)#no net 192.168.96.0
R4(config-router)#no net 192.168.97.0
R4(config-router)#no net 192.168.98.0
R4(config-router)#no net 192.168.99.0
R4(config-router)#^Z
R4#
 
趕快驗證下哦!呵呵!在R1上“show ip route”
R1:

R1#R4(config-router)#^Z
% Unknown command or computer name, or unable to find computer address
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
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:08, Serial1/1
R 192.168.2.0/24 [120/2] via 192.168.0.2, 00:00:08, Serial1/1
R 192.168.96.0/22 [120/3] via 192.168.0.2, 00:00:08, Serial1/1
R1#
 
總結(jié):輸出結(jié)果表明R4將匯總轉(zhuǎn)遞給了R1!驗證了RIP V2 不支持CIDR匯總,但可傳遞CIDR匯總特性!

主站蜘蛛池模板: 义乌市| 尤溪县| 阿克苏市| 太谷县| 松桃| 衡南县| 普宁市| 潼关县| 兴仁县| 承德市| 玉龙| 中卫市| 慈利县| 龙州县| 武乡县| 丰台区| 桃江县| 洛阳市| 呼玛县| 于都县| 临湘市| 彭山县| 景洪市| 大连市| 嵊州市| 昌图县| 屯留县| 连南| 安义县| 宿松县| 五峰| 邮箱| 临桂县| 延庆县| 巴彦县| 淮滨县| 旅游| 林西县| 涡阳县| 章丘市| 上栗县|