
要求:
- 每個路由器都有自己的環回
- R3—R4密文認證,R4—R5明文認證
- R5存在環回100,IP為100.1.1.1 24,不能宣告進ospf
- 全網可達
? 配置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密文認證
[4-Serial4/0/0]ospf authentication-mode simple cipher 8888
[3-Serial4/0/0]ospf authentication-mode simple cipher 8888
對R4—R5明文認證
[4-Serial4/0/1]ospf authentication-mode simple 8888
[5-Serial4/0/1]ospf authentication-mode simple 8888
使R5:100環回不能出現在路由表里
authentication-mode password
此時R1路由表中無100.1.1.1 24 的地址
0.0.0.0/0 O_ASE 150 1 D 11.1.1.2 Serial4/0/0
1.1.1.0/24 Direct 0 0 D 1.1.1.1 LoopBack1
1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1
1.1.1.255/32 Direct 0 0 D 127.0.0.1 LoopBack1
2.2.2.2/32 OSPF 10 48 D 11.1.1.2 Serial4/0/0
3.3.3.3/32 OSPF 10 49 D 11.1.1.2 Serial4/0/0
4.4.4.4/32 OSPF 10 49 D 11.1.1.2 Serial4/0/0
5.5.5.5/32 OSPF 10 49 D 11.1.1.2 Serial4/0/0
11.1.1.0/24 Direct 0 0 D 11.1.1.1 Serial4/0/0
11.1.1.1/32 Direct 0 0 D 127.0.0.1 Serial4/0/0
11.1.1.2/32 Direct 0 0 D 11.1.1.2 Serial4/0/0
11.1.1.255/32 Direct 0 0 D 127.0.0.1 Serial4/0/0
11.1.2.0/24 OSPF 10 49 D 11.1.1.2 Serial4/0/0
11.1.3.0/24 OSPF 10 97 D 11.1.1.2 Serial4/0/0
11.1.4.0/24 OSPF 10 97 D 11.1.1.2 Serial4/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
實驗完成
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/234936.html
標籤:其他
上一篇:關于深度學習下目標檢測入門那點事
