rip 路由信息协议 距离矢量路由协议 动态路由协议 Cisco

一:按rip默认的version 1配置:

1:拓扑结构图

2:配置代码

R1:
enable
config terminal
host r1
no ip domain-lookup
int f0/0
ip address 10.0.1.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.2.1 255.255.255.0
no shut
exit
router rip  //rip协议,version 1 的配置
version 1
network 10.0.1.0 
network 192.168.2.0 
exit

R2:
enable
config terminal
host r2
no ip domain-lookup
int f0/0
ip address 192.168.2.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.3.1 255.255.255.0
no shut
exit
router rip  //rip协议,version 1 的配置
version 1
network 192.168.2.0 
network 192.168.3.0 
exit

R3:
enable
config terminal
host r3
no ip domain-lookup
int f0/0
ip address 192.168.3.2 255.255.255.0
no shut
exit
int f0/1
ip address 10.0.2.2 255.255.255.0
no shut
exit
router rip  //rip协议,version 1 的配置
version 1
network 192.168.3.0 
network 10.0.2.0 
Exit

3:配置结果与截图

R1#show ip route

R2#show ip route

R3#show ip route

PC1:

PC2:

分析过程和PC1的完全一样

 

二:按rip默认的version 2配置:

1:拓扑结构图

2:配置代码

R1:
enable
config terminal
host r1
no ip domain-lookup
int f0/0
ip address 10.0.1.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.2.1 255.255.255.0
no shut
exit
router rip  //rip 协议 version 2 的配置
version 2
no auto-summary
network 10.0.1.0 
network 192.168.2.0 
exit

R2:
enable
config terminal
host r2
no ip domain-lookup
int f0/0
ip address 192.168.2.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.3.1 255.255.255.0
no shut
exit
router rip  //rip 协议 version 2 的配置
version 2
no auto-summary
network 192.168.2.0 
network 192.168.3.0 
exit

R3:
enable
config terminal
host r3
no ip domain-lookup
int f0/0
ip address 192.168.3.2 255.255.255.0
no shut
exit
int f0/1
ip address 10.0.2.2  255.255.255.0
no shut
exit
router rip  //rip 协议 version 2 的配置
version 2
no auto-summary
network 192.168.3.0 
network 10.0.2.0 
Exit

3:配置结果与截图

R1#show ip route

R2#show ip route

R3#show ip route

PC1:

PC2:过程同PC1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值