网络运维学习笔记 016网工初级(HCIA-Datacom与CCNA-EI)PPP点对点协议和PPPoE以太网上的点对点协议(此处只讲华为)

文章目录

  • [PPP(Point to Point Protocol,点对点协议,华为默认使用)](#PPP(Point to Point Protocol,点对点协议,华为默认使用))
  • [串口封装协议HDLC(High-Level Data Link Control,高级数据链路控制,思科默认使用,华为需配置)](#串口封装协议HDLC(High-Level Data Link Control,高级数据链路控制,思科默认使用,华为需配置))
  • [PPPoE(PPP over Ethernet,以太网上的点对点协议)](#PPPoE(PPP over Ethernet,以太网上的点对点协议))

PPP(Point to Point Protocol,点对点协议,华为默认使用)

PPP链路的建立过程

PPP认证模式:PAP(发送两次,明文传输,client先发起)和CHAP(发送三次,密文传输,server先发起)

实验1:设置为pap模式

R1:

R1\]int s1/0/0 \[R1-s1/0/0\]ppp authentication-mode pap #更改为pap模式 \[R1\]aaa \[R1-aaa\]local-user zhangsan password cipher zhangsan #服务端创建用户名密码 \[R1-aaa\]local-user zhangsan service-type ppp #更改为ppp模式 \[R1\]dis cur \| begin aaa #查看aaa配置 R2: \[R2\]int s1/0/0 \[R2-s1/0/0\]ppp pap local-user zhangsan password cipher zhangsan #使两端模式和用户密码一样,这样两端就能通了 ### 实验2:设置为chap模式(实验1的基础上) R1: \[R1-s1/0/0\]ppp authentication-mode chap #更改为chap模式 R2: \[R2-s1/0/0\]undo ppp pap local-user #清除之前的命令 \[R2-s1/0/0\]ppp chap user zhangsan \[R2-s1/0/0\]ppp chap password cipher zhangsan #设置用户名密码 两边都重启一下接口就能通了 ## 串口封装协议HDLC(High-Level Data Link Control,高级数据链路控制,思科默认使用,华为需配置) ### 华为HDLC基本配置 \[R1\]int s1/0/0 #进入串口 \[R1-s1/0/0\]link-protocol hdlc #更改链路类型 提示输入y \[R1-s1/0/0\]ip add 1.1.1.1 31 #配置IP地址,在点到点链路上31位掩码也能用,网络地址广播地址也能作为普通地址使用 #\[R1-s1/0/0\]ip add unnumbered interface loopback 0 #或者进行接口地址借用,前提是被借用接口已配置IP,这样两个接口地址就一样了 ## PPPoE(PPP over Ethernet,以太网上的点对点协议) **PPPoE协议报文** ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/eaafbafbb2884f6b9479a6c8dabf553e.png) ### PPPoE实验: ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/a51349d513a641f8837687d061a11bbd.png) 模拟企业真实场景,用PPPoE拨号上网,GW使用Easy-ip技术,实现PC上网。 SW: vlan batch 10 20 30 int g0/0/2 port link-type access port default vlan 10 int g0/0/3 port link-type access port default vlan 20 int g0/0/1 port link-type access port default vlan 30 int vlanif10 ip add 192.168.10.254 24 int vlanif20 ip add 192.168.20.254 24 int vlanif30 ip add 192.168.30.1 24 ip route-static 0.0.0.0 0.0.0.0 192.168.30.2 PPPoE-server: int loopback0 ip add 8.8.8.8 32 aaa local-user zhangsan password cipher zhangsan local-user zhangsan service-type ppp ip pool PPPOE network 60.30.1.0 mask 24 dns-list 1.1.1.1 int Virtural-Template 1 ip add 60.30.1.1 24 ppp authentication-mode chap remote address pool PPPOE int g0/0/0 pppoe-server bind Virtural-Template 1 PPPoE-client: int g0/0/1 ip add 192.168.30.2 24 ip route-static 192.168.10.0 24 192.168.30.1 ip route-static 192.168.20.0 24 192.168.30.1 int dialer 1 link-protocol ppp ppp chap user zhangsan ppp chap password cipher xxxxxx ip address ppp-negotiate dialer user thinkmo dialer bundle 1 dialer-group 1 int g0/0/0 pppoe-client dial-bundle-number 1 ip route-static 0.0.0.0 0.0.0.0 dialer 1 dialer-rule dialer-rule 1 ip permit acl 2000 rule permit int dialer 1 nat outbound 2000

相关推荐
就是蠢啊21 分钟前
JVM 概述/结构/架构/生命周期
运维·服务器·jvm
是花花呢22 分钟前
华为hcia——Datacom实验指南——配置IPv4静态路由,默认路由和浮动静态路由
运维·服务器·网络·华为·华为hcia——datacom
Z字小熊饼干爱吃保安25 分钟前
使用LVS的 NAT 模式实现 3 台RS的轮询访问
运维·服务器·lvs
博睿谷IT99_2 小时前
华为HCIE网络工程师培训选机构攻略
网络·程序人生·华为·云原生·容器·hcie
音视频牛哥3 小时前
nginx-rtmp-module之ngx_rtmp_live_module.c代码详解
运维·c语言·nginx·ffmpeg·大牛直播sdk·nginx rtmp代码·nginx rtmp服务器
龚子亦3 小时前
Unity学习之Shader(Phong与Blinn-Phong)
学习·unity·游戏引擎·shader
不吃元西4 小时前
TCP 的 time_wait 有什么作用
服务器·网络·tcp/ip
nenchoumi31195 小时前
Pytorch学习笔记(十二)Learning PyTorch - NLP from Scratch
pytorch·笔记·学习
Waitccy5 小时前
CentOS 7 离线升级 OpenSSH
linux·运维·centos
RockLiu@8055 小时前
PlainUSR|LIA: 追求更快的卷积网络实现高效的超分辨率重建
网络·人工智能·超分辨率重建