Cisco CCNP 帧中继网络教程

本文涉及的产品
云解析 DNS,旗舰版 1个月
全局流量管理 GTM,标准版 1个月
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
简介:
  1. CCNP帧中继拓扑图

869c0db547fdac7357fd639bd25363f4.png-wh_

2.实验设备:5GNS3 3600路由器(R1 R2 R3R4 R5)中间的R5模拟帧中继交换机,通过S1/0、S1/1、S1/2 S1/3 串行连接R1/ R2/ R3/ R4 .

 

实验要求

   配置帧中继网络的静态映射及点到点子接口和点到多点的帧中继网络。

 

实验配置:

配置帧中继交换机:

--------------------------------------------R5帧中继-----------------------------------------------------------------------

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

!

!

ip cef

no ip domain lookup

!

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

multilink bundle-name authenticated

 

config#frame-relay switching   //将路由器模拟为帧中继交换机

archive

 logconfig

 hidekeys

!        

!

!

!

ip tcp synwait-time 5

 

config#inter S1/0           //进入S1/0接口

config-if#no shout          //开启接口

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

(config-if)#serial restart-delay 0

(config-if)#frame-relay lmi-type ansi

(config-if)#frame-relay local-dlci 103

(config-if)#frame intf-type dce   //声明帧中继接口电缆类

(config-if)#frame-relay route 102 interfaceSerial1/1 201

//配置帧中继路由,102 为进入接口的 DLCI 号,从 S1/1  DLCI 201 发出去。

(config-if)#frame-relay route 103 interfaceSerial1/2 301

//配置帧中继路由,103 为进入接口的 DLCI 号,从 S1/2  DLCI 301 发出去。

(config-if)#frame-relay route 104 interfaceSerial1/3 401

//配置帧中继路由,104 为进入接口的 DLCI 号,从 S1/3  DLCI 401 发出去。

interface S1/1   //进入S1/1接口

 noshout     //开启接口

 encapsulation frame-relay IETF   //为接口封装帧中继

 serial restart-delay 0

 frame-relay lmi-type ansi

 frame-relay intf-type dce       //声明帧中继接口电缆类

 frame-relay route 201 interface Serial1/0 102

 //配置帧中继路由,201为进入接口的 DLCI 号,从 S1/0  DLCI 102 发出去。

 showframe-relay route //查看帧中继交换机上的路由

c439334447d00a90a57365766eb4832d.png-wh_

!

interface Serial1/2

 noshout

 encapsulation frame-relay IETF

 serialrestart-delay 0

 frame-relay lmi-type ansi

 frame-relay intf-type dce

 frame-relay route 301 interface Serial1/0 103

 //配置帧中继路由,301为进入接口的 DLCI 号,从 S1/0  DLCI 103 发出去。

!

interface S1/3

 noshout

 encapsulation frame-relay IETF

 serial restart-delay 0

 frame-relaylmi-type ansi

 frame-relay intf-type dce

 frame-relay route 401 interface Serial1/0 104

 //配置帧中继路由,401为进入接口的 DLCI 号,从 S1/0  DLCI 104 发出去。

!

no ip http server

no ip http secure-server

ip forward-protocol nd

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

 

 

 

 

 

 

 

点到点帧中继的静态映射:

------------------------------------------------R1路由器----------------------------------------------------------------

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

!

ip cef

no ip domain lookup

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

multilink bundle-name authenticated

!

 

archive

 logconfig

 hidekeys

!

ip tcp synwait-time 5

!

interface Lo0

 ipaddress 1.1.1.1 255.255.255.0

!

interface S1/0

 noshout

 encapsulation frame-relay IETF

 serial restart-delay 0

 noframe-relay inverse-arp        //关闭反向 ARP 解析(默认打开)

 frame-relay lmi-type ansi

!

interface S1/0.12 point-to-point

 ipaddress 11.11.11.1 255.255.255.252

 snmptrap link-status

 frame-relay interface-dlci 102  

!

interface S1/0.134 multipoint

 ipaddress 12.12.12.1 255.255.255.0

 noip split-horizon

 snmptrap link-status

 frame-relay map ip 12.12.12. 103broadcast

//手动配置一条到 R 的帧中继映射,使用目的 IP 及本端 DLCI

 frame-relay map ip 12.12.12.3 104 broadcast

//手动配置一条到 R4的帧中继映射,使用目的IP 及本端 DLCI

!

router rip//配置版本2的RIP路由协议

 version 2

 net1.0.0.0

 net11.0.0.0

 net12.0.0.0

 noauto-summary//关闭自动汇总

!

no ip http server

no ip http secure-server

ip forward-protocol nd

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

sh frame-relay map 

c42c3c44741e684062ee677cd0cb5baf.png-wh_


//解析到 dynamic(动态) DLCI 映射,活动状态为static(关闭)

 

 

 

 

 

 

 

 

------------------R2路由器--------------

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

!

ip cef

no ip domain lookup

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

multilink bundle-name authenticated

!

archive

 logconfig

 hidekeys

!

ip tcp synwait-time 5

!

interface Lo0

 ipaddress 2.2.2.2 255.255.255.0

!

interface S1/1

 ipaddress 11.11.11.2 255.255.255.252

 encapsulation frame-relay IETF

 serial restart-delay 0

 frame-relay map ip 11.11.11.1 201 broadcast

//手动配置一条到 R 的帧中继映射,使用目的 IP 及本端 DLCI

 frame-relay lmi-type ansi

!

router rip//配置版本2的RIP路由协议    

 version 2

 net2.0.0.0

 net11.0.0.0

 noauto-summary

!

no ip http server

no ip http secure-server

ip forward-protocol nd

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

 

 

--------------R3路由器--------------

配置使用子接口的帧中继网络:

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

!

!

ip cef

no ip domain lookup

!

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

multilink bundle-name authenticated

!

archive

 logconfig

 hidekeys

!

!        

!

!

ip tcp synwait-time 5

!

interface Lo0

 ipaddress 3.3.3.3 255.255.255.0

!

 

interface S1/2

 ipaddress 12.12.12.2 255.255.255.0

 encapsulation frame-relay IETF

 serial restart-delay 0

 frame-relay map ip 12.12.12.1 301 broadcast

//手动配置一条到 R 的帧中继映射,使用目的 IP 及本端 DLCI

 frame-relay map ip 12.12.12.3 301 broadcast

//手动配置一条到 R 的帧中继映射,使用目的 IP 及本端 DLCI

 noframe-relay inverse-arp //关闭反向 ARP 解析(默认打开)

 frame-relay lmi-type ansi

!

router rip//配置版本2的RIP路由协议  

 version 2

 net3.0.0.0

 net12.0.0.0

 noauto-summary//关闭自动汇总

!

no ip http server

no ip http secure-server

ip forward-protocol nd

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

#sh frame-relay map

80688843c1e46a3d429ee68401be2a3b.png-wh_

#sh frame-relay pvc //显示路由器所定义帧中继PVC 的统

a3fcf871a7b9b71acc2be112fa91122c.png-wh_

 

 

 

------------------------------------------------------------R4路由器-------------------------------------------------------

 

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

!

ip cef

no ip domain lookup

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

multilink bundle-name authenticated

!

archive

 logconfig

 hidekeys

!

ip tcp synwait-time 5

!

interface Lo0

 ipaddress 4.4.4.4 255.255.255.0

!

 

interface S1/3

 ipaddress 12.12.12.3 255.255.255.0

 encapsulation frame-relay IETF

 serial restart-delay 0

 frame-relay map ip 12.12.12.1 401 broadcast

//手动配置一条到 R 的帧中继映射,使用目的 IP 及本端 DLCI

 frame-relay map ip 12.12.12.2 401 broadcast

//手动配置一条到 R3 的帧中继映射,使用目的IP 及本端 DLCI

 noframe-relay inverse-arp    //关闭反向 ARP 解析(默认打开)

 frame-relay lmi-type ansi

!        

router rip             //配置版本2的RIP路由协议

 version 2

 net4.0.0.0

 net12.0.0.0

 noauto-summary//关闭自动汇总

!

no ip http server

no ip http secure-server

ip forward-protocol nd

!

line con 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line aux 0

 exec-timeout 0 0

 privilege level 15

 logging synchronous

line vty 0 4

 login

!

#sh frame-relay map

03c8a3431a29aa37e95ffe4e5aee365c.png-wh_



#sh frame-relay pvc //显示路由器所定义帧中继PVC 的统

34ce14e04dbaba9a8be863e9ac67b7ab.png-wh_

#sh   iprouter     //查看所有路由器的路由表

bb04b38748871caf7066c619e090c5ba.png-wh_


测试互联互通:

1c305e2cc71c75e6f941e3f9766c1c6e.png-wh_

实验总结:注意帧中继的不同配置情况,每个接口必须都正确封装帧中继并启用端口,手

动配置时必须关掉反向 ARP 解析并清除动态的映射;当存在不同子网的连接时必须配置子

接口,子接口需要指定连接类型以及子接口的 DLCI 号。PVC 的状态必须全部为活动时才

能进行帧中继映射。

                                     

                                     

 

本文转自 新网学会

 51CTO博客,原文链接:http://blog.51cto.com/xwxhvip/1978353 ,如需转载请自行联系原作者

相关文章
|
17天前
|
监控 Linux PHP
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
67 20
|
2月前
|
前端开发 小程序 Java
uniapp-网络数据请求全教程
这篇文档介绍了如何在uni-app项目中使用第三方包发起网络请求
70 3
|
8月前
|
SQL 安全 算法
爆赞!终于有大佬把网络安全零基础入门教程给讲明白了!
网络安全的一个通用定义指网络信息系统的硬件、软件及其系统中的数据受到保护,不因偶然的或者恶意的破坏、更改、泄露,系统能连续、可靠、正常地运行,服务不中断。网络安全简单的说是在网络环境下能够识别和消除不安全因素的能力。 网络安全在不同环境和应用中有不同的解释,例如系统运行的安全、系统信息内容的安全、信息通信与传播的安全等。 网络安全的主体是保护网络上的数据和通信的安全,数据安全性是指软硬件保护措施,用来阻止对数据进行非授权的泄漏、转移、修改和破坏等,通信安全性是通信保护措施,要求在通信中采用保密安全性、传输安全性、辐射安全性等措施。
|
4月前
|
存储 数据可视化 API
重磅干货,免费三方网络验证[用户系统+CDK]全套API接口分享教程。
本套网络验证系统提供全面的API接口,支持用户注册、登录、数据查询与修改、留言板管理等功能,适用于不想自建用户系统的APP开发者。系统还包含CDK管理功能,如生成、使用、查询和删除CDK等。支持高自定义性,包括20个自定义字段,满足不同需求。详细接口参数及示例请参考官方文档。
|
8月前
|
存储 缓存 网络协议
网络编程初学者必备:从零开始的详细教程与资源汇总
网络编程初学者必备:从零开始的详细教程与资源汇总
140 0
|
5月前
|
弹性计算 Kubernetes 网络协议
阿里云弹性网络接口技术的容器网络基础教程
阿里云弹性网络接口技术的容器网络基础教程
阿里云弹性网络接口技术的容器网络基础教程
|
5月前
|
网络协议 安全 网络安全
Cisco-网络端口地址转换NAPT配置
Cisco-网络端口地址转换NAPT配置
110 1
|
5月前
|
安全 网络安全 数据安全/隐私保护
Cisco-网络地址转换动态NAT
Cisco-网络地址转换动态NAT
|
5月前
|
安全 网络安全 数据安全/隐私保护
Cisco-网络地址转换静态NAT
Cisco-网络地址转换静态NAT
|
5月前
Cisco-认识网络
Cisco-认识网络

热门文章

最新文章