WAN(广域网)

WAN简介

分区或分支机构的员工需要与总部通信并共享数据。

组织经常需要与其它组织远距离共享信息。

经常出差的员工需要访问公司网络信息。

•广域网链路类型

专线

电路交换

分组交换

VPN

WAN 技术概述

WAN 操作主要集中在第 1 层和第 2 层上。

物理层(OSI 1 层)协议描述连接通信服务提供商提供的服务所需的电气、机械、操作和功能特性。

数据链路层(OSI 2 层)协议定义如何封装传向远程位置的数据以及最终数据帧的传输机制。

HDLC帧格式

配置HDLC封装

RouterX(config-if)# encapsulation hdlc

 

启用HDLC封装;

HDLC是同步串口的缺省封装格式;

PPP

PPP 可以通过 NCP 携带多个协议的数据包;

PPP 可以通过 LCP 建立和控制连接;

PPP会话建立:

1.  链路建立阶段

2.  认证阶段 (可选)

两种PPP认证协议: PAP and CHAP

3.  网络层协议阶段

配置PPPPPP认证

PAP单向认证

使用PAP单向认证:(验证方R1—被验证方R2

Router(config)#hostname R1

R1(config)#username R2 password cisco

R1(config)#int s1/0

R1(config-if)#encapsulation ppp

R1(config-if)#ppp authentication pap

 

Router(config)#hostname R2

R2(config)#int s1/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp pap sent-username R2 password 0 cisco

 

使用ping命令验证连通性。(注意,这里在R2上发送的用户名和密码必须和在R1上建立的用户名密码一致)

PAP双向认证

Router(config)#hostname R1       //设置主机名为R1

R1(config)#username R2 password cisco       //建立用户R2,密码cisco

R1(config)#int s1/0

R1(config-if)#encapsulation ppp         //PPP封装

R1(config-if)#ppp authentication pap   //PPP验证方式为pap

R1(config-if)#ppp pap sent-username R1 password 0 cisco   

                    //发送用户名R1密码cisco

 

Router(config)#hostname R2

R2(config)#username R1 password cisco

R2(config)#int s1/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp authentication pap

R2(config-if)#ppp pap sent-username R2 password 0 cisco

 

使用ping命令验证连通性。(注意,这里在R1上发送的用户名和密码必须和在R2上建立的用户名密码一致)

CHAP单向认证

(验证方R1—被验证方R2

Router(config)#hostname R1

R1(config)#username R2 password cisco

R1(config)#int s1/0

R1(config-if)#encapsulation ppp

R1(config-if)#ppp authentication chap

 

Router(config)#hostname R2

R2(config)#int s1/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp chap hostname R2

R2(config-if)#ppp chap password 0 cisco

CHAP双向认证

Router(config)#hostname R1

R1(config)#username R2 password cisco

R1(config)#int s1/0

R1(config-if)#encapsulation ppp

R1(config-if)#ppp authentication chap

 

Router(config)#hostname R2

R2(config)#username R1 password cisco

R2(config)#int s1/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp authentication chap

帧中继(Frame Relay)简介

  • 使用虚电路进行连接;
  • 提供面向对象的服务

帧中继(Frame Relay)地址映射

  • 从提供商那里得到本地的DLCI
  • 建立目的地址和本地DLCI之间的映射关系

配置静态的帧中继(Frame Relay)映射

什么时候需要配置静态帧中继映射:

  • 帧中继对端不支持反向ARP( Inverse ARP)
  • 你想在PVC上控制广播流量;
  • 你想在 PVCs上有不同的帧中继封装;
  • 4
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值