Cisco点滴――RIPv1路由协议

最近在帮朋友做网络,正好顺便复习一下Cisco方面的知识,呵呵,人都说知识的海洋需要点滴的积累,我就打算做个Cisco点滴博文系列,(*^__^*) 嘻,不知道能坚持多久,不过,我想,重在参与,贵在坚持~~

过段时间我把以前和现在的这些网络小项目整合起来,制作成项目案例发布出来,希望对大家,尤其是刚开始学习Cisco的朋友们能够有所帮助,也希望高手们能够为我指点迷津,让我们相互学习,相互进步吧~~(*^__^*) 呵呵,废话不多数了,开始了~~

我的实验环境是小凡+SecureCRT

现在我们说一下关于RIP协议的简单介绍,哈~~复习笔记记录~~
RIP属于一种动态路由协议,动态路由协议包括距离向量路由协议和链路状态路由协议。RIP(Routing  Information Protocols,路由信息协议)是使用最广泛的距离向量路由协议。RIP是为小型网络环境设计的,因为这类协议的路由学习及路由更新将产生较大的流量,占用过多的带宽。每个有RIP功能的路由器默认情况下每隔30秒利用UDP 520端口向与它直连的网络邻居广播(RIP  v1)或组播(RIP v2)路由更新。因此路由器不知道网络的全局情况,如果路由更新在网络上传播慢, 将会导致网络收敛较慢, 造成路由环路。 为了避免路由环路,RIP采用水平分割、毒性逆转、定义最大跳数、闪式更新、抑制计时5个机制来避免路由环路。
其实配置RIP网络很简单,我们先来看看如何配置RIPv1吧~~
拓扑图如下:

 

连线如图:

Router1 S0/0 <----> Router2 S0/0
Router2 S0/1 <----> Router3 S0/1
Router3 S0/0 <----> Router4 S0/0
Router1 F1/0 <----> VPCS V0/1
Router4 F1/0 <----> VPCS V0/2

R1配置

R1(config)#router rip   //启动RIP进程
R1(config-router)#version 1  //配置RIP版本1
R1(config-router)#network 1.1.1.0  //通告网络
R1(config-router)#network 10.0.0.0
R1(config-router)#exit
配置接口IP地址:
R1(config)#int f1/0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit

R1(config)#int s0/0
R1(config-if)#ip add 10.0.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit

R1#show ip route  //该命令用来查看路由表
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, FastEthernet1/0
R    4.0.0.0/8 [120/3] via 10.0.0.2, 00:00:16, Serial0/0
R    20.0.0.0/8 [120/1] via 10.0.0.2, 00:00:16, Serial0/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/0
R    30.0.0.0/8 [120/2] via 10.0.0.2, 00:00:16, Serial0/0

R1#show ip protocols //查看IP路由协议配置和统计信息。
Routing Protocol is "rip" //路由器上运行的路由协议是RIP
  Sending updates every 30 seconds, next due in 8 seconds //更新周期是30秒,距离下次更新还有8秒
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is not set //在出方向上没有设置过滤列表
  Incoming update filter list for all interfaces is not set //在入方向上没有设置过滤列表
  Redistributing: rip //只运行RIP协议,没有其它的协议重分布进来
  Default version control: send version 1, receive version 1 //默认发送版本1的路由更新,接收本版1的路由更新
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial0/0             1     1                                   
    FastEthernet1/0       1     1                                   
  Automatic network summarization is in effect //RIP路由协议默认开启自动汇总功能
  Maximum path: 4 /RIP路由协议可以支持4条等价路径,最大为6条
  Routing for Networks:
    1.0.0.0
    10.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.0.0.2             120      00:00:07
  Distance: (default is 120)

R1#show running-config   //系统状态
Building configuration...

Current configuration : 1057 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
ip audit notify log
ip audit po max-events 100
mpls ldp logging neighbor-changes
!
!
!
!        
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Serial0/0
 ip address 10.0.0.1 255.255.255.0
 serial restart_delay 0
 no fair-queue
!
interface Serial0/1
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart_delay 0
!
interface FastEthernet1/0
 ip address 1.1.1.1 255.255.255.0
 duplex auto
 speed auto
!
router rip
 version 1
 network 1.0.0.0
 network 10.0.0.0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

 

R2配置

R2(config)#router rip
R2(config-router)#version 1
R2(config-router)#network 10.0.0.0
R2(config-router)#network 20.0.0.0
R2(config-router)#exit

R2(config)#int s0/0
R2(config-if)#ip add 10.0.0.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit

R2(config)#int s0/1
R2(config-if)#ip add 20.0.0.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit

R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    1.0.0.0/8 [120/1] via 10.0.0.1, 00:00:25, Serial0/0
R    4.0.0.0/8 [120/2] via 20.0.0.3, 00:00:24, Serial0/1
     20.0.0.0/24 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Serial0/1
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/0
R    30.0.0.0/8 [120/1] via 20.0.0.3, 00:00:24, Serial0/1

R2#show ip protocols
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 1 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Redistributing: rip
  Default version control: send version 1, receive version 1
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial0/0             1     1                                   
    Serial0/1             1     1                                   
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    10.0.0.0
    20.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.0.0.1             120      00:00:15
    20.0.0.3             120      00:00:21
  Distance: (default is 120)

R2#show running-config
Building configuration...

Current configuration : 961 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
logging queue-limit 100
!
ip subnet-zero
!
!
!
ip audit notify log
ip audit po max-events 100
mpls ldp logging neighbor-changes
!
!
!
!
!        
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Serial0/0
 ip address 10.0.0.2 255.255.255.0
 serial restart_delay 0
 no fair-queue
!
interface Serial0/1
 ip address 20.0.0.2 255.255.255.0
 serial restart_delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart_delay 0
!
router rip
 version 1
 network 10.0.0.0
 network 20.0.0.0
!
ip http server
no ip http secure-server
ip classless
!
!
!        
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

R3配置

R3(config)#router rip
R3(config-router)#ver
R3(config-router)#version 1
R3(config-router)#network 20.0.0.0
R3(config-router)#network 30.0.0.0
R3(config-router)#exit

R3(config)#int s0/1
R3(config-if)#ip add 20.0.0.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit

R3(config)#int S0/0
R3(config-if)#ip add 30.0.0.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit

R3# show ip route //路由信息
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    1.0.0.0/8 [120/2] via 20.0.0.2, 00:00:08, Serial0/1
R    4.0.0.0/8 [120/1] via 30.0.0.4, 00:00:27, Serial0/0
     20.0.0.0/24 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Serial0/1
R    10.0.0.0/8 [120/1] via 20.0.0.2, 00:00:08, Serial0/1
     30.0.0.0/24 is subnetted, 1 subnets
C       30.0.0.0 is directly connected, Serial0/0

R3#show ip protocols
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 9 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Redistributing: rip
  Default version control: send version 1, receive version 1
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial0/0             1     1                                   
    Serial0/1             1     1                                   
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    20.0.0.0
    30.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    20.0.0.2             120      00:00:10
    30.0.0.4             120      00:00:17
  Distance: (default is 120)

R3#show running-config //系统状态
Building configuration...

Current configuration : 981 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
ip audit notify log
ip audit po max-events 100
mpls ldp logging neighbor-changes
!
!
!
!        
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Serial0/0
 ip address 30.0.0.3 255.255.255.0
 serial restart_delay 0
 no fair-queue
!
interface Serial0/1
 ip address 20.0.0.3 255.255.255.0
 serial restart_delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart_delay 0
!
router rip
 version 1
 network 20.0.0.0
 network 30.0.0.0
!
ip http server
no ip http secure-server
ip classless
!
!        
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
         
R4配置

R4(config)#router rip
R4(config-router)#version 1
R4(config-router)#network 30.0.0.0
R4(config-router)#network 4.4.4.0
R4(config-router)#exit

R4(config)#int f1/0
R4(config-if)#ip add 4.4.4.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit

R4(config)#int s0/0
R4(config-if)#ip add 30.0.0.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit

R4# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    1.0.0.0/8 [120/3] via 30.0.0.3, 00:00:09, Serial0/0
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, FastEthernet1/0
R    20.0.0.0/8 [120/1] via 30.0.0.3, 00:00:09, Serial0/0
R    10.0.0.0/8 [120/2] via 30.0.0.3, 00:00:09, Serial0/0
     30.0.0.0/24 is subnetted, 1 subnets
C       30.0.0.0 is directly connected, Serial0/0

R4#show ip protocols
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 22 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Redistributing: rip
  Default version control: send version 1, receive version 1
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial0/0             1     1                                   
    FastEthernet1/0       1     1                                   
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    4.0.0.0
    30.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    30.0.0.3             120      00:00:15
  Distance: (default is 120)

R4#show running-config
Building configuration...

Current configuration : 1042 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
ip audit notify log
ip audit po max-events 100
mpls ldp logging neighbor-changes
!
!
!
!        
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Serial0/0
 ip address 30.0.0.4 255.255.255.0
 serial restart_delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart_delay 0
!
interface FastEthernet1/0
 ip address 4.4.4.4 255.255.255.0
 duplex auto
 speed auto
!
router rip
 version 1
 network 4.0.0.0
 network 30.0.0.0
!        
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

测试路由连通性:(全通)
R1

R1#ping 1.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 32/34/40 ms
R1#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/65/76 ms
R1#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/60 ms
R1#ping 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/52 ms
R1#ping 20.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/78/112 ms
R1#ping 30.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/76/112 ms
R1#ping 30.0.0.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 100/122/156 ms
R1#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/103/124 ms
R1#ping 4.4.4.2

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

R2

R2#ping 1.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/70/84 ms
R2#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/39/56 ms
R2#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/41/60 ms
R2#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/63/72 ms
R2#ping 10.0.0.3

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

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/65/96 ms
R2#ping 20.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/34/64 ms
R2#ping 30.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/51/76 ms
R2#ping 30.0.0.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/78/124 ms
R2#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/77/100 ms
R2#ping 4.4.4.2

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

R3

R3#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/68/76 ms
R3#ping 1.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/107/160 ms
R3#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/70/80 ms
R3#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/35/48 ms
R3#ping 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/35/60 ms
R3#ping 20.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/71/92 ms
R3#ping 30.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/68/108 ms
R3#ping 30.0.0.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/51/68 ms
R3#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/49/72 ms
R3#ping 4.4.4.2

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

R4

R4#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/90/124 ms
R4#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/105/140 ms
R4#ping 1.1.1.2

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

R4#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/105/152 ms
R4#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/90/120 ms
R4#ping 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/80/96 ms
R4#ping 20.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/64 ms
R4#ping 30.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/36/48 ms
R4#ping 30.0.0.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.0.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/91/140 ms
R4#ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R4#ping 4.4.4.2

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


测试客户机连通性:(客户机互通)
客户机状态:

VPCS 1 >show ip

NAME   IP/CIDR              GATEWAY           LPORT   RPORT
PC1    1.1.1.2/24           1.1.1.1           10001   11110
PC2    4.4.4.2/24           4.4.4.4           10002   11410
PC3    0.0.0.0/0            0.0.0.0           10003   30002
PC4    0.0.0.0/0            0.0.0.0           10004   30003
PC5    0.0.0.0/0            0.0.0.0           10005   30004
PC6    0.0.0.0/0            0.0.0.0           10006   30005
PC7    0.0.0.0/0            0.0.0.0           10007   30006
PC8    0.0.0.0/0            0.0.0.0           10008   30007
PC9    0.0.0.0/0            0.0.0.0           10009   30008

VPCS 1 >ping 4.4.4.2
4.4.4.2 icmp_seq=1 time=250.000 ms
4.4.4.2 icmp_seq=2 time=171.000 ms
4.4.4.2 icmp_seq=3 time=124.000 ms
4.4.4.2 icmp_seq=4 time=156.000 ms
4.4.4.2 icmp_seq=5 time=156.000 ms

VPCS 2 >ping 1.1.1.2
1.1.1.2 icmp_seq=1 time=156.000 ms
1.1.1.2 icmp_seq=2 time=156.000 ms
1.1.1.2 icmp_seq=3 time=218.000 ms
1.1.1.2 icmp_seq=4 time=156.000 ms
1.1.1.2 icmp_seq=5 time=187.000 ms

 

本文出自 “龙目小子,博闻天下” 博客,谢绝转载!

你可能感兴趣的:(职场,Cisco,休闲,rip,longmuxiaozi)