路由器OSPF邻居路由

RA:loopback1ipadd:10.10.10.1/24s0/1ipadd:192.168.1.1/24
OSPF1Area0passwordpassword

RB:loopback2ipadd:10.10.11.1/24s0/2ipadd:192.168.1.1/24
OSPF2Area0passwordpassword

config:

RA#
intloopback1<进入回环口1>
ipadd10.10.10.1255.255.255.0<配置IP与掩码>
nosh<激活回环口1>
ex

ints0/1
ipadd192.168.1.1255.255.255.0
nosh
ex

routerospf1<启动OSPF进程号1>
network192.168.1.0255.255.255.0area0<配置运行在OSPF1区域0中的网段>
network10.10.10.0255.255.255.0area0<配置运行在OSPF1区域0中的网段>
area0authenticationsimple<启用OSPF邻居认证为明文认证>
quit

ints0/1<进入串行口1>
ipospfpasswordpassword<配置OSPF认证的密文为:password>
nosh<激活此端口>
exit


RB#
intloopback2
ipadd10.10.11.1255.255.255.0
nosh
ex

ints0/2
ipadd192.168.1.2255.255.255.0
physical-layerspeed64000<配置时钟速率为64000>
nosh
ex

routerospf2
network192.168.1.0255.255.255.0area0
network10.10.11.0255.255.255.0area0
area0authenticationsimple
quit

ints0/2
ipospfpasswordpassword
nosh
exit

本文出自 “匿名者” 博客,谢绝转载!

你可能感兴趣的:(路由器,OSPF认证,OSPF邻居认证)