JohnLyu的blog

橙汁事务所艾欧泽亚分部

0%

RIP(Routing information Protocol)

实验记录

网络初始构造

网络初始构造同上文静态路由

image-20201119130935918

路由器RIP配置

在R0上配置

1
2
3
4
5
6
7
8
9
10
Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version ?
<1-2> version
Router(config-router)#version 2
Router(config-router)#network 192.168.1.0
Router(config-router)#network 192.168.3.0
Router(config-router)#end

在R1上配置

1
2
3
4
5
6
7
8
Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.3.0
Router(config-router)#end
### 测试

1
2
3
4
5
6
7
8
9
10
11
12
13
Router#ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

Router#ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/12/33 ms

小结

注意RIP协议的包状态为:

1
2
3
4
5
6
Layer 7: RIP Version:2, Command: 2
...
Layer 4: UDP Src Port: 520, Dst Port: 520
Layer 3: IP Header Src. IP: 192.168.3.2, Dest. IP: 224.0.0.9
Layer 2: HDLC Frame HDLC
Layer 1: Port Serial2/0

是一个网络层的协议, UPD端口为520, destination是224.0.0.9, ripv2组播地址.