配置:
R1:
[V200R003C00]
#
sysname r1
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.1.1.1 255.255.255.0
ospf network-type p2p
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
ospf 100 router-id 1.1.1.1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<r1>
R2:
[r2]display current-configuration
[V200R003C00]
#
sysname r2
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
ospf 100 router-id 2.2.2.2
area 0.0.0.0
network 10.1.1.0 0.0.0.255
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
[r2]
测试结果:
描述现象:能够正常建立邻居、邻接关系,但是无法正常选举DR与BDR,不能更新lsdb,路由无法正常通信
问题解析
1、通过查看LSA详细信息便会发现,对于MA类型网络,LSA使用Transnet方式进行描述;
2、而对于P2P类型网络,LSA使用P2P + Stubnet方式进行描述;
3、因此在进行SPF计算时两侧不匹配,无法计算出路由;
4、同时,在广播、NBMA网络上需要选举DR与BDR,而在P2P网络则不需要选举,MA的网络里由DR负责洪泛Type-2的LSA,并同步该网段内所有路由器的数据库;
5、而P2P网络内没有DR的概念,二者的数据库无法同步,也无法进行SPF计算,因此无法学习到对方的路由
标签:default,GigabitEthernet0,网络,interface,user,类型,local,admin,P2P From: https://blog.51cto.com/u_13560030/8720165