RIPV2的實現(一)

RIPV2實驗報告

:實驗要求

1.    v2vlsm,設計正確的ip地址,不等長的子網掩碼。

2.     設計三個路由器構成的4個子網接口。

3.    正確配置RIPV2,實現網絡互聯讓每一個路由器學習的完整的路由表。

:實驗的目標

1.    設計出每一個子網的ip地址。

2.    每個子網之間可一相互通信。

3.    每一個路由器之間相互學習到路由表。

:實驗拓撲結構圖
  

:實驗過程

1.    ip地址的設計

pc0 192.168.1.2/26

routera :

   fa0/0 192.168.1.1/26

   s1/0  192.168.1.117/29

routerb:

  fa0/0 192.168.1.67/27

  s1/0 192.168.1.126/30

 pc1 192.168.1.68/27

routerc :

   fa0/0 192.168.1.100/28

   s1/0 192.168.1.125/30

  pc2 192.168.1.102/28

2.    routera的配置

接口fa0/0的配置

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#host routera

routera(config)#int fa0/0

routera(config-if)#ip add 192.168.1.1 255.255.255.192

routera(config-if)#no shut

 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

  檢測routera是否與pc0之間的正常通信

routera#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 33/51/63 ms

接口s1/0的配置

Routera(confing)#int s1/0

routera(config-if)#clock rate 64000

routera(config-if)#ip add 192.168.1.117 255.255.255.248

routera(config-if)#no shut

 

%LINK-5-CHANGED: Interface Serial1/0, changed state to down

routera(config-if)#end

檢測routerarouterb之間的通信

routera#ping 192.168.1.118

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.118, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms

3.    routerb 的配置

接口s1/1的配置

 Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#host routerb

routerb(config)#int s1/1

routerb(config-if)#ip add 192.168.1.118 255.255.255.248

routerb(config-if)#no shut

檢測routerbroutera之間是否能夠正常的通信

routerb#ping 192.168.1.117

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.117, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms

 接口fa0/0的配置

routerb#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerb(config)#int fa0/0

routerb(config-if)#ip add 192.168.1.68 255.255.255.224

routerb(config-if)#no shut

 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

routerb(config-if)#end

%SYS-5-CONFIG_I: Configured from console by console

檢測routerbpc1是否正常通信

routerb#ping 192.168.1.69

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.69, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 31/50/63 ms

接口s1/2 的配置

routerb#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerb(config)#int s1/2

routerb(config-if)#ip add 192.168.1.126 255.255.255.252

routerb(config-if)#no shut

檢測routerbrouterc之間的通信

routerb#ping 192.168.1.125

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.125, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 21/29/32 ms

4.    routerc 的配置

接口s1/0的配置

routerc#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerc(config)#int s1/0

routerc(config-if)#ip add 192.168.1.125 255.255.255.252

routerc(config-if)#no shut

routerc(config-if)#end

檢測routercrouterb之間的通信

routerc#ping 192.168.1.126

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.126, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 15/28/47 ms

接口fa0/0的配置

routerc#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerc(config)#int fa0/0

routerc(config-if)#ip add 192.168.1.100 255.255.255.240

routerc(config-if)#no shut

 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

routerc(config-if)#end

%SYS-5-CONFIG_I: Configured from console by console

檢測routercpc2的通信

routerc#ping 192.168.1.101

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.101, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 62/62/63 ms

檢測pc2pc1之間是否正常通信

PC>ping 192.168.1.69

 

Pinging 192.168.1.69 with 32 bytes of data:

 

Reply from 192.168.1.100: Destination host unreachable.

Reply from 192.168.1.100: Destination host unreachable.

Reply from 192.168.1.100: Destination host unreachable.

Reply from 192.168.1.100: Destination host unreachable.

 

Ping statistics for 192.168.1.69:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

檢測pc2pc0之間是否正常通信

PC>ping 192.168.1.101

 

Pinging 192.168.1.101 with 32 bytes of data:

 

Reply from 192.168.1.1: Destination host unreachable.

Reply from 192.168.1.1: Destination host unreachable.

Reply from 192.168.1.1: Destination host unreachable.

Reply from 192.168.1.1: Destination host unreachable.

 

Ping statistics for 192.168.1.101:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章