标签:ospf p2mp
在帧中继二层网络中,如果要使用p2mp采用网络类型为broadcast,需要注意:一、HUB点必须为DR,二、需要在R2与R3之间再建立一条PVC,以此来使R2,R3彼此之间来学习到正确的下一跳,否则如R2学习到33.1.1.1的下一跳是10.1.123.3,造成ping不通。(由于DLCI只有2个号,因此借用之前的两个DLCI号)
yeslab实验,我怎么觉得这个实验没多大意义,但是留作学习使用
R1:
<Huawei>dis current-configuration 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>dis cu int s 1/0/0
[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 broadcast
#
return
<Huawei>dis ospf int s1/0/0
OSPF Process 1 with Router ID 11.1.1.1
Interfaces
Interface: 10.1.123.1 (Serial1/0/0)
Cost: 48 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.3
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
<Huawei>dis ospf pe
<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: 10.1.123.1 BDR: 10.1.123.2 MTU: 0
Dead timer due in 40 sec
Retrans timer interval: 5
Neighbor is up for 00:18:17
Authentication Sequence: [ 0 ]
Router ID: 33.1.1.1 Address: 10.1.123.3
State: Full Mode:Nbr is Master Priority: 1
DR: 10.1.123.1 BDR: 10.1.123.3 MTU: 0
Dead timer due in 33 sec
Retrans timer interval: 5
Neighbor is up for 00:19:08
Authentication Sequence: [ 0 ]
<Huawei>dis ospf bri
OSPF Process 1 with Router ID 11.1.1.1
OSPF Protocol Information
RouterID: 11.1.1.1 Border Router:
Multi-VPN-Instance is not enabled
Global DS-TE Mode: Non-Standard IETF Mode
Graceful-restart capability: disabled
Helper support capability : not configured
Applications Supported: MPLS Traffic-Engineering
Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 89
RFC 1583 Compatible
Retransmission limitation is disabled
Area Count: 1 Nssa Area Count: 0
ExChange/Loading Neighbors: 0
Process total up interface count: 2
Process valid up interface count: 1
Area: 0.0.0.0 (MPLS TE not enabled)
Authtype: None Area flag: Normal
SPF scheduled Count: 89
ExChange/Loading Neighbors: 0
Router ID conflict state: Normal
Area interface up count: 2
Interface: 11.1.1.1 (LoopBack0)
Cost: 0 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
Interface: 10.1.123.1 (Serial1/0/0)
Cost: 48 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.3
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
<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 : 2 Routes : 2
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 : 0 Routes : 0
<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
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 os
<Huawei>dis ospf pe
<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>
-------------------------
R2:
<Huawei>dis cu 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>dis cu inter s 1/0/0
[V200R003C00]
#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 201 broadcast
fr map ip 10.1.123.3 201 (R2到R3需要建立一条pvc,借用到R1的dlci号,如果不做这条R2与R3学习到彼此的路由下一跳均是对端地址,而非R1地址,造成路由不可达)
ip address 10.1.123.2 255.255.255.0
ospf network-type broadcast
#
return
<Huawei>dis ospf inter s1/0/0
OSPF Process 1 with Router ID 22.1.1.1
Interfaces
Interface: 10.1.123.2 (Serial1/0/0)
Cost: 48 State: BDR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.2
Timers: Hello 10 , Dead 40 , 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>dis ospf br
<Huawei>dis ospf brief
OSPF Process 1 with Router ID 22.1.1.1
OSPF Protocol Information
RouterID: 22.1.1.1 Border Router:
Multi-VPN-Instance is not enabled
Global DS-TE Mode: Non-Standard IETF Mode
Graceful-restart capability: disabled
Helper support capability : not configured
Applications Supported: MPLS Traffic-Engineering
Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 96
RFC 1583 Compatible
Retransmission limitation is disabled
Area Count: 1 Nssa Area Count: 0
ExChange/Loading Neighbors: 0
Process total up interface count: 2
Process valid up interface count: 1
Area: 0.0.0.0 (MPLS TE not enabled)
Authtype: None Area flag: Normal
SPF scheduled Count: 96
ExChange/Loading Neighbors: 0
Router ID conflict state: Normal
Area interface up count: 2
Interface: 22.1.1.1 (LoopBack0)
Cost: 0 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
Interface: 10.1.123.2 (Serial1/0/0)
Cost: 48 State: BDR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.2
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
<Huawei>
<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 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 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 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 ip rou
<Huawei>dis ip routing-table pr ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 2 Routes : 2
OSPF routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 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 : 0 Routes : 0
---------------------------------------
R3:
[Huawei]dis cu 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]dis cu inter s 1/0/0
[V200R003C00]
#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 301 broadcast
fr map ip 10.1.123.2 301
ip address 10.1.123.3 255.255.255.0
ospf network-type broadcast
#
return
[Huawei]>dis ospf inter s1/0/0
^
Error: Unrecognized command found at ‘^‘ position.
[Huawei]dis ospf inter s1/0/0
OSPF Process 1 with Router ID 33.1.1.1
Interfaces
Interface: 10.1.123.3 (Serial1/0/0)
Cost: 48 State: BDR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.3
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
[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 ospf brief
OSPF Process 1 with Router ID 33.1.1.1
OSPF Protocol Information
RouterID: 33.1.1.1 Border Router:
Multi-VPN-Instance is not enabled
Global DS-TE Mode: Non-Standard IETF Mode
Graceful-restart capability: disabled
Helper support capability : not configured
Applications Supported: MPLS Traffic-Engineering
Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 89
RFC 1583 Compatible
Retransmission limitation is disabled
Area Count: 1 Nssa Area Count: 0
ExChange/Loading Neighbors: 0
Process total up interface count: 2
Process valid up interface count: 1
Area: 0.0.0.0 (MPLS TE not enabled)
Authtype: None Area flag: Normal
SPF scheduled Count: 89
ExChange/Loading Neighbors: 0
Router ID conflict state: Normal
Area interface up count: 2
Interface: 33.1.1.1 (LoopBack0)
Cost: 0 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
Interface: 10.1.123.3 (Serial1/0/0)
Cost: 48 State: BDR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.1.123.1
Backup Designated Router: 10.1.123.3
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
[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.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 Direct 0 0 D 10.1.123.2 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 48 D 10.1.123.2 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
[Huawei]dis ip routing-table pr ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 2 Routes : 2
OSPF routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
11.1.1.1/32 OSPF 10 48 D 10.1.123.1 Serial1/0/0
22.1.1.1/32 OSPF 10 48 D 10.1.123.2 Serial1/0/0
OSPF routing table status : <Inactive>
Destinations : 0 Routes : 0
本文出自 “五片棱角” 博客,请务必保留此出处http://hi289.blog.51cto.com/4513812/1795408
标签:ospf p2mp
原文地址:http://hi289.blog.51cto.com/4513812/1795408