PPPPAPCHAP封装协议配置命令.docx

上传人:b****2 文档编号:1245648 上传时间:2023-04-30 格式:DOCX 页数:23 大小:19.28KB
下载 相关 举报
PPPPAPCHAP封装协议配置命令.docx_第1页
第1页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第2页
第2页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第3页
第3页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第4页
第4页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第5页
第5页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第6页
第6页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第7页
第7页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第8页
第8页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第9页
第9页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第10页
第10页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第11页
第11页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第12页
第12页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第13页
第13页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第14页
第14页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第15页
第15页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第16页
第16页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第17页
第17页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第18页
第18页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第19页
第19页 / 共23页
PPPPAPCHAP封装协议配置命令.docx_第20页
第20页 / 共23页
亲,该文档总共23页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

PPPPAPCHAP封装协议配置命令.docx

《PPPPAPCHAP封装协议配置命令.docx》由会员分享,可在线阅读,更多相关《PPPPAPCHAP封装协议配置命令.docx(23页珍藏版)》请在冰点文库上搜索。

PPPPAPCHAP封装协议配置命令.docx

PPPPAPCHAP封装协议配置命令

通过独臂路由实现Vlan之间互访(实验成功)

一、实验目的

1、理解路由器以太网端口的特殊连网方式。

2、进一步理解IEEE802.1q封装过程。

二、应用环境:

 路由器以太网端口直连多个二层交换机,并划分多个VLAN,为了实现内外网的互相通信。

三、实验设备

1、1702路由器一台或2631路由器一台。

2、DCS二层交换机一台

3、直通双绞线3条

四、实验拓扑

 

五、实验要求

  1、交换机划分为VLAN10和VLAN20,端口1-8和9-16分别属于VLAN10和VLAN20,24口为trunk端口。

  2、路由器f0/0与交换机24口连接,打封装。

六、实验步骤:

1、交换机配置:

Switch(conifg)#vlan10

Switch(conifg-Vlan10)#switchportinterfaceEthernet0/0/1-8

Switch(conifg)#vlan20

Switch(conifg-Vlan20)#switchportinterfaceEthernet0/0/9-16

Switch(conifg)#interfaceehternet0/0/24

Switch(conifg-ethernet0/0/24)#switchportmodetrunk

2、DCR2631配置

Router_config#interfacef0/0.1

Router_config_f0/0.1#encapsulationdot1q100

Router_config_f0/0.1#ipaddress192.168.100.1

Router_config#interfacef0/0.2

Router_config_f0/0.1#encapsulationdot1q200

Router_config_f0/0.1#ipaddress192.168.200.1

七、注意事项和排错

  1、f0/0已作为二层链路通道存大,不是三层接口。

 

路由器广域网HDLC封装配置

一、实验目的

1、掌握广域网HDLC封装配置

2、理解DCE和DTE的区别

3、理解封装匹配

二、应用环境:

  企业环境中异地互连通经过第三方的网络,本实验模拟广域网的互连

三、实验设备

1、1702路由器一台和2631路由器一台。

2、CR-V35MT线一条

3、CR-V35FC线一条

四、实验拓扑

 

 

S1/0

 

 

五、实验要求

 

Router-A(2631)

Router-B(1702)

接口

IP地址

接口

IP地址

S1/0 DCE

192.168.1.1

S0/2 DTE

192.168.1.2

六、实验步骤:

1、Router-A(2631)的配置

Router>enable

Router#config

Router_config#hostnameRouter-A

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationhdlc

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

Router-A#show interfaces0/2

2、Router-B(1702)的配置

Router>enable

Router#config

Router_config#hostnameRouter-B

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationhdlc

Router-B_config_s0/2#noshutdown

Router-B#show interfaces0/2

测试连通性:

ping192.168.1.1

七、注意事项和排错

  1、注意查看接口状态,接口和协议都必需是UP状态。

  2、CR-V35FC所连接的为DCE口,CR-V35MT所连接的为DTE口

  3、协议是down的,通常是封装不匹配,或是DCE时钟频率没有配置。

  4、接口是down的,通常是线缆故障

  5、在实际工作中,DCE设备通常是由服务提供商配置,本实验是模拟环境。

 

路由器广域网PPP封装

一、实验目的

1、掌握广域网ppp封装配置

2、理解DCE和DTE的区别

3、理解封装匹配

二、应用环境:

  企业环境中异地互连通经过第三方的网络,本实验模拟广域网的互连

三、实验设备

1、1702路由器一台和2631路由器一台。

2、CR-V35MT线一条

3、CR-V35FC线一条

四、实验拓扑

五、实验要求

 

Router-A(2631)

Router-B(1702)

接口

IP地址

接口

IP地址

S1/0 DCE

192.168.1.1

S0/2 DTE

192.168.1.2

六、实验步骤:

1、Router-A(2631)的配置

Router>enable

Router#config

Router_config#hostnameRouter-A

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationppp

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

Router-A#show interfaces0/2

2、Router-B(1702)的配置

Router>enable

Router#config

Router_config#hostnameRouter-B

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationppp

Router-B_config_s0/2#noshutdown

Router-B#show interfaces0/2

测试连通性:

ping192.168.1.1

七、注意事项和排错

  1、注意查看接口状态,接口和协议都必需是UP状态。

  2、CR-V35FC所连接的为DCE口,CR-V35MT所连接的为DTE口

  3、协议是down的,通常是封装不匹配,或是DCE时钟频率没有配置。

  4、接口是down的,通常是线缆故障

  5、在实际工作中,DCE设备通常是由服务提供商配置,本实验是模拟环境。

 

路由器广域网PPP封装PAP验证配置(测试成功)

∙实验目的

1.掌握PAP验证配置

2.理解验证过程

∙应用环境:

基于安全的考虑,需要路由器双方经过验证后才能建立连接。

∙实验设备

1、1702路由器一台和2631路由器一台。

2、CR-V35MT线一条

3、CR-V35FC线一条

∙实验拓扑

∙实验要求

       Router-A(2631)                 Router-B(1702)

  接口           IP地址         接口           IP地址

  S1/0 DCE   192.168.1.1      S0/2 DTE   192.168.1.2

  帐号         密码             帐号         密码 

  qzhqzxa      hqzxa            qzhqzxb      hqzxb

∙实验步骤:

1.Router-A(2631)的配置

Router>enable

Router#config

Router_config#hostnameRouter-A

Router-A_config#usernameqzhqzxbpasswordhqzxb

Router-A_config#aaaauthenticationppptestlocal

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationppp

Router-A_config_s1/0#pppauthenticationpaptest

Router-A_config_s1/0#ppppapsent-usernameqzhqzxapasswordhqzxa

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

1.Router-B(1702)的配置

Router>enable

Router#config

Router_config#hostnameRouter-B

Router-B_config#aaaauthenticationppptestlocal(定义一个名为test,使用本地数据库进行验证的aaa验证方法)

Router-B_config#usernameqzhqzxapasswordhqzxa

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationppp

Router-B_config_s0/2#pppauthenticationpaptest

Router-B_config_s0/2#ppppapsent-usernameqzhqzxbpasswordhqzxb

Router-B_config_s0/2#noshutdown

Router-B#show interfaces0/2

∙注意事项和排错

1.帐号密码一定要交叉对应,发送的帐号密码要和对方帐号密码数据库中的帐号密码对应。

2.DCE的时钟频率要设置。

 

路由器广域网PPP封装CHAP验证配置(测试成功)

一、实验目的

1、掌握CHAP验证配置

2、理解验证过程

二、应用环境:

基于安全的考虑,需要路由器双方经过验证后才能建立连接。

三、实验设备

1、1702路由器一台和2631路由器一台。

2、CR-V35MT线一条

3、CR-V35FC线一条

四、实验拓扑

  

五、实验要求

       Router-A(2631)                 Router-B(1702)

  接口           IP地址         接口           IP地址

  S1/0 DCE   192.168.1.1      S0/2 DTE   192.168.1.2

  帐号         密码             帐号         密码 

  qzhqzxa      hqzxb            qzhqzxb      hqzxb

六、实验步骤:

1、Router-A(2631)的配置

Router>enable

Router#config

Router_config#hostnameRouter-A

Router-A_config#usernameqzhqzxbpasswordhqzxb

注意:

两个路由器之间的用户名是对方登录的使用的,但密码是一样的,pap认证用户名和密码是可以不一样的。

Router-A_config#aaaauthenticationppptestlocal

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationppp

Router-A_config_s1/0#pppauthenticationchaptest

Router-A_config_s1/0#pppchaphostnameqzhqzxa(发送给1702的用户名)

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

2、Router-B(1702)的配置

Router>enable

Router#config

Router_config#hostnameRouter-B

Router-B_config#aaaauthenticationppptestlocal(定义一个名为test,使用本地数据库进行验证的aaa验证方法)

Router-B_config#usernameqzhqzxapasswordhqzxb

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationppp

Router-B_config_s0/2#pppauthenticationchaptest

Router-B_config_s0/2#pppchaphostnameqzhqzxb

Router-B_config_s0/2#noshutdown

Router-B#show interfaces0/2

七、注意事项和排错

     1、双方密码一定要一致,发送的帐号要和对方帐号数据库中的帐号对应。

     2、DCE的时钟频率一设置。

 

路由器静态路由的配置

一、实验目的

1、理解路由表

2、掌握静态路由的配置

二、应用环境:

1、在小规模的环境中,静态路由是最佳的选择。

2、静态路由开销小,但不灵活,适用于相对稳定的网络。

三、实验设备

1、1702路由器一台和2631路由器一台。

2、CR-V35MT线一条

3、CR-V35FC线一条

四、实验拓扑

    

五、实验要求:

 

Router-A(2631)

Router-B(1702)

接口

IP地址

接口

IP地址

S1/0 DCE

192.168.1.1

S0/2 DTE

192.168.1.2

F0/0

192.168.0.1

F0/0

192.168.2.1

 

六、实验步骤:

1、Router-A(2631)的配置

Router>enable

Router#config

Router_config#hostnameRouter-A

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationppp

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

Router-A_config#interfacef0/0

Router-A_config_f0/0#ipaddress192.168.0.1255.255.255.0

Router-A_config_f0/0#noshutdown

Router-A#show interface                 (以上是配置接口地址)

 Router-A#Showiproute                     (查看路由表的情况,C:

表示是直连路由,不用配置,路由器能自动识别,ping网络不通)

 Router-A_config#iproute192.168.2.0255.255.255.0192.168.1.2  (配置目标网段和下一跳的地址)

  Router-A#Showiproute                       (S:

表示静态路由,管理距离是1)

2、Router-B(1702)的配置

Router>enable

Router#config

Router_config#hostnameRouter-B

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationppp

Router-B_config_s0/2#noshutdown

Router-B_config#interfacef0/0

Router-B_config_f0/0#ipaddress192.168.2.1255.255.255.0

Router-B_config_f0/0#noshutdown

Router-B#show interface

Router-B#Showiproute

Router-B_config#iproute192.168.0.0255.255.255.0192.168.1.1

Router-B#Showiproute

   测试:

 PC互PING,通。

七、注意事项和排错

    1、非直连的网段都要配置路由

    2、以太网接口要接主机或交换机才能up

    3、串口注意DCE和DTE的问题。

 

路由器动态路由RIP-1协议的配置

一、实验目的

1、掌握动态路由的配置方法

2、理解RIP-1协议的工作过程

二、应用环境:

1、在路由器较多的环境里,手工配置静态路由给管理员带来在的工作负担。

2、在不太稳定的网络环境里,手工修改路由表不现实。

三、实验设备

1、1702路由器2台和2631路由器1台(注:

两组合作,夸实验台)。

2、CR-V35MT线一条

3、CR-V35FC线一条

四、实验拓扑

五、实验要求

 

Router-A(2631)

Router-B(1702)

Router-C(1702/2631)

接口

IP地址

接口

IP地址

接口

IP地址

S1/0 DCE

192.168.1.1

S0/2 DTE

192.168.1.2

F0/0

192.168.2.2

F0/0

192.168.0.1

F0/0

192.168.2.1

E0/1

192.168.3.1

 

六、实验步骤:

  

(一)各个接口地址的配置:

1、Router-A的接口地址:

Router-A_config#interfaces1/0

Router-A_config_s1/0#ipaddress192.168.1.1255.255.255.0

Router-A_config_s1/0#encapsulationppp

Router-A_config_s1/0#physical-layerspeed64000

Router-A_config_s1/0#noshutdown

Router-A_config#interfacef0/0

Router-A_config_f0/0#ipaddress192.168.0.1255.255.255.0

Router-A_config_f0/0#noshutdown

Router-A#show interface

2、Router-B的接口地址:

Router-B_config#interfaces0/2

Router-B_config_s0/2#ipaddress192.168.1.2255.255.255.0

Router-B_config_s0/2#encapsulationppp

Router-B_config_s0/2#noshutdown

Router-B_config#interfacef0/0

Router-B_config_f0/0#ipaddress192.168.2.1255.255.255.0

Router-B_config_f0/0#noshutdown

3、Router-C(1702)的接口地址:

Router-C_config#interfaceE0/1

Router-C_config_s0/2#ipaddress192.168.3.1255.255.255.0

Router-C_config_s0/2#noshutdown

Router-C_config#interfacef0/0

Router-C_config_f0/0#ipaddress192.168.2.2255.255.255.0

Router-C_config_f0/0#noshutdown

Showiproute                      (只能查看到所有的直连路由)

(二)RIP动态路由的配置:

1、Router-A的RIP动态路由的配置:

Router-A_config#routerrip

Router-A_config_rip#network192.168.0.0       (向相邻路由器宣告网段,同时各台学习台路由器的路由表)

Router-A_config#network192.168.1.0

Router-A#showiproute

2、Router-B的RIP动态路由的配置:

Router-B_config#routerrip

Router-B_config_rip#network192.168.1.0       (宣告网段)

Router-B_config#network192.168.2.0        

Router-B#showiproute                       (A和B会学习到对方的网段)

3、Router

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 总结汇报 > 学习总结

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2