ospf實驗

HZYNB666發表於2020-12-19

在這裡插入圖片描述
.IP地址自行規劃
2.每個路由器有自己的環回
3.R2-R5所在MA網路中,只有R2是DR,其他都是DROTHER
4.R3-R4之間明文認證,R4-R5之間密文認證
5.R3存在環回100,IP為100.1.1.1/24,不能宣告進OSPF
6.區域劃分如圖,區域編號使用0.1.2
7.全網可達

配置IP地址
R1: interface Serial4/0/0
ip address 11.1.1.1 255.255.255.0
interface LoopBack1
ip address 1.1.1.1 255.255.255.0
R2:interface Serial4/0/0
ip address 11.1.1.2 255.255.255.0
interface GigabitEthernet0/0/0
ip address 11.1.2.1 255.255.255.0
interface LoopBack1
ip address 2.2.2.2 255.255.255.0
R3:interface Serial4/0/0
ip address 11.1.3.1 255.255.255.0
interface GigabitEthernet0/0/0
ip address 11.1.2.2 255.255.255.0
interface LoopBack1
ip address 3.3.3.3 255.255.255.0
R4:interface Serial4/0/0
ip address 11.1.3.2 255.255.255.0
interface Serial4/0/1
ip address 11.1.4.1 255.255.255.0
interface GigabitEthernet0/0/0
ip address 11.1.2.3 255.255.255.0
interface LoopBack1
ip address 4.4.4.4 255.255.255.0
R5:interface Serial4/0/1
ip address 11.1.4.2 255.255.255.0
interface GigabitEthernet0/0/0
ip address 11.1.2.4 255.255.255.0
interface LoopBack100
ip address 100.1.1.1 255.255.255.0
interface LoopBack1
ip address 5.5.5.5 255.255.255.0

劃分割槽域與宣告
Ps:介面處於哪個區域就向哪個區域宣告,環回可以任意選擇一個宣告
R1:ospf 1 router-id 1.1.1.1
area 0.0.0.1
network 1.1.1.1 0.0.0.0
network 11.1.1.0 0.0.0.255
R2: ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 11.1.2.0 0.0.0.255
area 0.0.0.1
network 2.2.2.2 0.0.0.0
network 11.1.1.0 0.0.0.255
R3: ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 11.1.2.0 0.0.0.255
area 0.0.0.2
network 3.3.3.3 0.0.0.0
network 11.1.3.0 0.0.0.255
R4: ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 11.1.2.0 0.0.0.255
area 0.0.0.2
network 11.1.3.0 0.0.0.255
network 11.1.4.0 0.0.0.255
R5: ospf 1 router-id 5.5.5.5
default-route-advertise always
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 11.1.2.0 0.0.0.255
area 0.0.0.2
network 11.1.4.0 0.0.0.255

R3-R4明文認證,R4-R5密文認證
明文在這裡插入圖片描述
在這裡插入圖片描述

密文
在這裡插入圖片描述
在這裡插入圖片描述
測試連通性

相關文章