帧中继子接口配置

2023-10-15 09:30
文章标签 配置 接口 帧中继

本文主要是介绍帧中继子接口配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

帧中继子接口配置

帧中继子接口

帧中继有两种类型的接口:主接口和子接口。其中子接口是一个逻辑结构,可以配置协议地址和虚电路等,一个物理接口可以有多个子接口。虽然子接口是逻辑结构,并不实际存在,但对于网络层而言,子接口和主接口是没有区别的,都可以配置虚电路与远端设备相连。帧中继的子接口又可以分为两种类型:点到点(point-to-point)子接口和点到多点(point-to-multipoint)子接口。点到点子接口用于连接单个远端目标,点到多点子接口用于连接多个远端目标。点到多点子接口在一个子接口上配置多条虚电路,每条虚电路都和它相连的远端网络地址建立一个地址映射,这样不同的虚电路就可以到达不同的远端而不会混淆。

地址映射的建立可以用手工配置的方法,也可以利用逆向地址解析协议来动态建立。点到点子接口和多点子接口配置虚电路及地址映射的方法是不同的。

点到点子接口:对点到点子接口而言,因为只有唯一的一个对端地址,所以在给子接口配置一条PVC 时实际已经确定了对端地址,不能配置静态地址映射,也不能动态学习地址映射。

多点子接口:对点到多点子接口,对端地址与本地DLCI映射可以通过配置静态地址映射,或者通过逆向地址解析协议来确定(Inverse ARP在主接口上配置即可)。如果要建立静态地址映射,则应该对每一条虚电路建立静态地址映射关系。

拓扑图

设备参数:

设备

接口

IP地址

子网掩码

默认网关

DLCI

R1

S0/0/0

N/A

102

S0/0/0.12

192.168.123.1

255.255.255.0

R2

S0/0/0.21

192.168.123.2

255.255.255.0

N/A

201

实验内容:

帧中继配置:

R1配置:

Router>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hoRouter(config)#hostname R1R1(config)#intR1(config)#interface s0/0/0R1(config-if)#no ip addressR1(config-if)#encapsulation frame-relayR1(config-if)#no frame-relay inverse-arpR1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R1(config)#interface s0/0/0.12 point-to-point

R1(config)#interface s0/0/0.12 point-to-point

R1(config-subif)#

%LINK-5-CHANGED: Interface Serial0/0/0.12, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0.12, changed state to up

R1(config-subif)#ip address 192.168.123.1 255.255.255.0R1(config-subif)#frame-relay interface-dlci 102R1(config-subif)#end

R1(config-subif)#ip address 192.168.123.1 255.255.255.0

R1(config-subif)#frame-relay interface-dlci 102

R1(config-subif)#end

R1#

%SYS-5-CONFIG_I: Configured from console by console

R1#show frame-relay map

Serial0/0/0.12 (up): point-to-point dlci, dlci 102, broadcast, status defined, active

R1#ping 192.168.123.1

R1#ping 192.168.123.1

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/30/43 ms

R1#ping 192.168.123.2

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 2/18/29 ms

R1#

R2配置:

Router>enable

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#interface s0/0/0

R2(config-if)#no ip address

R2(config-if)#encapsulation frame-relay

R2(config-if)#no frame-relay inverse-arp

R2(config-if)#no shutdown

Router>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#interface s0/0/0R2(config-if)#no ip addressR2(config-if)#encapsulation frame-relayR2(config-if)#no frame-relay inverse-arpR2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R2(config-if)#exit

R2(config)#interface s0/0/0.12 point-to-point

R2(config)#interface s0/0/0.12 point-to-point

R2(config-subif)#

%LINK-5-CHANGED: Interface Serial0/0/0.12, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0.12, changed state to up

R2(config-subif)#ip address 192.168.123.2 255.255.255.0R2(config-subif)#frame-relay interface-dlci 201R2(config-subif)#no shutdownR2(config-subif)#end

R2(config-subif)#ip address 192.168.123.2 255.255.255.0

R2(config-subif)#frame-relay interface-dlci 201

R2(config-subif)#no shutdown

R2(config-subif)#end

R2#

%SYS-5-CONFIG_I: Configured from console by console

R2#show fr

R2#show frame-relay m

R2#show frame-relay map

Serial0/0/0.12 (up): point-to-point dlci, dlci 201, broadcast, status defined, active

R2#ping 192.168.123.1

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 10/16/19 ms

R2#ping 192.168.123.2

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 25/30/37 ms

R2#

不积跬步无以至千里不积小流无以成江海

千里之行,始于足下;

每天一个小实验。

这篇关于帧中继子接口配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/216840

相关文章

jdk1.8的Jenkins安装配置实践

《jdk1.8的Jenkins安装配置实践》Jenkins是一款流行的开源持续集成工具,支持自动构建、测试和部署,通过Jenkins,开发团队可以实现代码提交后自动进行构建、测试,并将构建结果分发到测... 目录Jenkins介绍Jenkins环境搭建Jenkins安装配置Jenkins插件安装Git安装配

Nginx之https证书配置实现

《Nginx之https证书配置实现》本文主要介绍了Nginx之https证书配置的实现示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起... 目录背景介绍为什么不能部署在 IIS 或 NAT 设备上?具体实现证书获取nginx配置扩展结果验证

springboot3.x使用@NacosValue无法获取配置信息的解决过程

《springboot3.x使用@NacosValue无法获取配置信息的解决过程》在SpringBoot3.x中升级Nacos依赖后,使用@NacosValue无法动态获取配置,通过引入SpringC... 目录一、python问题描述二、解决方案总结一、问题描述springboot从2android.x

nginx跨域访问配置的几种方法实现

《nginx跨域访问配置的几种方法实现》本文详细介绍了Nginx跨域配置方法,包括基本配置、只允许指定域名、携带Cookie的跨域、动态设置允许的Origin、支持不同路径的跨域控制、静态资源跨域以及... 目录一、基本跨域配置二、只允许指定域名跨域三、完整示例四、配置后重载 nginx五、注意事项六、支持

Spring配置扩展之JavaConfig的使用小结

《Spring配置扩展之JavaConfig的使用小结》JavaConfig是Spring框架中基于纯Java代码的配置方式,用于替代传统的XML配置,通过注解(如@Bean)定义Spring容器的组... 目录JavaConfig 的概念什么是JavaConfig?为什么使用 JavaConfig?Jav

Spring Boot Interceptor的原理、配置、顺序控制及与Filter的关键区别对比分析

《SpringBootInterceptor的原理、配置、顺序控制及与Filter的关键区别对比分析》本文主要介绍了SpringBoot中的拦截器(Interceptor)及其与过滤器(Filt... 目录前言一、核心功能二、拦截器的实现2.1 定义自定义拦截器2.2 注册拦截器三、多拦截器的执行顺序四、过

springboot的controller中如何获取applicatim.yml的配置值

《springboot的controller中如何获取applicatim.yml的配置值》本文介绍了在SpringBoot的Controller中获取application.yml配置值的四种方式,... 目录1. 使用@Value注解(最常用)application.yml 配置Controller 中

springboot中配置logback-spring.xml的方法

《springboot中配置logback-spring.xml的方法》文章介绍了如何在SpringBoot项目中配置logback-spring.xml文件来进行日志管理,包括如何定义日志输出方式、... 目录一、在src/main/resources目录下,也就是在classpath路径下创建logba

C++多线程开发环境配置方法

《C++多线程开发环境配置方法》文章详细介绍了如何在Windows上安装MinGW-w64和VSCode,并配置环境变量和编译任务,使用VSCode创建一个C++多线程测试项目,并通过配置tasks.... 目录下载安装 MinGW-w64下载安装VS code创建测试项目配置编译任务创建 tasks.js

Nginx概念、架构、配置与虚拟主机实战操作指南

《Nginx概念、架构、配置与虚拟主机实战操作指南》Nginx是一个高性能的HTTP服务器、反向代理服务器、负载均衡器和IMAP/POP3/SMTP代理服务器,它支持高并发连接,资源占用低,功能全面且... 目录Nginx 深度解析:概念、架构、配置与虚拟主机实战一、Nginx 的概念二、Nginx 的特点