当前位置: 首页 > news >正文

HCIP作业3

题目

配置IP地址

R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[r1-Serial4/0/0]ip add 12.1.1.1 24     
 

R2
[r2]int s4/0/0
[r2-Serial4/0/0]ip add 12.1.1.2 24
[r2-Serial4/0/0]int s4/0/1
[r2-Serial4/0/1]ip add 32.1.1.1 24
[r2-Serial4/0/1]int s3/0/0
[r2-Serial3/0/0]ip add 42.1.1.1 24
[r2-Serial3/0/0]int l0
[r2-LoopBack0]ip add 2.2.2.2 24


R3
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.2.1 24 
[r3-GigabitEthernet0/0/1]int s4/0/0
[r3-Serial4/0/0]ip add 32.1.1.2 24


R4
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[r4-GigabitEthernet0/0/1]int s4/0/0
[r4-Serial4/0/0]ip add 42.1.1.2 24

HDLC封装

R1
[R1-Serial4/0/0]link-protocol hdlc
R2
[r2-Serial4/0/0]link-protocol hdlc

PPP封装及其PAP认证

R2
[r2]aaa 
[r2-aaa]local-user r2 privilege level 15 password cipher 123456
[r2-aaa]local-user r2 service-type ppp
[r2]int s4/0/1
[r2-Serial4/0/1]ppp authentication-mode pap


R3
[r3]int s4/0/0
[r3-Serial4/0/0]ppp pap local-user r2 password cipher 123456

ppp封装及chap认证

R2
[r2]aaa
[r2-aaa]local-user wym privilege level 15 password cipher 123456
[r2-aaa]local-user wym service-type ppp
[r2-aaa]int s3/0/0
[r2-Serial3/0/0]ppp authentication-mode chap 

R4
[r4]int s4/0/0 
[r4-Serial4/0/0]ppp chap password cipher 123456
[r4-Serial4/0/0]ppp chap user wym 

构建MGRE环境

R1
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre  p2mp 
[r1-Tunnel0/0/0]source 12.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 
[r1-Tunnel0/0/0]nhrp network-id 100


R3
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/2
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register 


R4
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]ip add 10.1.1.4 255.255.255.0 
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r4-Tunnel0/0/0]source GigabitEthernet 0/0/2
[r4-Tunnel0/0/0]nhrp network-id 100
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register 

配置NAT协议

R1
[r1]int s4/0/0
[r1-Serial4/0/0]nat static global 12.1.1.3 inside 192.168.1.2 netmask 255.255.255.255


R3
[r3]int s4/0/0 
[r3-Serial4/0/0]nat static global 32.1.1.3 inside 192.168.2.2 netmask 255.255.255.255


R4
[r4]int s4/0/0
[r4-Serial4/0/0]nat static global 42.1.1.3 inside 192.168.3.2 netmask 255.255.255.255


配置RIP协议

R1
[r1]rip 
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0

[r1-Tunnel0/0/0]undo rip split-horizon


R3
[r3]rip
[r3-rip-1]version 2
[r3-rip-1]network 192.168.2.0
[r3-rip-1]network 10.0.0.0


R4
[r4]rip         
[r4-rip-1]version 2
[r4-rip-1]network 192.168.3.0 
[r4-rip-1]network 10.0.0.0

http://www.lryc.cn/news/108028.html

相关文章:

  • 【测试学习三】软件测试的生命周期 BUG的相关知识
  • git rebase 的坑儿
  • SSM(Vue3+ElementPlus+Axios+SSM前后端分离)【四】
  • iPhone 8 Plus透明屏应用范围详解
  • 【前端面试手撕题】instanceof、Array.map、Array.filter、Array.reduce、_objectCreate
  • 8.物联网操作系统之事件标志组
  • [腾讯云Cloud Studio实战训练营]无门槛使用GPT+Cloud Studio辅助编程完成Excel自动工资结算
  • 局域网ssh登录windows自带Linux系统(WSL)踩坑记录
  • 2023-02-03——2023-08-03,半年以来与客服交流的记录【CSND 文章撰写 网站使用求解】客服咨询交流记录(长期更新ing)
  • DCL 操作
  • C++11移动构造函数详解
  • 【力扣】19. 删除链表的倒数第 N 个结点 <链表指针、快慢指针>
  • Vue3和typeScript路由传参
  • SQLserver数据库巡检脚本
  • Go Ethereum源码学习笔记 001 Geth Start
  • idea如何加快创建Maven项目的速度
  • 软件外包开发的GO开发框架
  • oracle会话打满
  • VSCode自定义闪烁光标
  • 复亚智能打造全新云平台:让无人机任务管理更智能、更简单
  • 编程导航第六关——白银挑战
  • 743. 网络延迟时间
  • Kubernetes高可用集群二进制部署(四)部署kubectl和kube-controller-manager、kube-scheduler
  • 在CSDN学Golang场景化解决方案(微服务架构设计)
  • centos7 yum安装mysql5.7
  • 安防视频汇聚平台EasyCVR视频广场面包屑侧边栏支持拖拽操作
  • 爬虫007_python中的输出以及格式化输出_以及输入---python工作笔记025
  • 485modbus转profinet网关连三菱变频器modbus通讯触摸屏监控
  • 话费充值接口文档
  • windows系统的IP、路由、网关、内外网同时访问路由以及修改系统文件hosts的配置