帧中继默认是NBMA,P2MP是通过NBMA强制修改的,帧中继二层不支持组播,而ospf是使用组播来交互报文,由此可以说明P2MP是广播(组播)来交互的,所以不需要手工指定peer,但要在fr map ip x.x.x.x broadcast???
p2mp也有两种方式,
一种是通过修改帧中继map表,使其支持广播方式
另一种是通过单播手工指定peer(实验没做成功),为什么不能成功,因为p2mp采用组播交互报文??
第一种:通过通过修改帧中继map表,使其支持广播方式:
R1:
[Huawei]dis cur conf ospf
[V200R003C00]
#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 11.1.1.1 0.0.0.0
#
return
[Huawei]
[Huawei]dis cur inter
[V200R003C00]
#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.2 102 broadcast
fr map ip 10.1.123.3 103 broadcast
ip address 10.1.123.1 255.255.255.0
ospf network-type p2mp
#
[Huawei]
[Huawei]dis ospf inter s 1/0/0
OSPF Process 1 with Router ID 11.1.1.1
Interfaces
Interface: 10.1.123.1 (Serial1/0/0)
Cost: 48 State: P-2-P Type: P2MP MTU: 1500
Timers: Hello 30 , Dead 120 , Poll 120 , Retransmit 5 , Transmit Delay 1
[Huawei]
[Huawei]dis ospf peer bri
OSPF Process 1 with Router ID 11.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Serial1/0/0 22.1.1.1 Full
0.0.0.0 Serial1/0/0 33.1.1.1 Full
----------------------------------------------------------------------------
[Huawei]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.0/24 Direct 0 0 D 10.1.123.1 Serial1/0/0
10.1.123.1/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
P2MP会自动产生一条32位主机路由,用户R3访问R2使用?
10.1.123.2/32 Direct 0 0 D 10.1.123.2 Serial1/0/0
10.1.123.3/32 Direct 0 0 D 10.1.123.3 Serial1/0/0
10.1.123.255/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
11.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
22.1.1.1/32 OSPF 10 48 D 10.1.123.2 Serial1/0/0
33.1.1.1/32 OSPF 10 48 D 10.1.123.3 Serial1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[Huawei]dis ospf peer
OSPF Process 1 with Router ID 11.1.1.1
Neighbors
Area 0.0.0.0 interface 10.1.123.1(Serial1/0/0)‘s neighbors
Router ID: 22.1.1.1 Address: 10.1.123.2
State: Full Mode:Nbr is Master Priority: 1
DR: None BDR: None MTU: 0
Dead timer due in 94 sec
Retrans timer interval: 5
Neighbor is up for 00:09:54
Authentication Sequence: [ 0 ]
Router ID: 33.1.1.1 Address: 10.1.123.3
State: Full Mode:Nbr is Master Priority: 1
DR: None BDR: None MTU: 0
Dead timer due in 89 sec
Retrans timer interval: 5
Neighbor is up for 00:09:57
Authentication Sequence: [ 0 ]
[Huawei]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 4 Routes : 4
OSPF routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
22.1.1.1/32 OSPF 10 48 D 10.1.123.2 Serial1/0/0
33.1.1.1/32 OSPF 10 48 D 10.1.123.3 Serial1/0/0
OSPF routing table status : <Inactive>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.2/32 OSPF 10 48 10.1.123.2 Serial1/0/0
10.1.123.3/32 OSPF 10 48 10.1.123.3 Serial1/0/0
---------------------------------------
R2:
[Huawei]dis cur conf ospf
[V200R003C00]
#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 22.1.1.1 0.0.0.0
#
return
[Huawei]
[Huawei]dis cur inter
[V200R003C00]
#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 201 broadcast
ip address 10.1.123.2 255.255.255.0
ospf network-type p2mp
#
[Huawei]
[Huawei]dis ospf inter s 1/0/0
OSPF Process 1 with Router ID 22.1.1.1
Interfaces
Interface: 10.1.123.2 (Serial1/0/0)
Cost: 48 State: P-2-P Type: P2MP MTU: 1500
Timers: Hello 30 , Dead 120 , Poll 120 , Retransmit 5 , Transmit Delay 1
[Huawei]
[Huawei]dis ospf peer bri
OSPF Process 1 with Router ID 22.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Serial1/0/0 11.1.1.1 Full
----------------------------------------------------------------------------
[Huawei]
[Huawei]
[Huawei]dis ospf pe
OSPF Process 1 with Router ID 22.1.1.1
Neighbors
Area 0.0.0.0 interface 10.1.123.2(Serial1/0/0)‘s neighbors
Router ID: 11.1.1.1 Address: 10.1.123.1
State: Full Mode:Nbr is Slave Priority: 1
DR: None BDR: None MTU: 0
Dead timer due in 114 sec
Retrans timer interval: 5
Neighbor is up for 00:12:24
Authentication Sequence: [ 0 ]
[Huawei]dis ip rou
[Huawei]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.0/24 Direct 0 0 D 10.1.123.2 Serial1/0/0
10.1.123.1/32 Direct 0 0 D 10.1.123.1 Serial1/0/0
10.1.123.2/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
10.1.123.3/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
10.1.123.255/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 Serial1/0/0
22.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
33.1.1.1/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
R2到达R3的33.1.1.1下一条是R1 10.1.1.23.1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[Huawei]dis ip rou
[Huawei]dis ip routing-table pr
[Huawei]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 4 Routes : 4
OSPF routing table status : <Active>
Destinations : 3 Routes : 3
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.3/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 Serial1/0/0
33.1.1.1/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
OSPF routing table status : <Inactive>
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.1/32 OSPF 10 48 10.1.123.1 Serial1/0/0
[Huawei]
------------------------------------------------------
R3:
[Huawei]dis cur conf ospf
[V200R003C00]
#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 33.1.1.1 0.0.0.0
#
return
[Huawei]
[Huawei]dis cur inter
[V200R003C00]
#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 301 broadcast
ip address 10.1.123.3 255.255.255.0
ospf network-type p2mp
#
[Huawei]
[Huawei]dis ospf inter s 1/0/0
OSPF Process 1 with Router ID 33.1.1.1
Interfaces
Interface: 10.1.123.3 (Serial1/0/0)
Cost: 48 State: P-2-P Type: P2MP MTU: 1500
Timers: Hello 30 , Dead 120 , Poll 120 , Retransmit 5 , Transmit Delay 1
[Huawei]
[Huawei]dis ospf peer bri
OSPF Process 1 with Router ID 33.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Serial1/0/0 11.1.1.1 Full
----------------------------------------------------------------------------
[Huawei]dis iprou
[Huawei]dis ospf pe
OSPF Process 1 with Router ID 33.1.1.1
Neighbors
Area 0.0.0.0 interface 10.1.123.3(Serial1/0/0)‘s neighbors
Router ID: 11.1.1.1 Address: 10.1.123.1
State: Full Mode:Nbr is Slave Priority: 1
DR: None BDR: None MTU: 0
Dead timer due in 116 sec
Retrans timer interval: 5
Neighbor is up for 00:13:25
Authentication Sequence: [ 0 ]
[Huawei]dis ip rou pr ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 4 Routes : 4
OSPF routing table status : <Active>
Destinations : 3 Routes : 3
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.2/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 Serial1/0/0
22.1.1.1/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
OSPF routing table status : <Inactive>
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.1/32 OSPF 10 48 10.1.123.1 Serial1/0/0
[Huawei]dis ip rou
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.123.0/24 Direct 0 0 D 10.1.123.3 Serial1/0/0
10.1.123.1/32 Direct 0 0 D 10.1.123.1 Serial1/0/0
10.1.123.2/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
10.1.123.3/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
10.1.123.255/32 Direct 0 0 D 127.0.0.1 Serial1/0/0
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 Serial1/0/0
22.1.1.1/32 OSPF 10 96 D 10.1.123.1 Serial1/0/0
33.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
本文出自 “五片棱角” 博客,请务必保留此出处http://hi289.blog.51cto.com/4513812/1795390
原文地址:http://hi289.blog.51cto.com/4513812/1795390