设为首页 收藏本站
查看: 3159|回复: 0

[经验分享] OSPF P2MP基本实验

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-7-4 09:41:52 | 显示全部楼层 |阅读模式
帧中继默认是NBMA,P2MP是通过NBMA强制修改的,帧中继二层不支持组播,而ospf是使用组播来交互报文,由此可以说明P2MP是广播(组播)来交互的,所以不需要手工指定peer,但要在fr map ip x.x.x.x broadcast???
p2mp也有两种方式,

一种是通过修改帧中继map表,使其支持广播方式
另一种是通过单播手工指定peer(实验没做成功),为什么不能成功,因为p2mp采用组播交互报文??
QQ截图20160704094141.jpg
第一种:通过通过修改帧中继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



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-239071-1-1.html 上篇帖子: OSPF P2MP 扩展知识 下篇帖子: ASA系统管理与日志_02
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表