OSPF路由汇总和外部路由汇总

OSPF路由汇总和外部路由汇总_第1张图片

OSPF路由汇总和外部路由汇总
AR1:
ospf 1 router-id 11.11.11.11
area 0.0.0.1
network 1.1.1.1 0.0.0.0
network 172.16.0.0 0.0.255.255
network 192.168.12.1 0.0.0.0

AR2:
ospf 1 router-id 22.22.22.22
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.23.2 0.0.0.0
area 0.0.0.1
abr-summary 172.16.0.0 255.255.252.0 //abr域间路由汇总
network 192.168.12.2 0.0.0.0

AR3:
ospf 1 router-id 33.33.33.33
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.23.3 0.0.0.0
area 0.0.0.2
network 192.168.34.3 0.0.0.0

AR4:
ospf 1 router-id 44.44.44.44
area 0.0.0.2
network 4.4.4.4 0.0.0.0
network 192.168.34.4 0.0.0.0

display ospf interface lo1 //查看网络类型
ospf network-type broadcast //在loopback 1下修改为broadcast网络类型

外部路由汇总:
AR1:
ospf 1 router-id 11.11.11.11
asbr-summary 172.16.0.0 255.255.252.0 //asbr 汇总外部路由
import-route direct //引入直连路由
area 0.0.0.1
network 1.1.1.1 0.0.0.0
network 192.168.12.1 0.0.0.0

AR2:
ospf 1 router-id 22.22.22.22
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.23.2 0.0.0.0
area 0.0.0.1
network 192.168.12.2 0.0.0.0

AR3:
ospf 1 router-id 33.33.33.33
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.23.3 0.0.0.0
area 0.0.0.2
network 192.168.34.3 0.0.0.0

AR4:
ospf 1 router-id 44.44.44.44
area 0.0.0.2
network 4.4.4.4 0.0.0.0
network 192.168.34.4 0.0.0.0

OSPF区域认证和链路认证
链路认证【链路两端】
AR1:
interface g0/0/0
ospf authentication-mode md5 1 cipher huawei

AR2:
interface g0/0/0
ospf authentication-mode md5 1 cipher huawei

区域认证【区域内所有】
AR3:
area 0.0.0.2
authentication-mode md5 1 plain 123

AR4:
ospf 1 router-id 44.44.44.44
area 0.0.0.2
authentication-mode md5 1 plain 123
实验总结:
在ABR上做abr域间路由汇总,在ASBR上做asbr 汇总外部路由。

你可能感兴趣的:(HUAWEI,OSPF,华为)