CCNA实验(8) -- PPP & HDLC
HDLC帧格式与以太帧格式有很大差别,HDLC帧没有源MAC和目的MAC地址。
HDLC不能提供验证,缺少对链路保护。
Cisco设备与Cisco设备连接,可用HDLC封装。
Cisco设备与非Cisco设备连接,应使用PPP协议。
PPP经过4个过程在点到点链路上建立连接:
1.通信的发起方发送LCP帧来配置和检测数据链路
2.链路质量检测(可选的)
3.通信的发起方发送NCP帧选择并配置网络层协议
4.通信链路保持到LCP或NCP帧关闭链路或发生一些外部事件
PPP两种认证方式:
1.PAP(Password Authentication Protocol)
利用2次握手的简单方法进行认证。
源节点不停的在链路上反复明文发送用户名和密码,直到验证通过。
PAP不能防范再生攻击和重复的尝试攻击。
2.CHAP(Challenge Handshake Authentication Protocol)
利用3次握手周期的验证源端节点的身份。
CHAP每次使用不用的询问消息
可以防止再生攻击
1.HDLC与PPP的封装
2.PPP的PAP认证
3.PPP的CHAP认证
enable
conf t
no ip do lo
enable pass cisco
line con 0
logg sync
exec-t 0 0
line vty 0 4
pass cisco
logg sync
exit
host
1.HDLC以及PPP封装
--------------------------------------------------------------
R1:
int s0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
R2:
int s0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
R1:
end
show int s0/0
conf t
int s0/0
encap PPP
exit
R2:
int s0/0
encap PPP
exit
2.PPP的PAP认证
-------------------------------------------------------------------
R1:
int s0/0
ip add 12.1.1.1 255.255.255.0
encap PPP
no shut
exit
R2:
int s0/0
ip add 12.1.1.2 255.255.255.0
encap PPP
no shut
exit
R2:
int s0/0
ppp authen pap
exit
user R1 pass cisco
R1:
int s0/0
ppp pap sent-user R1 pass cisco
exit
R1:
int s0/0
ppp authen pap
exit
user R2 pass yeslab
R2:
int s0/0
ppp pap sent-user R2 pass yeslab
exit
3.PPP的CHAP认证
-----------------------------------------------------------------------
R1:
int s0/0
ip add 12.1.1.1 255.255.255.0
encap PPP
no shut
exit
R2:
int s0/0
ip add 12.1.1.2 255.255.255.0
encap PPP
no shut
exit
R2:
int s0/0
ppp authen chap
exit
user R1 pass cisco
R1:
int s0/0
ppp authen chap
exit
user R2 pass cisco
CCNA实验(8) -- PPP & HDLC的更多相关文章
- 实验18:HDLC和PPP
实验15-1:HDLC 和PPP 封装 Ø 实验目的通过本实验,读者可以掌握如下技能:(1) 串行链路上的封装概念(2) HDLC 封装(3) PPP 封装 Ø 实验拓扑 实验步骤n ...
- Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN
Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN Vlan(Virtual Local Area Network) 即虚拟局域网.VLAN可以把同一个物理网络划分为多个逻辑 ...
- CCNA实验4:HDLC和PPP
一.HDLC封装 router9和11上分别配置s0/0如下 conf t int s0/0 encapsulation hdlc do show int s0/0 ip address x.x.x. ...
- CCNA实验2.VLAN
一. 二.配置主VTP上的信息 sw2上配置为domain server,sw1上配置为domain client,sw2上增加vlan并命名和添加描述 conf t vtp domain corp ...
- CCNA实验1.port-security
一, 二,MAC地址绑定 3550-1#conf t3550-1(config)#int f0/13550-1(config-if)#switchport mode access /指定端口模式.35 ...
- CCNA实验(1) -- 基本配置
Ctrl+A: 到行首(Ahead)Ctrl+E: 到行尾(End)Esc+B: 回退一个单词(Back)Esc+F: 前进一个单词(Forward) 1.三种配置模式2.时间时区配置3.设置超时时间 ...
- CCNA实验(2) -- Static Route
1.静态路由R1:ip route 22.1.1.0 255.255.255.0 12.1.1.2 2.静态汇总路由R1:ip route 22.1.0.0 255.255.0.0 12.1.1.2 ...
- CCNA实验(5) -- OSPF
enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t 0 0line vty 0 4pass ciscologg sync ...
- CCNA实验(4) -- EIGRP
enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t 0 0line vty 0 4pass ciscologg sync ...
随机推荐
- python two-dimensional array assignment initialize
#if you want to initialize a 9*9 two-dimensional array [([""]*9) for i in range(9)] #cauti ...
- 浮动层固定兼容IE6 position:fixed的最佳解决方案
第一种:css方法 有时候当我们需要把一个元素固定在页面的某个部位,一般都是用css中的“position:fixed;”方法来解决,但是IE6不支持fixed,所以今天分享一个兼容IE6的页面底部固 ...
- SVN+post-commit 搭建自动同步版本库
一.需求. 本地文件上传到测试环境svn,测试环境同步到生产环境rsync.开发环境与测试环境与生产环境分离. 二.搭建SVN服务器. yum -y install subversion && ...
- struts2笔记02-action和Action类
1.action action表示一个struts2的请求! 2.Action类 能够处理struts2请求的类. (1)属性的名字需要与JavaBeans属性保持一致. 属性的类型可以是任 ...
- codeforces 652E . Pursuit For Artifacts 强连通分量
题目链接 题目大意: 给一个图, n个点m条边, 某些边上面有权值. 一条边只能走一次, 给两个点s, t. 问你, 从s到t能否经过有权值的边. 首先肯定要缩点, 然后看同一个连通分量里面的边, 是 ...
- 【Howie玩docker】-Centos 7 docker 启动容器iptables报No chain/target/match by that name
重启了一下服务器,以前能运行的docker网络应用都不能正常开启了. 因为用的是centos7,所以猜测有可能是iptables的问题. docker start 或者run 后总是提示类似的错误: ...
- android LinearLayout android:layout_weight 作用,固定比例
android 中的 LinearLayout 是线性布局有水平布局horizontal 垂直布局vertical .本文针对 水平布局horizontal 布局的weight属性做一个标记,以免 ...
- J2SE知识点摘记(十六)
1. IO包中的类层次 ┌BufferedInputStream ├DataInputStream ┌FilterInputStream┼LineNumberInputStream ├ ...
- 在Mac上配置Apache+PHP环境
1.启用Apache/Web共享 打开终端,运行启动Apache命令: sudo apachectl start 然后输入系统密码,运行成功. 关闭命令: sudo apachectl stop 重启 ...
- gallery利用代码定位图片并且不丢失动画效果
安卓中,利用gallery.setSelection(position);可以手动定位图片 但是众所周知会丢失动画效果 即使是用gallery.setSelection(position,true); ...