1.RIPV1和RIPV2基本配置
1)RIPV1配置
典型的有类路由协议,不支持VLSM,报文路由信息只携带目的网络IP地址,没有目的网络掩码,使得在部署VLSM出现问题。
![图片[1]-2.2 RIPV2配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片30-2.png)
[R1]rip 1
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 13.0.0.0
[R2]rip 1
[R2-rip-1]network 172.16.0.0
[R2-rip-1]network 12.0.0.0
[R3]rip 1
[R3-rip-1]network 13.0.0.0
[R3-rip-1]network 172.16.0.0
[R1]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.0/16 RIP 100 1 D 12.1.1.2 GigabitEthernet0/0/0
RIP 100 1 D 13.1.1.3 GigabitEthernet0/0/1
RIP routing table status : <Inactive>
[R2]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
13.0.0.0/8 RIP 100 1 D 12.1.1.1 GigabitEthernet0/0/0
[R3]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
12.0.0.0/8 RIP 100 1 D 13.1.1.1 GigabitEthernet0/0
RIPV1:使用广播地址(255.255.255.255)作为协议报文的目的IP地址。
![图片[2]-2.2 RIPV2配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片31-2-1024x337.png)
RIP协议采用UDP封装,报文源、目的端口均是UDP520端口。
![图片[3]-2.2 RIPV2配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片32-2.png)
2)RIPV2配置
支持VLSM。
[R1-rip-1]version 2
[R2-rip-1]version 2
[R3-rip-1]version 2
[R1]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.1.0/24 RIP 100 1 D 12.1.1.2 GigabitEthernet0/0/0
172.16.3.0/24 RIP 100 1 D 13.1.1.3 GigabitEthernet0/0/1
[R2]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
13.1.1.0/24 RIP 100 1 D 12.1.1.1 GigabitEthernet0/0/0
172.16.3.0/24 RIP 100 2 D 12.1.1.1 GigabitEthernet0/0/0
[R3]display ip routing-table protocol rip
Destination/Mask Proto Pre Cost Flags NextHop Interface
12.1.1.0/24 RIP 100 1 D 13.1.1.1 GigabitEthernet0/0/1
172.16.1.0/24 RIP 100 2 D 13.1.1.1 GigabitEthernet0/0/1
RIPV2:使用组播地址(224.0.0.9)作为协议报文的目的IP地址。
![图片[4]-2.2 RIPV2配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片33-2-1024x222.png)
RIP协议采用UDP封装,报文源、目的端口均是UDP520端口。
![图片[5]-2.2 RIPV2配置详解-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片34-2.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容