欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

HCL_ospf_验证 笔记

程序员文章站 2024-03-20 22:06:58
...

ip地址表

设备名称 接口 IP地址
RTA G0/0 10.0.0.1/24
Loopback0 1.1.1.1/32
RTB G0/0 10.0.0.2/24
G0/1 20.0.0.1/24
Loopback0 2.2.2.2/32
RTC G0/1 20.0.0.2/24
Loopback0 3.3.3.3/32

拓扑图

HCL_ospf_验证 笔记

命令配置

ip地址配置此处省略
RTA:
ospf 1
area 0
network 1.1.1.1 0.0.0.0
network 10.0.0.0 0.0.0.255
authentication-mode simple plain 123
quit
interface GigabitEthernet 0/0
ospf authentication-mode simple plain 123
RTB:
ospf 1
area 0
network 10.0.0.0 0.0.0.255
area 1
network 2.2.2.2 0.0.0.0
network 20.0.0.0 0.0.0.255
authentication-mode simple plain 123
area 0
authentication-mode simple plain 123
quit
interface GigabitEthernet 0/0
ospf authentication-mode simple plain 123
interface GigabitEthernet 0/1
ospf authentication-mode simple plain 123
RTC:
ospf 1
area 1
network 3.3.3.3 0.0.0.0
network 20.0.0.0 0.0.0.255
authentication-mode simple plain 123
quit
interface GigabitEthernet 0/1
ospf authentication-mode simple plain 123

结果:

RTA:

HCL_ospf_验证 笔记

RTB:

HCL_ospf_验证 笔记

RTC:

HCL_ospf_验证 笔记