帧中继子接口配置

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

相关文章

SpringCloud动态配置注解@RefreshScope与@Component的深度解析

《SpringCloud动态配置注解@RefreshScope与@Component的深度解析》在现代微服务架构中,动态配置管理是一个关键需求,本文将为大家介绍SpringCloud中相关的注解@Re... 目录引言1. @RefreshScope 的作用与原理1.1 什么是 @RefreshScope1.

go中空接口的具体使用

《go中空接口的具体使用》空接口是一种特殊的接口类型,它不包含任何方法,本文主要介绍了go中空接口的具体使用,具有一定的参考价值,感兴趣的可以了解一下... 目录接口-空接口1. 什么是空接口?2. 如何使用空接口?第一,第二,第三,3. 空接口几个要注意的坑坑1:坑2:坑3:接口-空接口1. 什么是空接

SpringBoot日志配置SLF4J和Logback的方法实现

《SpringBoot日志配置SLF4J和Logback的方法实现》日志记录是不可或缺的一部分,本文主要介绍了SpringBoot日志配置SLF4J和Logback的方法实现,文中通过示例代码介绍的非... 目录一、前言二、案例一:初识日志三、案例二:使用Lombok输出日志四、案例三:配置Logback一

springboot security之前后端分离配置方式

《springbootsecurity之前后端分离配置方式》:本文主要介绍springbootsecurity之前后端分离配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的... 目录前言自定义配置认证失败自定义处理登录相关接口匿名访问前置文章总结前言spring boot secu

一文详解SpringBoot响应压缩功能的配置与优化

《一文详解SpringBoot响应压缩功能的配置与优化》SpringBoot的响应压缩功能基于智能协商机制,需同时满足很多条件,本文主要为大家详细介绍了SpringBoot响应压缩功能的配置与优化,需... 目录一、核心工作机制1.1 自动协商触发条件1.2 压缩处理流程二、配置方案详解2.1 基础YAML

springboot简单集成Security配置的教程

《springboot简单集成Security配置的教程》:本文主要介绍springboot简单集成Security配置的教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录集成Security安全框架引入依赖编写配置类WebSecurityConfig(自定义资源权限规则

SpringBoot中封装Cors自动配置方式

《SpringBoot中封装Cors自动配置方式》:本文主要介绍SpringBoot中封装Cors自动配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录SpringBoot封装Cors自动配置背景实现步骤1. 创建 GlobalCorsProperties

Spring Boot结成MyBatis-Plus最全配置指南

《SpringBoot结成MyBatis-Plus最全配置指南》本文主要介绍了SpringBoot结成MyBatis-Plus最全配置指南,包括依赖引入、配置数据源、Mapper扫描、基本CRUD操... 目录前言详细操作一.创建项目并引入相关依赖二.配置数据源信息三.编写相关代码查zsRArly询数据库数

SpringBoot配置Ollama实现本地部署DeepSeek

《SpringBoot配置Ollama实现本地部署DeepSeek》本文主要介绍了在本地环境中使用Ollama配置DeepSeek模型,并在IntelliJIDEA中创建一个Sprin... 目录前言详细步骤一、本地配置DeepSeek二、SpringBoot项目调用本地DeepSeek前言随着人工智能技

如何自定义Nginx JSON日志格式配置

《如何自定义NginxJSON日志格式配置》Nginx作为最流行的Web服务器之一,其灵活的日志配置能力允许我们根据需求定制日志格式,本文将详细介绍如何配置Nginx以JSON格式记录访问日志,这种... 目录前言为什么选择jsON格式日志?配置步骤详解1. 安装Nginx服务2. 自定义JSON日志格式各