路由器OSPF動態路由配置

一、實驗名稱


路由器OSPF動態路由配置


二、實驗內容


1.新建 packet tracer 拓撲圖
2在本實驗中的三層交換機上劃分 VLAN10 VLAN20,其中 VLAN10 用於
連接校園網主機,
VLAN20 用於連接 R1
3.路由器之間通過 V35 電纜通過串口連接, DCE 端連接在 R1 上,配置其時鐘
頻率 64000
4.主機和交換機通過直連線,主機與路由器通過交叉線連接。
5.在 S3560 上配置 OSPF 路由協議。
6.在路由器 R1R2 上配置 OSPF 路由協議。
7.將 PC1PC2 主機默認網關設置爲與直連網路設備接口 IP 地址。
8.驗證 PC1PC2 主機之間可以互相同信;


三、實驗過程


1.將PC 2 臺、 Switch_3560 1 臺、 Router-PT 2 臺用直連線、交叉線、 DCE 串口線互聯

blob.png


2.配置兩臺PC的IP地址和網關

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


3.配置S3560

en
conf t
hostname S3569
vlan 10
exit
vlan 20
interface fa 0/10
switchport access vlan 10
exit
int fa 0/20
switchport access valn 20
exit
interface valn 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
conf t
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
end
show ip route

blob.png

blob.png

blob.png


4.配置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
clock rate 64000
ip address 192.168.4.1 255.255.255.0
end
show ip route
conf t
router ospf 1
network 192.168.3.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
end
show ip route

blob.png

blob.png

blob.png


5.配置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 ospf 1
network 192.168.2.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
end
show ip route

blob.png

blob.png

blob.png


四、實驗結果


blob.png


實現互通,實驗結束






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