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

时间: 2024-12-24 15:23:29

OSPF P2MP 扩展知识的相关文章

038改变状态栏的颜色(扩展知识:关于iOS不同版本的消息通知知识)

效果如下: ViewController.h 1 #import <UIKit/UIKit.h> 2 3 @interface ViewController : UIViewController 4 @end ViewController.m 1 #import "ViewController.h" 2 3 @interface ViewController () 4 - (void)userNotificationDidPush:(UIApplication *)appl

【扩展知识4】指针家的野孩子和地址打印

[扩展知识4] 1.        野指针 2.        %p的使用 ( 1 )野指针 定义:野指针"不是NULL指针,是指向"垃圾"内存的指针.[重量级危险人物] 野指针的成因: 1.        指针变量定义时没有初始化. 2.        指针变量free后没有置于NULL. 3.        指针的使用超出范围 程序举例: [ 程序1 ] //指针变量没有初始化 #include<stdio.h> int main( void) { char

【扩展知识2】函数strlen()和非函数sizeof的使用

[扩展知识2]函数strlen()和非函数sizeof的使用 [扩展目录] strlen函数 sizeof ( 1 )函数strlen() 原型:size_tstrlen ( const char * str ); 返回C字符串(仅仅支持此类型)的长度. //strlen()的使用 #include <stdio.h> int main( void ) { chararray[ ]= "zhijiandeweixiao"; //指尖的微笑 //array为数组的首个地址 p

【扩展知识3】数组的一些难事

[扩展知识3]数组的一些难事 扩展目录 1.        &array+ 1 2.        array+1 3.        &array[ 0 ]+ 1 关于&array+ .array+ 1 和&array[0]+ 1的问题,特别难缠,特难搞懂~-~.所以今天拿来讲解讲解. 由于数组中的各元素的存储单元是连续分配的,因此可以用指针形式来访问数组,数组名就是该数字的首个地址. 如: intarray[100]; array 就是该数组的首地址,其值等于&

[面试题总结及扩展知识]同一进程中的线程共享的资源

又是一道腾讯2014年的面试题: A,栈   B,数据段    C,寄存器组    D,文件描述符 这是解释以及相对应的扩展知识: 线程的共性如下: 线程共享的环境包括:进程代码段. 进程的公有数据(利用这些共享的数据,线程很容易的实现相互之间的通讯). 进程打开的文件描述符. 信号的处理器.  进程的当前目录和进程用户ID与进程组ID. 线程的个性如下: 1.线程ID     每个线程都有自己的线程ID,这个ID在本进程中是唯一的.进程用此来标识线程. 2.寄存器组的值     由于线程间是并

【扩展知识3】一些困难的数组

[扩展知识3]一些困难的数组 扩展文件夹 1.        &array+ 1 2.        array+1 3.        &array[ 0 ]+ 1 关于&array+ .array+ 1 和&array[0]+ 1的问题.特别难缠,特难搞懂~-~. 所以今天拿来解说解说. 因为数组中的各元素的存储单元是连续分配的,因此能够用指针形式来訪问数组.数组名就是该数字的首个地址. 如: intarray[100]; array 就是该数组的首地址,其值等于&am

【扩展知识2】学习一些重要的知识

[扩展知识二]学习一些重要的知识 [扩展目录] 1.      布尔型,浮点型.指针的变量与0值得比较 2.      类型转换 3.      关键字sizeof和strlen()函数 A:bool变量与0值得比较 布尔型,用于表示布尔值,即逻辑值TRUE(真)和FALSE (假).在C语言中非零即为真,零就为假. 较合理的写法是: //测试环境:win7_32+VC++6.0.有的编译器可能不识bool //bool变量与0,1的比较 #include <stdio.h> int main

java Map扩展知识练习

/* map扩展知识. map集合被使用是因为映射关系. 编程实现以下数据: "yureban" -> "01" "zhangsan" "yureban" -> "02" "lisi" "jiuyeban" -> "01" "wangwu" "jiuyeban" -> "02

【扩展知识6】typedef的使用

[扩展知识]typedef的使用 扩展目录 1.        typedef与#define不同处 2.        typedef的使用 A:typedef与#define不同处 typedef是关键字,具有一种高级数据特性,它能够为已经存在的类型重新命别名(标签).它的功能与#define相似,但有3个不同之处:(在<C语言第二回>中也有相关的知识点) 1.        与#define不同,typedef给出的符号仅限于类型,而不是绝对值 2.        typedef的解释有