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 ...
随机推荐
- error2
10:09:40 贾老师,请问这个错在哪里啊! ^^Li_Jia^^ 10:27:41 你第2个for的n是做什么的 10:28:06 换行 ^^Li_Jia^^ 10:28:26 这 ...
- PHP获取中文汉字首字母方法
function getFirstLetter($str){ $fchar = ord($str{0}); if($fchar >= ord("A") and $fchar ...
- interview collect
1. binary tree inorder traversal 不能用recursive写 (LC原题)2. 比如有个数组F={1,3, 4, 5, 2, 0}, A=3, 那么F[A]=5, F[ ...
- JavaWeb核心编程之(三.2)Servlet配置
Servlet配置 1.配置Serlvet加载时机 2.配置多映射 配置加载时机 新建项目config->创建包com.xiaoan.config->创建类FirstServlet imp ...
- 菜鸟学java开篇
从事it工作已有接近两年的时间了, 一直从事的是php的工作, 一直都想学java ,原因就不多说了, 毕竟优秀的php程序员,都会是一个其他方面的高手, 例如java ,并不是说java有多好,ph ...
- 超简单TAB切换
<div class="tab-fbox2"> <ul class="title-list2 clearfix"> <li cla ...
- Javascript中的attribute和property分析
attribute和property这两个单词,都有属性的意思,attribute有属性.特质的意思,property则有性质,性能的意思. 首先需要明确的是,在规范中,读取和设置attribute的 ...
- genToken- Php file
<?php public function genToken($len = 32, $md5 = true) { # Seed random number generator # Only ne ...
- php配置redis支持
在php.ini里面添加下面两行,注意这两行的顺序一定不要颠倒(扩展库下载网址https://github.com/phpredis/phpredis/downloads),同时注意这2个文件的版本一 ...
- [问题解决] "Nautilus could not create the required folder "/home/kenneth/.config/nautilus"
错误: "Nautilus could not create the required folder "/home/kenneth/.config/nautilus" 发 ...