cisco RIP(传闻协议)Routing information protocol

 

 

Corp(config)#rout rip
Corp(config-router)#network 10.0.0.0

     10.0.0.0/24 is subnetted, 5 subnets

C 10.1.1.0 is directly connected, Vlan1

C 10.1.2.0 is directly connected, Serial1/0

C 10.1.3.0 is directly connected, Serial1/1

C 10.1.4.0 is directly connected, Serial1/2

C 10.1.5.0 is directly connected, FastEthernet0/0

R 172.16.0.0/16 [120/1] via 10.1.5.2, 00:00:19, FastEthernet0/0

R 192.168.10.0/24 [120/1] via 10.1.2.2, 00:00:14, Serial1/0

[120/1] via 10.1.3.2, 00:00:14, Serial1/1

R 192.168.20.0/24 [120/1] via 10.1.2.2, 00:00:14, Serial1/0

[120/1] via 10.1.3.2, 00:00:14, Serial1/1

R 192.168.30.0/24 [120/1] via 10.1.4.2, 00:00:11, Serial1/2

R 192.168.40.0/24 [120/1] via 10.1.4.2, 00:00:11, Serial1/2 


R1(config-router)#network 10.0.0.0

R1(config-router)#network 192.168.10.0
R1(config-router)#PASSive-interface S0/0/0               /*抑制RIP向外传播rip更新/

 R1(config-router)#network 192.168.20.0

Gateway of last resort is not set

 

10.0.0.0/24 is subnetted, 5 subnets

R 10.1.1.0 [120/1] via 10.1.2.1, 00:00:23, Serial0/0/0

[120/1] via 10.1.3.1, 00:00:23, Serial0/0/1

C 10.1.2.0 is directly connected, Serial0/0/0

C 10.1.3.0 is directly connected, Serial0/0/1

R 10.1.4.0 [120/1] via 10.1.2.1, 00:00:23, Serial0/0/0

[120/1] via 10.1.3.1, 00:00:23, Serial0/0/1

R 10.1.5.0 [120/1] via 10.1.2.1, 00:00:23, Serial0/0/0

[120/1] via 10.1.3.1, 00:00:23, Serial0/0/1

C 192.168.10.0/24 is directly connected, FastEthernet0/0

C 192.168.20.0/24 is directly connected, FastEthernet0/1 



R2(config)#

R2(config)#rout rip

R2(config-router)#netw 10.0.0.0

R2(config-router)#network 192.168.30.0

R2(config-router)#network 192.168.40.0

 

R2(config-router)#network 192.168.30.0

R2(config-router)#version 2    /*注:RIPv2/




     10.0.0.0/24 is subnetted, 5 subnets

R 10.1.1.0 [120/1] via 10.1.4.1, 00:00:22, Serial0/0/0

R 10.1.2.0 [120/1] via 10.1.4.1, 00:00:22, Serial0/0/0

R 10.1.3.0 [120/1] via 10.1.4.1, 00:00:22, Serial0/0/0

C 10.1.4.0 is directly connected, Serial0/0/0

R 10.1.5.0 [120/1] via 10.1.4.1, 00:00:22, Serial0/0/0

R 192.168.10.0/24 [120/2] via 10.1.4.1, 00:00:22, Serial0/0/0

R 192.168.20.0/24 [120/2] via 10.1.4.1, 00:00:22, Serial0/0/0

C 192.168.30.0/24 is directly connected, FastEthernet0/0

C 192.168.40.0/24 is directly connected, FastEthernet0/1



R3(config)#

R3(config)#rout rip

R3(config-router)#net 10.0.0.0

R3(config-router)#net 172.16.0.0

     10.0.0.0/24 is subnetted, 5 subnets

R 10.1.1.0 [120/1] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 10.1.2.0 [120/1] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 10.1.3.0 [120/1] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 10.1.4.0 [120/1] via 10.1.5.1, 00:00:12, FastEthernet0/0

C 10.1.5.0 is directly connected, FastEthernet0/0

172.16.0.0/24 is subnetted, 1 subnets

C 172.16.10.0 is directly connected, Dot11Radio0/3/0

R 192.168.10.0/24 [120/2] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 192.168.20.0/24 [120/2] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 192.168.30.0/24 [120/2] via 10.1.5.1, 00:00:12, FastEthernet0/0

R 192.168.40.0/24 [120/2] via 10.1.5.1, 00:00:12, FastEthernet0/0

S* 0.0.0.0/0 [1/0] via 10.1.5.1 


 






 

posted on 2019-11-03 22:22  alonso-zhou  阅读(196)  评论(0编辑  收藏  举报