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

华为ENSP基础实验

目录

实验要求:实现内外网服务器互访

LSW3:

LSW4:

LSW1:

LSW2:

AR1:

AR2:

AR3:

访问测试:


超级简单的基础实验,可以用来练练手,巩固知识点。

实验要求:实现内外网服务器互访

需要用到的技术点:Easy-ip,NATServer,链路聚合,OSPF

内网网段:192.168.2.0,192.168.3.0,100.0.0.0,200.0.0.0

外网网段:10.0.0.0,20.0.0.0,30.0.0.0

那么接下来就是详细配置!!!


LSW3:
vlan batch 2 3 10
int e0/0/1
port link-t a
port default vlan 2

int e0/0/2
port link-t t
port t all vlan all

int e0/0/3
port link-t t
port t all vlan all
LSW4:
vlan batch 2 3 10
int e0/0/1
port link-t a
port default vlan 3

int e0/0/2
port link-t t
port t all vlan all

int e0/0/3
port link-t t
port t all vlan all
LSW1:
vlan batch 2 3 10
int vlan 2
ip add 192.168.2.1 24
int vlan 3
ip add 192.168.3.1 24
int vlan 10
ip add 100.0.0.1 24

int g0/0/1
port link-t t
port t all vlan all

int g0/0/2
port link-t t
port t all vlan all

int g0/0/5
port link-t a
port default vlan 10

int g0/0/6
port link-t a
port default vlan 1
int vlan 1
ip add 200.0.0.1 24

int Eth-Trunk 1
port link-t t
port t all vlan all
int g0/0/3
eth-trunk 1
int g0/0/4
eth-trunk 1

ospf
area 0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
network 100.0.0.0 0.0.0.255
network 200.0.0.0 0.0.0.255
LSW2:
vlan batch 2 3 10

int g0/0/1
port link-t t
port t all vlan all

int g0/0/2
port link-t t
port t all vlan all

int Eth-Trunk 1
port link-t t
port t all vlan all
int g0/0/3
eth-trunk 1
int g0/0/4
eth-trunk 1

ospf
area 0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
AR1:
int g0/0/0
ip add 200.0.0.2 24

int g0/0/1
ip add 10.0.0.1 24

ospf 
area 0
network 200.0.0.0 0.0.0.255

acl 3000
rule permit ip source 192.168.2.0 0.0.0.255
rule permit ip source 192.168.3.0 0.0.0.255

int g0/0/1
nat outbound 3000
nat server protocol tcp global current-interface www inside 100.0.0.100 www


ip route-static 0.0.0.0 0 10.0.0.2

ospf
default-route-advertise always 
silent-interface g0/0/1
import-route static 
AR2:
int g0/0/0
ip add 10.0.0.2 24

int g0/0/1
ip add 20.0.0.1 24
AR3:
int g0/0/0
ip add 20.0.0.2 24

int g0/0/1
ip add 30.0.0.1 24

acl 3000
rule permit ip source 30.0.0.0 0.0.0.255

int g0/0/0
nat outbound 3000
nat server protocol tcp global current-interface www inside 30.0.0.100 www

ip route-static 0.0.0.0 0 20.0.0.1


访问测试:

开启内外网服务器,然后开始访问(可以先全网ping,ping通后再访问)


内网访问外网服务器:

内网ping外网,只能ping到20.0.0.0网段

外网访问内网服务器:

外网ping内网只能ping到10.0.0.0网段

那么实验到这里就完美结束了⭐⭐⭐!!!


http://www.kler.cn/news/363468.html

相关文章:

  • ZYNQ AXI_GPIO_INT
  • MusePose模型部署指南
  • 管理类联考 信息整理和经验分享
  • 解锁文本数据可视化的无限可能:Wordcloud库全解析
  • 初始JavaEE篇——多线程(2):join的用法、线程安全问题
  • JVM 加载 class 文件的原理机制
  • 【电机应用】变频器控制——变频水泵、变频空调
  • VMware Workstation Pro 16 搭建 android-x86过程问题罗列
  • 【可看】On the Generalization of GAN Image Forensics
  • 实战OpenCV之兴趣点检测
  • Netty核心组件
  • 使用 VSCode 通过 Remote-SSH 连接远程服务器详细教程
  • 智能巡检机器人的大模型训练
  • 没有B柱?极氪MIX太大胆了!
  • vue3中watch监听const定义的常亮undefined
  • 常见的数据库删除方法
  • 工业4G路由钡铼技术R40B智慧城市智能照明控制
  • Vue3 Echarts中国地图(包含轮播高亮区域)
  • 一文读懂:Session、Cookie与Token
  • 【软件安装与配置】Redis for Windows
  • 基于深度学习的在线小分子Kinome选择性预测平台的Python实现详解
  • 龙迅#LT89101 适用于 MIPI DSI/CSI摄像头和 LVDS 中继信号延长功能,分辨率可支持 1080P@60HZ!
  • ES推荐搜索、自动补全,并且springBoot集成
  • 1024,说点什么
  • 顶层const与底层const的区别
  • 【哲学和历史】-1《西方现代思想史》读书笔记