帧中继多点子接口下配置OSPF

1、实验目的

通过本实验可以掌握

A、帧中继多点子接口的特征

B、帧中继多点子接口的配置

C、NBMA模式下OSPF的配置和调试

D、手工配置OSPF邻居

E、NBMA模式下的DR选举

2、实验拓扑

3、实验步骤

本实验分别在路由器R1、R3和R4尚创建多点子接口,拓扑结构采用Hub-and-Spoke结构,整个网络运行OSPF路由协议。

A.配置路由器R1

R1(config)#int loopback0

R1(config-if)#ip address 192.168.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#ip ospf networkpoint-to-point //修改OSPF网络类型

R1(config-if)#exit

R1(config)#int s1/0

R1(config-if)#no ip address //物理接口下不要配置IP地址

R1(config-if)#encapsulation frame-relay //接口封装帧中继

R1(config-if)#no frame-relay inverse-arp //关闭帧中继逆向ARP解析

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#int serial 1/0.1 multipoint //创建帧中继多点子接口

【技术要点】

“int serial slot-number/interface-number.subinterface-number{ multipoint|point-to-point }”命令用来创建帧中继子接口,其中:

1)slot-number/interface-number:物理接口的号;

2)subinterface-number:是自接口号,范围为1~4 294 967 293;

3)multipoint |point-to-point:属于必须选择的项,是子接口的类型,要么是多点类型,要么是点到点类型。

R1(config-subif)#ip address 192.168.134.1 255.255.255.0

R1(config-subif)#frame-relay map ip 192.168.134.3 103broadcast

R1(config-subif)#frame-relay map ip 192.168.134.4 104broadcast

R1(config-subif)#frame-relay map ip 192.168.134.1 103

R1(config-subif)#no frame-relay inverse-arp

R1(config-subif)#exit

R1(config)#router ospf 1

R1(config-router)#router-id 1.1.1.1

R1(config-router)#network 192.168.1.0 0.0.0.255 area 0

R1(config-router)#network 192.168.134.0 0.0.0.255 area 0

R1(config-router)#neighbor 192.168.134.3 //手工指定OSPF邻居

R1(config-router)#neighbor 192.168.134.4

B.配置路由器R3:

R3#conf t

Enterconfiguration commands, one per line. End with CNTL/Z.

R3(config)#intlo0

R3(config-if)#ipaddress 192.168.3.1 255.255.255.0

R3(config-if)#noshutdown

R3(config-if)#ipospf network point-to-point

R3(config-if)#exit

R3(config)#ints1/1

R3(config-if)#noip address

R3(config-if)#encapsulationframe-relay

R3(config-if)#noframe-relay inverse-arp

R3(config-if)#noshutdown

R3(config-if)#exit

R3(config)#ints1/1.1 multipoint

R3(config-subif)#ipaddress 192.168.134.3 255.255.255.0

R3(config-subif)#ipospf priority 0

//配置spoke端OSPF接口优先级为0,确保HUB端路由器R1成为DR

R3(config-subif)#frame-relaymap ip 192.168.134.1 301 broadcast

R3(config-subif)#frame-relaymap ip 192.168.134.4 301 broadcast

R3(config-subif)#frame-relaymap ip 192.168.134.3 301

R3(config-subif)#noframe-relay inverse-arp

R3(config-subif)#exit

R3(config)#routerospf 1

R3(config-router)#router-id3.3.3.3

R3(config-router)#network192.168.134.0 0.0.0.255 area 0

R3(config-router)#network192.168.3.0 0.0.0.255 area 0

【提示】

可以使用“no interfaceSerial1/1.1”命令来删除子接口。然而需要重新启动路由器,该子接口才真正被删除。

C.配置路由器R4:

R4#conf t

Enterconfiguration commands, one per line. End with CNTL/Z.

R4(config)#intlo0

R4(config-if)#ipaddress 192.168.4.1 255.255.255.0

R4(config-if)#ipospf network point-to-point

R4(config-if)#noshutdown

R4(config-if)#exit

R4(config)#ints1/2

R4(config-if)#noip address

R4(config-if)#encapsulationframe-relay

R4(config-if)#noframe-relay inverse-arp

R4(config-if)#noshutdown

R4(config-if)#exit

R4(config)#ints1/2.1 multipoint

R4(config-subif)#ipaddress 192.168.134.4 255.255.255.0

R4(config-subif)#ipospf priority 0

R4(config-subif)#frame-relaymap ip 192.168.134.1 401 broadcast

R4(config-subif)#frame-relaymap ip 192.168.134.3 401 broadcast

R4(config-subif)#frame-relaymap ip 192.168.134.4 401

R4(config-subif)#noframe-relay inverse-arp

R4(config-subif)#exit

R4(config)#routerospf 1

R4(config-router)#router-id4.4.4.4

R4(config-router)#network192.168.134.0 0.0.0.255 area 0

R4(config-router)#network192.168.4.0 0.0.0.255 area 0

D.帧中继交换机配置:

R2#conf t

Enterconfiguration commands, one per line. End with CNTL/Z.

R2(config)#frame-relayswitching

R2(config)#ints1/0

R2(config-if)#clockrate 64000

R2(config-if)#encapsulationframe-relay

R2(config-if)#nosh

R2(config-if)#frame-relaylmi-type cisco

R2(config-if)#frame-relayintf-type dce

R2(config-if)#frame-relayroute 103 interface s1/1 301

R2(config-if)#frame-relayroute 104 interface s1/2 401

R2(config-if)#exit

R2(config)#ints1/1

R2(config-if)#clockrate 64000

R2(config-if)#encapsulationframe-relay

R2(config-if)#noshutdown

R2(config-if)#frame-relaylmi-type cisco

R2(config-if)#frame-relayintf-type dce

R2(config-if)#frame-relayroute 301 interface s1/0 103

R2(config-if)#exit

R2(config)#ints1/2

R2(config-if)#clockrate 64000

R2(config-if)#encapsulationframe-relay

R2(config-if)#frame-relaylmi-type cisco

R2(config-if)#frame-relayintf-type dce

R2(config-if)#frame-relayroute 401 interface s1/0 104

R2(config-if)#

【技术要点】

1)在帧中继网络上,OSPF接口默认的网络类型为NON_BROADCAST。在这种模式下,OSPF不会在帧中继接口上发送Hello包,因此无法建立最基本的OSPF邻接关系。可以手工使用“neighbor”命令来指定邻居,这时Hello包以单播形式发送。

2)NBMA属于多路访问网络,所以要进行DR选举,由于Hello包只能传1跳,所以在Hub-and-Spoke结构中,必须控制处于“HUB”端的路由器成为DR,最保险的办法就是将“Spoke”端路由器OSPF接口优先级配置为0,使之不参与DR选举,“HUB”端的路由器自然就成为DR;否则,可能会导致路由学习不正常。

3)在接口模式下,可以通过如下命令修改OSPF的网络类型:

R3(config-if)#ip ospf network { broadcast | point-to-point| non_broadcast | point-to-multipoint }

4)多点子接口不能解决接口水平分割的问题,只是节省了物理接口而已。

4、实验调试

1)show frame-relay map

R1#showframe-relay map

Serial1/0.1(up): ip 192.168.134.1 dlci 103(0x67,0x1870), static,

CISCO, status defined, active

Serial1/0.1(up): ip 192.168.134.3 dlci 103(0x67,0x1870), static,

broadcast,

CISCO, status defined, active

Serial1/0.1(up): ip 192.168.134.4 dlci 104(0x68,0x1880), static,

broadcast,

CISCO, status defined, active

R1#

以上输出表明路由器R1使用多点子接口S1/0.1,该子接口下有3条帧中继静态映射。

2)show ip ospf interface

R1#showip ospf interface

Serial1/0.1is up, line protocol is up

Internet Address 192.168.134.1/24, Area 0

Process ID 1, Router ID 1.1.1.1, Network TypeNON_BROADCAST, Cost: 64

//接口网络类型为NBMA模式

Transmit Delay is 1 sec, State DR, Priority 1

//状态为DR,接口优先级为1

Designated Router (ID) 1.1.1.1, Interfaceaddress 192.168.134.1

//DR的ID和接口地址

No backup designated router on this network

//没有BDR

Timer intervals configured, Hello 30, Dead120, Wait 120, Retransmit 5

//NBMA模式下,Hello间隔为30S,Dead保持时间为120S

oob-resync timeout 120

Hello due in 00:00:10

Supports Link-local Signaling (LLS)

Index 2/2, flood queue length 0

Next 0x0(0)/0x0(0)

Last flood scan length is 1, maximum is 1

Last flood scan time is 0 msec, maximum is 4msec

Neighbor Count is 2, Adjacent neighbor countis 2

//有2个OSPF邻居,都形成了邻接关系

Adjacent with neighbor 3.3.3.3

Adjacent with neighbor 4.4.4.4

//以上两行表明路由器R1与路由器R3和R4形成邻接关系

Suppress hello for 0 neighbor(s)

3)show ip route

R1#showip route ospf

O 192.168.4.0/24 [110/65] via 192.168.134.4,00:40:37, Serial1/0.1

O 192.168.3.0/24 [110/65] via 192.168.134.3,00:40:37, Serial1/0.1

R1#

R3#showip route ospf

O 192.168.4.0/24 [110/65] via 192.168.134.4,00:41:32, Serial1/1.1

O 192.168.1.0/24 [110/65] via 192.168.134.1,00:41:32, Serial1/1.1

R3#

R4#showip route ospf

O 192.168.1.0/24 [110/65] via 192.168.134.1,00:42:10, Serial1/2.1

O 192.168.3.0/24 [110/65] via 192.168.134.3,00:42:10, Serial1/2.1

R4#

转载于:https://blog.51cto.com/19880423/1324758

帧中继多点子接口下配置OSPF相关推荐

  1. 帧中继和路由协议详解-在帧中继点到点子接口上运行EIGRP

    上一篇我们介绍了在帧中继物理里接口点对点上运行EIGRP的配置,本篇我们开始介绍在帧中继点到点子接口上运行EIGRP的配置. 背景 当有多个分部的局域网通过帧中继和总部进行连接时,为了减少对总部路由器 ...

  2. 帧中继和路由协议详解-在帧中继多点子接口上运行EIGRP

    上一篇我们介绍了<帧中继和路由协议详解-在帧中继点到点子接口上运行EIGRP>,本篇我们开始介绍<在帧中继多点子接口上运行EIGRP>的配 置.相关概念,如子接口.IARP.D ...

  3. cisco设备接口下配置encapsulation dot1q vlan-id的作用

    https://learningnetwork.cisco.com/s/question/0D53i00000Kt7P2/encapsulation-dot1q-vlan-id 有时候我们会看到一些路 ...

  4. 帧中继点到多点子接口

    一.实验目的 掌握帧中继多点子接口控制方式,与路由协议相结合实现跨网络连通 (1)掌握点到多点子接口配置 (2)实现跨网络连通 二.实验仪器设备及软件 四台路由器 软件:Cisco Packet Tr ...

  5. 配置OSPF认证【eNSP实现】

    OSPF支持报文验证功能,只有通过验证的报文才能接收,否则将不能正常建立邻居关系. OSPF支持两种认证方式:区域认证和链路认证 使用区域认证时,一个区域中所有的路由器在该区域下的认证模式和口令必须一 ...

  6. linux ospf 命令,Linux运维知识之linux下使用quagga配置ospf协议

    本文主要向大家介绍了Linux运维知识之linux下使用quagga配置ospf协议,通过具体的内容向大家展现,希望对大家学习Linux运维知识有所帮助. 环境:三台redhat6.5(VM虚拟机)一 ...

  7. ensp模拟器下简单ospf配置

    1.     实验拓扑 2. 各端口IP R1 R2 R3 R4 G0/0/0 10.1.1.1 24 10.1.1.2 24 10.1.2.2 24 10.1.3.2 24 G0/0/1 10.1. ...

  8. ospf接口认证配置详解

    实验目的:1.掌握ospf接口认证配置方法 实验拓扑: 步骤1:基本配置(接口配置+ospf配置)见http://t.csdn.cn/mugochttp://t.csdn.cn/mugoc步骤2:启用 ...

  9. 路由交换技术实战七 FR 网络中配置 OSPF( 完成版 )

    帧中继网络用户接口上最多可支持1024条虚电路,其中用户可用的dlci范围是:16-1007 DLCI只具有局部意义,即交换机上不同的端口可以使用相同的DLCI号. 实验要求: 1.掌握配置帧中继的基 ...

  10. 11.CCNA第十一天-配置OSPF/EIGRP(增强型内部网关协议)

    配置OSPF Branch(config)#router ospf ? <1-65535>  Process ID 通配符掩码 在IGP协议中,以连续的0和连续的1组成 有一种不科学的称呼 ...

最新文章

  1. 如何扫描和修复 Linux 磁盘错误
  2. 猫猫学IOS(二十四)UI之注册案例
  3. 智能水位检测系统proteus_基于单片机控制的智能检测系统Proteus仿真设计研究
  4. java set转list,数组与list的转换
  5. Sql获取表信息(包括结构及字段说明)
  6. 【大数据】如何用形象的比喻描述大数据的技术生态?Hadoop、Hive、Spark 之间是什么关系?
  7. WebApi接口 - 响应输出xml和json 转
  8. JAVA中list.contains()方法,要重写equals(),hashcode()方法
  9. oracle错误27101,ORA-27101ORA-01034错误解决
  10. centos radius mysql_FreeRadius2 MySQL配置
  11. 网页设计表格单元格线条及边框设置
  12. 从零开始玩人工智能-机器人服务-03
  13. springmvc + ibatis 框架的搭建
  14. PHP每天自动更新静态文件下载地址,防盗链
  15. Ice_cream's world I( 并查集 + 判环 )
  16. 牛气!青云QingCloud 进入“混合云市场竞争力领导者象限”
  17. 浅析ERP系统—供应链
  18. Scala入门小纸条(3)
  19. html a标签属性 rel=‘nofollow‘
  20. php ecb加密,PHP之DES加密解密算法类(ECB模式)(实例教程)

热门文章

  1. mysql金钱默认字段格式化_在SQL数据库中,设置了一个字段的类型为money,但是money类型数据保留的是四位小数,如何设置为两位小数?...
  2. vant组件做表格_vue实现简单表格组件
  3. React antD 使用Select 进阶功能 远程搜索,防抖控制,加载状态
  4. Android 实现两个控件水平居中
  5. 103-PHP定义一个类
  6. 【转】接口测试面试题
  7. mongodb入门基本语法
  8. Writing A Threadpool in Rust
  9. 开源协议的几种类型认识
  10. Python twisted事件驱动网络框架 源码剖析