在帧中继下ospf网络类型默认为NBMA,不支持广播(其实指的是组播,因为ospf是通过组播来发送数据的),只支持单播,而ospf是通过组播传递报文的,因此有两种方式来实现NBMA型网络,第一种,手动指定peer,第二种将让帧中继支持广播类型。

以下实验是在帧中继下既能使ospf网络类型支持默认单播,又通过修改网络类型手段支持广播(其实指的组播,因为ospf是通过组播来发送报文的)。

第一种方式使用默认单播方式做的实验,第二种实验采用广播方式(既然你不支持广播,那么我让你支持广播【其实指的组播,因为ospf是通过组播来发送报文的】不就行了?)

(两个实验帧中继map表相同)

第一种,采用默认单播方式,需要手动指定peer

R1

[Huawei]dis cur conf ospf

[V200R003C00]

#

ospf 1

 peer 10.1.123.2

 peer 10.1.123.3

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 cur inter

[Huawei]dis cur interface s 1/0/0

[V200R003C00]

#

interface Serial1/0/0

link-protocol fr (s口默认为ppp,也就是p2p网络类型。因此需要修改成fr)

 fr map ip 10.1.123.2 102

 fr map ip 10.1.123.3 103

ip address 10.1.123.1 255.255.255.0

[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)(要选择DR、BDR、DROther)

Cost: 48      State: DROther    Type: NBMA      MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.2

Timers: Hello 30 , Dead 120 , Poll  120 , Retransmit 5 , Transmit Delay 1

[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    

----------------------------------------------------------------------------

R2

[Huawei]dis cu conf ospf

[V200R003C00]

#

ospf 1

peer 10.1.123.1

peer 10.1.123.3

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

fr map ip 10.1.123.3 203

ip address 10.1.123.2 255.255.255.0

[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: BDR       Type: NBMA      MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.2

Timers: Hello 30 , Dead 120 , Poll  120 , Retransmit 5 , Transmit Delay 1

[Huawei]

[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

0.0.0.0          Serial1/0/0                      33.1.1.1         Full

----------------------------------------------------------------------------

R3

[Huawei-ospf-1]dis cu conf ospf

[V200R003C00]

#

ospf 1

peer 10.1.123.1

peer 10.1.123.2

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-ospf-1]dis cu int s 1/0/0

[V200R003C00]

#

interface Serial1/0/0

link-protocol fr

fr map ip 10.1.123.1 301

fr map ip 10.1.123.2 302

ip address 10.1.123.3 255.255.255.0

#

[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: DR        Type: NBMA      MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.2

Timers: Hello 30 , Dead 120 , 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

0.0.0.0          Serial1/0/0                      22.1.1.1         Full

----------------------------------------------------------------------------

第二种,NBMA默认不支持广播(其实指的是组播),那么我就要让你支持广播方式(均不需指定peer),具体实验如下:

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]dis current-configuration interface s1/0/0

[V200R003C00]

#

interface Serial1/0/0

link-protocol fr

fr map ip 10.1.123.2 102 broadcast (建立帧中继map支持广播表?)

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 interface Serial 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: BDR       Type: Broadcast    MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.1

Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1

[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

----------------------------------------------------------------------------

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 interface 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 203 broadcast

ip address 10.1.123.2 255.255.255.0

ospf network-type broadcast

#

return

[Huawei]dis ospf inter

[Huawei]dis ospf interface 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: DROther    Type: Broadcast    MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.1

Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1

[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

0.0.0.0          Serial1/0/0                      33.1.1.1         Full

----------------------------------------------------------------------------

[Huawei]

R3:

[Huawei]dis cu config 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 302 broadcast

ip address 10.1.123.3 255.255.255.0

ospf network-type broadcast

#

return

[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: DR        Type: Broadcast    MTU: 1500

Priority: 1

Designated Router: 10.1.123.3

Backup Designated Router: 10.1.123.1

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

0.0.0.0          Serial1/0/0                      22.1.1.1         Full

----------------------------------------------------------------------------

转载于:https://blog.51cto.com/hi289/1795376

OSPF NBMA实验(单播、广播)相关推荐

  1. OSPF路由实验+ASBR+ABR实验

    OSPF路由实验+ASBR+ABR实验 第一步:拓扑图 第二步:实验要求 1.R4为ISP,其上只能配置IP地址:R4与其他所有直连设备间均使用公有IP 2.R3-R5/6/7为MGRE环境,R3为中 ...

  2. cisco dhcp vlan vrrp ospf 实验

    ciso dhcp vlan vrrp ospf 实验 一.拓扑 二.接口配置 IOU1(config)# hostname dhcp dhcp(config)# int e0/0 dhcp(conf ...

  3. Cisco Packet Tracer 多区域OSPF配置实验

    Cisco Packet Tracer 多区域OSPF配置实验 实验内容 请你列出R1-R7路由器每个端口配置的IP地址和子网掩码 请用OSPF协议分区域进行路由设置 全部设置成功后,终端之间能够互相 ...

  4. 华为ensp ospf综合实验

    实验拓扑 ​拓扑下载 华为OSPF综合实验 图 1-1 注:如无特别说明,描述中的 R1 或 SW1 对应拓扑中设备名称末尾数字为 1 的设备,R2 或 SW2 对应拓扑中设备名称末尾数字为 2 的设 ...

  5. 华为eNSP: OSPF+RIP实验

    OSPF+RIP实验 拓扑图 OSPF命令: 配置命令 R1上配置命令如下: R2上配置命令如下: R3上配置命令如下: R4上配置命令如下: R5上配置命令如下: R6上配置命令如下: 拓扑图 OS ...

  6. 华为防火墙的OSPF配置实验

    华为防火墙的OSPF配置实验 文章目录 华为防火墙的OSPF配置实验 实验需求 步骤一:配置地址 步骤二:配置OSPF 步骤三:配置防火墙策略 步骤四:配置NAT 1)问题描述 2)问题分析 3)解决 ...

  7. OSPF配置实验(一)!

    文章目录 OSPF配置实验 OSPF配置实验 实验要求:配置动态路由协议使全网互通,client1能访问server1的web服务 1)配置好各PC机和client的IP地址,子网掩码和网关,配置se ...

  8. 组播 收发_[HCIARoutingamp;Switching]网络篇单播广播和组播

    组播是什么 传统的IP通信有两种方式:一种是在源主机与目的主机之间点对点的通信,即单播:另一种是在源主机与同一网段中所有其它主机之间点对多点的通信,即广播. 如果要将信息发送给多个主机而非所有主机,若 ...

  9. OSPF NBMA网络的五种基本类型

    实验拓扑: 实验步骤: 配置FR帧中继: FR(config)#frame-relay switching FR(config)#in FR(config)#interface s1/2 FR(con ...

最新文章

  1. 百度之星2014资格赛 1004 - Labyrinth
  2. js把html转换成图片格式,纯JS实现将DIV中的内容转化为PNG图片
  3. windows下db2数据库的卸载
  4. 【C++grammar】文件系统以及path类使用
  5. mysql group by 慢_mysql“group by”查询非常慢
  6. 二叉排序树删除子节点以及遍历
  7. 常见的设计模式--单例模式
  8. 斗地主AI算法——第十三章の主动出牌(2)
  9. 蛮力法 字符串匹配
  10. B站韩顺平java学习笔记(二十)-- 网络编程 章节
  11. 微信小程序如何引入图标
  12. 规则引擎drools教程一
  13. Python Selenium 抓取Shadow Dom内部元素方法更新
  14. C语言:十进制、BCD码互换
  15. python创建一个简单的游戏
  16. 李沐论文精读系列四:CLIP和改进工作串讲(LSeg、GroupViT、VLiD、 GLIPv1、 GLIPv2、CLIPasso)
  17. 完美解决python manage.py makemigrations 报错
  18. 基础语法值c++提高编程
  19. localhost解释
  20. 自制的百度输入法皮肤

热门文章

  1. AE插件 自定义动画曲线AEscripts flow for Mac
  2. html 星空效果,HTML5JSstar_动态星空效果
  3. PHPStudy 安装amqp扩展
  4. java配置文件起名规范_Mybatis注解和配置文件命名规范所引发的问题
  5. 华为电脑计算机怎么显示在桌面,电脑桌面小便签,华为电脑怎么设置桌面便签...
  6. 世界坐标系(WCS)和用户坐标系UCS
  7. 查看全文的css,如何通过纯CSS实现“点击展开全文”功能
  8. 利用深度学习辅助皮肤病诊断
  9. 用java画爱心图_用java输出一个心型图案
  10. 【雕爷学编程】Arduino动手做(67)---BMP180气压传感器