帧中继_帧中继交换机

帧中继_帧中继交换机NBMA实验实验准备:1、 四台路由器,R2配置成帧中继交换机。2、 R1,R3,R4运行OSPF。实验配置:R1:interfaceLoopback0 ipad

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

NBMA实验
实验准备:

1、 四台路由器,R2配置成帧中继交换机。

2、 R1,R3,R4运行OSPF。
实验配置:

R1:

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

 ip ospf network point-to-point            使路由正常。

interface Serial0/0

 ip address 134.1.1.1 255.255.255.0

 encapsulation frame-relay                封装成帧中继。

 ip ospf network non-broadcast            配置成NBMA的网络。

 ip ospf priority 255                     使R1成为DR。接口悠闲级。

frame-relay map ip 134.1.1.3 103 broadcast   用广播方式发送帧中继信息。静态映射。(注意:对方IP和己方DLCI)

 frame-relay map ip 134.1.1.4 104 broadcast

 no frame-relay inverse-arp                 关闭自动映射。

router ospf 1

 log-adjacency-changes

 network 1.1.1.0 0.0.0.255 area 0

 network 134.1.1.0 0.0.0.255 area 0

 neighbor 134.1.1.3 priority 3          在NBMA的网络中,只能使用neighbor来指明邻居还可以指明邻居的优先级。

 neighbor 134.1.1.4
SWITCH:

frame-relay switching                  配置成帧中继交换机。此命令很重要。

interface Serial0/0

 no ip address

 encapsulation frame-relay              封装成帧中继

 clockrate 128000

 frame-relay lmi-type cisco              配置帧中继的类型

 frame-relay intf-type dce                配置帧中继为DCE

 frame-relay route 103 interface Serial0/1 301    做帧中继映射

 frame-relay route 104 interface Serial0/2 401

interface Serial0/1

 no ip address

 encapsulation frame-relay

 clockrate 128000

 frame-relay lmi-type cisco

 frame-relay intf-type dce

 frame-relay route 301 interface Serial0/0 103

interface Serial0/2

 no ip address

 encapsulation frame-relay

 clockrate 128000

 frame-relay lmi-type cisco

 frame-relay intf-type dce

 frame-relay route 401 interface Serial0/0 104
R3:

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

 ip ospf network point-to-point

interface Serial0/1

 ip address 134.1.1.3 255.255.255.0

 encapsulation frame-relay

 ip ospf network non-broadcast

 ip ospf priority 3

 frame-relay map ip 134.1.1.1 301 broadcast

 frame-relay map ip 134.1.1.4 301 broadcast  

no frame-relay inverse-arp

router ospf 1

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 134.1.1.0 0.0.0.255 area 0
R4:

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

 ip ospf network point-to-point

interface Serial0/1

 ip address 134.1.1.4 255.255.255.0

 encapsulation frame-relay

 ip ospf network non-broadcast

 ip ospf priority 0

 frame-relay map ip 134.1.1.1 401 broadcast

 frame-relay map ip 134.1.1.3 401 broadcast

no frame-relay inverse-arp

router ospf 1

 log-adjacency-changes

 network 4.4.4.0 0.0.0.255 area 0

 network 134.1.1.0 0.0.0.255 area 0
实验结果:

R1#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

3.3.3.3           3   FULL/BDR        00:01:31    134.1.1.3       Serial0/0

4.4.4.4           0   FULL/DROTHER    00:01:57    134.1.1.4       Serial0/0
R1#show ip route ospf

     3.0.0.0/24 is subnetted, 1 subnets

O       3.3.3.0 [110/782] via 134.1.1.3, 00:11:56, Serial0/0

     4.0.0.0/24 is subnetted, 1 subnets

O       4.4.4.0 [110/782] via 134.1.1.4, 00:11:56, Serial0/0
R3:frame-relay map ip 134.1.1.4 301 broadcast  

R4:frame-relay map ip 134.1.1.3 401 broadcast

以上两条命令的说明:

如果你加这两条命令,在R3上和R4上都能看见带O的路由,如:

R3#show ip route ospf

     1.0.0.0/24 is subnetted, 1 subnets

O       1.1.1.0 [110/782] via 134.1.1.1, 00:00:16, Serial0/1

     4.0.0.0/24 is subnetted, 1 subnets

O       4.4.4.0 [110/782] via 134.1.1.4, 00:00:16, Serial0/1

R3#ping 4.4.4.4

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:

…..

Success rate is 0 percent (0/5)
R4#show ip route ospf

     1.0.0.0/24 is subnetted, 1 subnets

O       1.1.1.0 [110/782] via 134.1.1.1, 00:00:35, Serial0/1

     3.0.0.0/24 is subnetted, 1 subnets

O       3.3.3.0 [110/782] via 134.1.1.3, 00:00:35, Serial0/1

R4#ping 3.3.3.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

…..

Success rate is 0 percent (0/5)

说明即使有路由,但是没有帧中继映射还是不能够通信。
加上这两条命令后:

R3#show ip route ospf

     1.0.0.0/24 is subnetted, 1 subnets

O       1.1.1.0 [110/782] via 134.1.1.1, 00:04:15, Serial0/1

     4.0.0.0/24 is subnetted, 1 subnets

O       4.4.4.0 [110/782] via 134.1.1.4, 00:04:15, Serial0/1

R3#ping 4.4.4.4

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 56/57/60 ms
R4#show ip route ospf

     1.0.0.0/24 is subnetted, 1 subnets

O       1.1.1.0 [110/782] via 134.1.1.1, 00:03:57, Serial0/1

     3.0.0.0/24 is subnetted, 1 subnets

O       3.3.3.0 [110/782] via 134.1.1.3, 00:03:57, Serial0/1

R4#ping 3.3.3.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 56/57/60 ms
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/168199.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • JAVA String 截取字符串的方法(含 substring 索引截取示例)

    String.substring():用于返回一个字符串的子串用法如下:string.substring(from,to)其中from指代要抽去的子串第一个字符在原字符串中的位置to指代所要抽去的子字符串最后一个字符的后一位(这个参数可以不加)下面就对String.substring()做举例:1、string.substring(from):此时相当于从from位置截取到原字…

    2022年4月3日
    1.4K
  • pip如何卸载包_命令行下载python包

    pip如何卸载包_命令行下载python包Python环境中单独使用pythonsetup.pyinstall安装的python包,可以通过pip命令卸载也可以手动删除安装文件。https://www.cndba.cn/dave/article/3719https://www.cndba.cn/dave/article/37191.Pip卸载:[dave@www.cndba.cndata]$pipuninstallp…

    2022年10月16日
    4
  • 有了这 15 款编程游戏,谁都可以学编程!

    有了这 15 款编程游戏,谁都可以学编程!程序员的成长之路互联网/程序员/成长/职场关注阅读本文大概需要5.2分钟。1CodingGames一边玩游戏,一边挑战编程难题。Codinggames支持包括P…

    2022年4月19日
    155
  • PyCharm如何设置 “ctrl+滚轮” 实现字体的放大和缩小「建议收藏」

    PyCharm如何设置 “ctrl+滚轮” 实现字体的放大和缩小「建议收藏」一、PyCharm字体放大的设置File–>setting–>Keymap–>在搜索框中输入increase—>IncreaseFontSize(双击)–>在弹出的对话框中选择AddMouseShortcut–>弹出的对话框后按住ctrl键的同时鼠标滚轮向上滑。二、Pycharm字体缩小的设置:File–>setting–>Keymap–>在搜索框中输入decrease—>

    2022年8月27日
    8
  • java总结体会_Java课程总结心得体会

    java总结体会_Java课程总结心得体会不知不觉中以学习Java将近4个月了,在这几个月的学习中我从一开始的迷茫懵逼,到现在的懵逼迷茫中,写下了这篇这个学期课程的Java学习心得体会。首先,我认为作为一个该开始学习Java的小白,在开始学习之前无论你有多大的热情与信心,都会在之后的学习中被程序啪啪打脸,让你无限的迷茫与懵逼。于是呢在学习中我们要学会”不抛弃,不放弃“,只要能坚定的去做你会发现,你的努力或给你带来回报,虽然很多时候你努力…

    2022年7月7日
    255
  • elasticsearch面试常问问题_java面试题汇总

    elasticsearch面试常问问题_java面试题汇总Elasticsearch是基于Lucene的Restful的分布式实时全文搜索引擎,每个字段都被索引并可被搜索,可以快速存储、搜索、分析海量的数据。全文检索是指对每一个词建立一个索引,指明该词在文章中出现的次数和位置。当查询时,根据事先建立的索引进行查找,并将查找的结果反馈给用户的检索方式。这个过程类似于通过字典中的检索字表查字的过程。**(1)index索引:**索引类似于mysql中的数据库,Elasticesearch中的索引是存在数据的地方,包含了一堆有相似结构的文档数据。**(2

    2025年8月29日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号