一:实验拓扑:

二:练习通过使用连续子网配通全网
R1#show run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
!
!
!
!
memory-size iomem 15
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 10.33.5.1 255.255.240.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.83.244 255.255.255.0
duplex auto
speed auto
!
router rip
version 1
network 10.0.0.0
network 192.168.83.0
!
ip classless
no ip http server
!
!
line con 0
exec-timeout 0 0
password zhj
logging synchronous
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
End
R2#show run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
!
!
!
!
!
memory-size iomem 15
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface Ethernet1/0
ip address 192.168.83.1 255.255.255.0
!
interface Ethernet1/1
ip address 172.17.1.2 255.255.255.0
!
interface Ethernet1/2
ip address 192.168.12.65 255.255.255.224
!
interface Ethernet1/3
ip address 172.17.2.1 255.255.255.0
!
router rip
version 1
network 172.17.0.0
network 192.168.12.0
network 192.168.83.0
!
ip classless
no ip http server
!
!
line con 0
exec-timeout 0 0
password zhj
logging synchronous
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
End
R3#show run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
!
!
!
!
!
memory-size iomem 15
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 172.17.3.1 255.255.255.0
!
interface Ethernet1/0
ip address 172.17.1.2 255.255.255.0
!
interface Ethernet1/1
no ip address
shutdown
!
interface Ethernet1/2
no ip address
!
interface Ethernet1/3
no ip address
!
router rip
version 1
network 172.17.0.0
!
ip classless
no ip http server
!
!
line con 0
exec-timeout 0 0
password zhj
logging synchronous
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
End
R4#show run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
!
!
!
!
!
memory-size iomem 15
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 172.17.4.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.17.2.2 255.255.255.0
duplex auto
speed auto
!
router rip
version 1
network 172.17.0.0
!
ip classless
no ip http server
!
!
line con 0
exec-timeout 0 0
password zhj
logging synchronous
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
End
在R2上开debug ip rip
通过dubug消息显示了路由器R2上接收和发送的RIP更新消息,并可以观察到网络路由的汇总和水平分隔的效果.
R2#debug ip rip
RIP protocol debugging is on
R2#
01:09:25: RIP: received v1 update from 172.17.2.2 on Ethernet1/3
01:09:25: 172.17.4.0 in 1 hops
//R2从e1/3接口上收到一条从172.17.2.2发送过来的路由信息172.17.4.0,并且对R2来说到达这个网段需要经过一跳
R2#
01:09:35: RIP: sending v1 update to 255.255.255.255 via Ethernet1/0 (192.168.83.1)
01:09:35: RIP: build update entries
01:09:35: network 172.17.0.0 metric 1
01:09:35: network 192.168.12.0 metric 1
//R2从e1/0发送出去一条更新广播,包含两条路由条目,172.17.0.0和192.168.12.0,并且RIP版本是1
01:09:35: RIP: sending v1 update to 255.255.255.255 via Ethernet1/1 (172.17.1.2)
01:09:35: RIP: build update entries
01:09:35: network 10.0.0.0 metric 2
01:09:35: subnet 172.17.2.0 metric 1
01:09:35: subnet 172.17.4.0 metric 2
01:09:35: network 192.168.12.0 metric 1
01:09:35: network 192.168.83.0 metric 1
//R2从e1/1发送出去一条更新广播,包含5条路由条目,10.0.0.0,172.17.2.0,172.17.4.0,192.168.12.0,192.168.83.0,并且到达这个网段对R3来说需要2,1,2,1,1 跳.
01:09:35: RIP: sending v1 update to 255.255.255.255 via Ethernet1/2 (192.168.12.65)
01:09:35: RIP: build update entries
01:09:35: network 10.0.0.0 metric 2
R2#
01:09:35: network 172.17.0.0 metric 1
01:09:35: network 192.168.83.0 metric 1
01:09:35: RIP: sending v1 update to 255.255.255.255 via Ethernet1/3 (172.17.2.1)
01:09:35: RIP: build update entries
01:09:35: network 10.0.0.0 metric 2
01:09:35: subnet 172.17.1.0 metric 1
01:09:35: network 192.168.12.0 metric 1
01:09:35: network 192.168.83.0 metric 1
R2#
01:09:46: RIP: received v1 update from 192.168.83.244 on Ethernet1/0
01:09:46: 10.0.0.0 in 1 hops
R2#
01:09:53: RIP: received v1 update from 172.17.2.2 on Ethernet1/3
01:09:53: 172.17.4.0 in 1 hops
R2#
01:10:01: RIP: sending v1 update to 255.255.255.255 via Ethernet1/0 (192.168.83.1)
01:10:01: RIP: build update entries
01:10:01: network 172.17.0.0 metric 1
01:10:01: network 192.168.12.0 metric 1
01:10:01: RIP: sending v1 update to 255.255.255.255 via Ethernet1/1 (172.17.1.2)
01:10:01: RIP: build update entries
01:10:01: network 10.0.0.0 metric 2
01:10:01: subnet 172.17.2.0 metric 1
01:10:01: subnet 172.17.4.0 metric 2
01:10:01: network 192.168.12.0 metric 1
01:10:01: network 192.168.83.0 metric 1
01:10:01: RIP: sending v1 update to 255.255.255.255 via Ethernet1/2 (192.168.12.65)
01:10:01: RIP: build update entries
01:10:01: network 10.0.0.0 metric 2
R2#
01:10:01: network 172.17.0.0 metric 1
01:10:01: network 192.168.83.0 metric 1
01:10:01: RIP: sending v1 update to 255.255.255.255 via Ethernet1/3 (172.17.2.1)
01:10:01: RIP: build update entries
01:10:01: network 10.0.0.0 metric 2
01:10:01: subnet 172.17.1.0 metric 1
01:10:01: network 192.168.12.0 metric 1
01:10:01: network 192.168.83.0 metric 1
R2#
01:10:13: RIP: received v1 update from 192.168.83.244 on Ethernet1/0
01:10:13: 10.0.0.0 in 1 hops
R2#
01:10:23: RIP: received v1 update from 172.17.2.2 on Ethernet1/3
01:10:23: 172.17.4.0 in 1 hops
R2#
01:10:31: RIP: sending v1 update to 255.255.255.255 via Ethernet1/0 (192.168.83.1)
01:10:31: RIP: build update entries
01:10:31: network 172.17.0.0 metric 1
01:10:31: network 192.168.12.0 metric 1
01:10:31: RIP: sending v1 update to 255.255.255.255 via Ethernet1/1 (172.17.1.2)
01:10:31: RIP: build update entries
01:10:31: network 10.0.0.0 metric 2
01:10:31: subnet 172.17.2.0 metric 1
01:10:31: subnet 172.17.4.0 metric 2
01:10:31: network 192.168.12.0 metric 1
01:10:31: network 192.168.83.0 metric 1
01:10:31: RIP: sending v1 update to 255.255.255.255 via Ethernet1/2 (192.168.12.65)
01:10:31: RIP: build update entries
01:10:31: network 10.0.0.0 metric 2
R2#
01:10:31: network 172.17.0.0 metric 1
01:10:31: network 192.168.83.0 metric 1
01:10:31: RIP: sending v1 update to 255.255.255.255 via Ethernet1/3 (172.17.2.1)
01:10:31: RIP: build update entries
01:10:31: network 10.0.0.0 metric 2
01:10:31: subnet 172.17.1.0 metric 1
01:10:31: network 192.168.12.0 metric 1
01:10:31: network 192.168.83.0 metric 1
R2#
01:10:40: RIP: received v1 update from 192.168.83.244 on Ethernet1/0
01:10:40: 10.0.0.0 in 1 hops
R2#
上一篇:CCNA单臂路由实验配置(二)
下一篇:CCNA802-RIP的防环机制


