OSPF实验
作者:互联网
1.IP地址规划
AR1
AR2
AR3
AR4
2.ospf的基础配置
宣告各个接口
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.33 0.0.0.0
AR1:
AR2:
AR3:
AR4:
3.查看边界路由器的邻居表,数据库表
[Huawei]display ospf peer brief
[Huawei]display ospf lsdb
4.修改优先级选举DR
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 0
优先级为0标识时不参选,不用重启设备ospf进程,直接选举完成
AR1:
AR2:
AR3:
DR为AR3,没有BDR
5.给AR4设置缺省路由,全网可达
[Huawei]ospf 1 router-id 4.4.4.4
[Huawei-ospf-1]default-route-advertise always
6.ospf认证,保证更新安全
[Huawei]interface GigabitEthernet0/0/0
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
邻居间密码和模式,编号必须完全一致
7.ospf汇总,减少路由条目数量
[Huawei]ospf 1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128
8.空接口,避免环路
[Huawei]ip route-static 192.168.1.0 25 NULL 0
标签:AR3,ospf,area,0.0,192.168,Huawei,实验,OSPF 来源: https://blog.csdn.net/zize884508137/article/details/122286935