帧中继_帧中继交换机

帧中继_帧中继交换机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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • javaSocket传输模式

    javaSocket传输模式Sockets有两种主要的操作方式:面向连接的和无连接的.面向连接的sockets操作就像一部电话,他们必须建立一个连接和一人呼叫.所有的事情在到达时的顺序与它们出发时的顺序时一样.无连接的sockets操作就像是一个邮件投递,,没有什么保证,多个邮件可能在到达时的顺序与出发时的顺序不一样.到底用哪种模式是邮应用程序的需要决定的.如果可靠性更重要的话,用面向连接的操作会好一些.比如文件服务器需要他们

    2022年6月24日
    21
  • Elasticsearch搜索引擎:ES的segment段合并原理

    Elasticsearch搜索引擎:ES的segment段合并原理

    2021年10月5日
    155
  • ant安装过程

    ant安装过程ant是jakarta一个非常好的OpenSource子项目,是基于java的编译工具。下面简单介绍一下在linux环境中如何安装ant:1.下载  从 http://ant.apache.org/bindownload.cgi 可以下载最新的tar包:apache-ant-1.8.1-bin.tar.gz 2.安装,直接解压到当前下载目录即可>tarzxpvfapach

    2022年7月18日
    20
  • bzero 和memset的区别[通俗易懂]

    bzero 和memset的区别[通俗易懂]bzero  原型:externvoidbzero(void*s,intn);  用法:#include  功能:置字节字符串s的前n个字节为零且包括‘\0’。  说明:bzero无返回值,并且使用strings.h头文件,strings.h曾经是posix标准的一部分,但是在POSIX.1-2001标准里面,这些函数被标记为了遗留函数而不推荐使用。在P

    2022年10月13日
    0
  • 关键部分CCriticalSection使用

    关键部分CCriticalSection使用类CCriticalSection的对象表示一个“临界区”,它是一个用于同步的对象,同一时刻仅仅同意一个线程存取资源或代码区。临界区在控制一次仅仅有一个线程改动数据或其他的控制资源时很实用。比如,在链表中添加一个结点就仅仅同意一次一个线程进行。通过使用CCriticalSection对象来控制链表,就能够达到这个目的。它就像是一把钥匙,哪个线程获得了它就获得了执行线程的权力,而把其他线程统统堵…

    2022年7月20日
    13
  • 什么软件自动刷点击量(不同的IP在刷网站)

    网络爬虫是目前各大企业获取数据的主要方式,很多人都知道爬虫使用代理IP,但对其中的原因却知之甚少。那为什么代理IP能帮助网络爬虫呢?1、已解决IP限制。目前大部分网站都有反爬虫技术,最常见的限制是IP接入。假如本站点的IP被封掉,可以用代理IP换IP后继续爬虫。2、提高爬虫的效率。如今有了工作效率的要求,不仅是使用单一的爬虫,为了提高爬虫的效率,可以使用多个爬虫来爬虫,这需要更多的IP,同时也需要IP的更换,自然离不开代理IP。以上介绍代理IP对网络爬虫的帮助关键,大家都有了认识,找代理IP时要找高.

    2022年4月13日
    168

发表回复

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

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