192.168.1.0/24 划分:
骨干:192.168.1.00 000000
192.168.1.0/26
r1--r2:192.168.1.00 0 00000
192.168.1.0/27
r2--r3:192.168.1.00 1 00000
192.168.1.32/27
用户(r1):192.168.1.01 000000
192.168.1.64/26
环回: 192.168.1.01 0 00000
192.168.1.64/27
环回: 192.168.1.01 1 00000
192.168.1.95/27
用户(r2):192.168.1.10 000000
192.168.1.128/26
环回:192.168.1.10 0 00000
192.168.1.128/27
环回: 192.168.1.10 1 00000
192.168.1.160/27
r1写IP: r2写IP: r3写IP:
sys sys sys
int g 0/0/0 int g 0/0/0 int g 0/0/0
ip add 192.168.1.1 27 ip add 192.168.1.2 27 ip add 192.168.1.34 27
int g 0/0/1
ip add 192.168.1.33 27
int l0 int l0 int l0
ip add 192.168.1.65 27 ip add 192.168.1.129 27 ip add 3.3.3.3 24
int l1 int l1
ip add 192.168.1.96 27 ip add 192.168.1.161 27
书写RIP协议:
r1: rip 1 r2:rip 1 r3: rip 1
version 2 version 2 version 2
network 192.168.1.0 network 192.168.1.0 network 192.168.1.0
书写缺省:
default-route originate
书写手工认证:
r1:int g 0/0/0
rip authentication-mode md5 usual plain 123456
r2:int g 0/0/0
rip authentication-mode md5 usual plain 123456
r2:int g 0/0/1
rip authentication-mode md5 usual plain 654321
r3:int g 0/0/0
rip authentication-mode md5 usual plain 654321
汇总:r1:
int g 0/0/0
rip summary-address 192.168.1.64 255.255.255.192
r2:
int g 0/0/0
rip summary-address 192.168.1.128 255.255.255.192
避免环路:
r1:
Ip route-static 192.168.1.64 26 null 0
r2:
Ip route-static 192.168.1.128 26 null 0