1. 程式人生 > >2017.5.3-morning

2017.5.3-morning

man 4.0 time route 路徑 shutdown 實驗 acer sub

實驗目的

l 掌握RIP協議的配置方法:

l 掌握查看通過動態路由協議RIP學習產生的路由;

l 熟悉廣域網線纜的鏈接方式;

實驗背景

假設校園網通過一臺三層交換機連到校園網出口路由器上,路由器再和校園外的另一臺路由器連接。現要做適當配置,實現校園網內部主機與校園網外部主機之間的相互通信。為了簡化網管的管理維護工作,學校決定采用RIPV2協議實現互通。

技術原理

l RIP(Routing Information Protocols,路由信息協議)是應用較早、使用較普遍的IGP內部網管協議,使用於小型同類網絡,是距離矢量協議;

l RIP協議跳數作為衡量路徑開銷的,RIP協議裏規定最大跳數為15

l RIP協議有兩個版本:RIPv1RIPv2RIPv1屬於有類路由協議,不支持VLSM,以廣播形式進行路由信息的更新,更新周期為30秒;RIPv2屬於無類路由協議,支持VLSM,以組播形式進行路由更細。

實驗步驟

l 建立建立packet tracer拓撲圖

l 1)在本實驗中的三層交換機上劃分VLAN10VLAN20,其中VLAN10用於連接校園網主機,VLAN20用於連接R1

l 2)路由器之間通過V.35電纜通過串口連接,DCE端連接在R1上,配置其時鐘頻率64000

l 3)主機和交換機通過直連線,主機與路由器通過交叉線連接。

l 4)在S3560上配置RIPV2路由協議。

l

5)在路由器R1R2上配置RIPV2路由協議。

l 6)將PC1PC2主機默認網關設置為與直連網路設備接口IP地址。

l 7)驗證PC1PC2主機之間可以互相同信;

實驗設備

PC 2臺;Switch_3560 1臺;Router-PT 2臺;直連線;交叉線;DCE 串口線

PC1

IP: 192.168.1.2

Submask: 255.255.255.0

Gateway: 192.168.1.1

PC2

IP: 192.168.2.2

Submask: 255.255.255.0

Gateway: 192.168.2.1

S3560

en

conf t

hostname S3560

vlan 10

exit

vlan 20

exit

interface fa 0/10

switchport access vlan 10

exit

interface fa 0/20

switchport access valn 20

exit

end

show vlan

conf t

interface vlan 10

ip address 192.168.1.1 255.255.255.0

no shutdown

exit

interface vlan 20

ip address 192.168.3.1 255.255.255.0

no shutdown

end

show ip route

show runing

conf t

router rip

network 192.168.1.0

network 192.168.3.0

version 2

end

show ip route

R1

en

conf t

hostname R1

interface fa 0/0

no shutdown

ip address 192.168.3.2 255.255.255.0

exit

interface serial 2/0

no shutdown

ip address 192.168.4.1 255.255.255.0

clock rate 64000

end

show ip route

conf t

router rip

network 192.168.3.0

network 192.168.4.0

version 2

exit

R2

en

conf t

hostname R2

interface fa 0/0

no shutdown

ip address 192.168.2.1 255.255.255.0

exit

interface serial 2/0

no shutdown

ip address 192.168.4.2 255.255.255.0

end

show ip route

conf t

router rip

network 192.168.2.0

netword 192.168.4.0

version 2

end

PC1 Ping PC2

Ping 192.168.2.2 reply

2017.5.3-morning