实验题目及要求:
IP配置:
R1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]int GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
Jul 22 2023 13:07:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
[r1]int loopb 0
[r1-LoopBack0]ip add 192.168.1.65 27
[r1]int loop1
[r1-LoopBack1]ip add 192.168.1.97 27
[r1-LoopBack1]q
R2:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
Jul 22 2023 13:19:27-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.5 30
Jul 22 2023 13:19:48-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]int loop0
[r2-LoopBack0]ip add 192.168.1.129 27
[r2-LoopBack0]int loop1
[r2-LoopBack1]ip add 192.168.1.161 27
[r2-LoopBack1]
R3:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r3
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.6 30
Jul 22 2023 13:21:43-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r3-GigabitEthernet0/0/0]int loop0
[r3-LoopBack0]ip add 3.3.3.3 24
[r3-LoopBack0]
配置RIP
R1:
[r1]rip
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]
R2:
[r2]rip
[r2-rip-1]version 2
[r2-rip-1]network 192.168.1.0
[r2-rip-1]
R3:
[r3]rip
[r3-rip-1]version 2
[r3-rip-1]network 3.0.0.0
[r3-rip-1]network 192.168.1.0
[r3-rip-1]
拓扑配置:
R1:
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192 //路由表汇总
[r1-GigabitEthernet0/0/0]q
[r1]rip
[r1-rip-1]timers rip 15 90 150 //加快收敛速度
[r1-rip-1]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456 //手工认证保障更新安全
[r1-GigabitEthernet0/0/0]
R2:
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.64 255.255.255.192
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
[r2-GigabitEthernet0/0/1]q
[r2]rip
[r2-rip-1]timers rip 15 90 150
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]rip auth
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 usual 123456
[r2-GigabitEthernet0/0/1]
R3:
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r3-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r3]rip
[r3-rip-1]default-route originate //边界路由器(连接ISP的路由器)上定义缺省源头信息
[r3-rip-1]
[r3-rip-1]timers rip 15 90 150
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]rip auth
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456
[r3-GigabitEthernet0/0/0]