华为模拟器如何实现不同Vlan不同网段之间的互通

如图可以使PC1、PC2、PC3、PC4、PC5、server1、之间可以互相ping通:

实验步骤:
1.配置PC1/PC2/PC3/PC4/PC5的IP,子网掩码,网关如图:

2.配置Switch1如下:
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]vlan 10
[SW1-vlan10]vlan 20
[SW1-vlan20]vlan 30
[SW1-vlan30]q
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW1-GigabitEthernet0/0/1]undo shut
[SW1-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[SW1-GigabitEthernet0/0/1]q
[SW1]interface g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20
[SW1-GigabitEthernet0/0/2]undo shut
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW1-GigabitEthernet0/0/2]q
[SW1]interface g0/0/3
[SW1-GigabitEthernet0/0/3]port link-type ac
[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 30
[SW1-GigabitEthernet0/0/3]undo shut
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[SW1]interface g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/4]undo shutdown
Info: Interface GigabitEthernet0/0/4 is not shutdown.
3.配置Switch2如下:
<Huawei>undo terminal monitor
<Huawei>system-view
[Huawei]sysname SW2
[SW2]vlan 40
[SW2-vlan40]vlan 50
[SW2-vlan50]q
[SW2]interface g0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 40
[SW2-GigabitEthernet0/0/2]undo shutdown
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW2-GigabitEthernet0/0/2]q
[SW2]interface g0/0/3
[SW2-GigabitEthernet0/0/3]port link-type access
[SW2-GigabitEthernet0/0/3]port default vlan 50
[SW2-GigabitEthernet0/0/3]undo shutdown
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[SW2-GigabitEthernet0/0/3]q
[SW2]interface g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]undo shutdown
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
Info: Interface GigabitEthernet0/0/1 is not shutdown.
4.配置Switch3如下:
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>system-view
[Huawei]sysname SW3
[SW3]vlan 10
[SW3-vlan10]vlan 20
[SW3-vlan20]vlan 30
[SW3-vlan30]vlan 40
[SW3-vlan40]vlan 50
[SW3-vlan50]q
[SW3]interface vlan 10
[SW3-Vlanif10]ip address 10.0.0.254 255.0.0.0
[SW3-Vlanif10]undo shutdown
Info: Interface Vlanif10 is not shutdown.
[SW3-Vlanif10]q
[SW3]interface vlan 20
[SW3-Vlanif20]ip address 20.0.0.254 255.0.0.0
[SW3-Vlanif20]undo shutdown
Info: Interface Vlanif20 is not shutdown.
[SW3-Vlanif20]q
[SW3]interface vlan 30
[SW3-Vlanif30]ip address 30.0.0.254 255.0.0.0
[SW3-Vlanif30]undo shutdown
Info: Interface Vlanif30 is not shutdown.
[SW3-Vlanif30]q
[SW3]interface vlan 40
[SW3-Vlanif40]ip address 40.0.0.254 255.0.0.0
[SW3-Vlanif40]undo shutdown
Info: Interface Vlanif40 is not shutdown.
[SW3-Vlanif40]q
[SW3]interface vlan 50
[SW3-Vlanif50]ip address 50.0.0.254 255.0.0.0
[SW3-Vlanif50]undo shutdown
Info: Interface Vlanif50 is not shutdown.
[SW3-Vlanif50]q
[SW3]interface g0/0/1
[SW3-GigabitEthernet0/0/1]port link-type trunk
[SW3-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW3-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[SW3-GigabitEthernet0/0/1]q
[SW3]interface g0/0/2
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]undo shutdown
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan all
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[SW3]vlan 60
[SW3-vlan60]q
[SW3]interface g0/0/3
[SW3-GigabitEthernet0/0/3]port link-type access
[SW3-GigabitEthernet0/0/3]port default vlan 60
[SW3-GigabitEthernet0/0/3]undo shutdown
[SW3]interface vlan 60
[SW3-Vlanif60]ip address 60.0.0.1 255.0.0.0
5.配置R1如下
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1-GigabitEthernet0/0/0]ip address 60.0.0.2 255.0.0.0
[R1-GigabitEthernet0/0/0]undo shut
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]q
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 70.0.0.254 255.0.0.0
[R1-GigabitEthernet0/0/1]undo shut
Info: Interface GigabitEthernet0/0/1 is not shutdown.
6.配置server1如图:

7.在R1配置默认路由:

8.在SW3上配置静态路由:

结果验证如图:

原文地址:http://blog.51cto.com/13568842/2059667

时间: 2024-10-09 23:12:47

华为模拟器如何实现不同Vlan不同网段之间的互通的相关文章

华为三层交换机如何实现不同Vlan不同网段之间的互通

实验目标:如图可以使PC1.PC2.PC3.PC4.PC5.server1.之间可以互相ping通实验步骤:1.配置PC1/PC2/PC3/PC4/PC5的IP,子网掩码,网关如图:2.配置Switch1如下:<Huawei>undo terminal monitor Info: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Hu

华为模拟器实现简单VLAN的搭建

随着交换机端口数量的增多,网络中的广播也增多,降低了网络的效率.交换机只能实现冲域的分割,无法实现广播域的分割.通过在交换机上配置vlan可以实现广播域的分割. 环境部署:安装eNSP的PC机一台拓扑图1)先将所需的设备添加到拓扑区,并连上网线启动.2)将四台PC机配置IP地址分别为:192.168.1.1/2/3/4,子网掩码都为255.255.255.0,并标识每台主机的IP地址.3)进入交换机配置:新建VLAN2和VLAN3,命令如下:system-view //进入系统视图vlan ba

华为模拟器实验单臂路由+动态地址池

华为单臂路由+动态地址池 实验拓扑: 实验目的:单臂路由实现动态地址池自动分配IP地址,并能连通. 实验步骤:1.首先如图,接好线,为交换机LSW1新增vlan10 ,vlan20,分配给e0/0/1和e0/0/2接口.为g0/0/1接口设置为中继口. 2.为路由器AR1的g0/0/1分别划为两个子接口,作为vlan 10 ,vlan20的网关,开启广播. 3.为2个子接口设置动态地址池. 4.双击c1,c2将ipv4配置为dhcp方式.进入命令行,用ipconfig命令查看,发现IP地址已经自

HCL模拟器 Primary VLAN 及 Super VLAN

一.Primary VLAN 1. 组网需求 ? Device B 上的VLAN 5 和VLAN 10 为Primary VLAN,其上行端口GigabitEthernet1/0/1需要允许VLAN 5 和VLAN 10 的报文携带VLAN Tag 通过.? Device B 的下行端口GigabitEthernet1/0/2 允许Secondary VLAN 2 通过,GigabitEthernet1/0/3 允许Secondary VLAN 3 通过,VLAN 2 和VLAN 3 映射到Pr

华为模拟器eNSP安装(最新)网络工程师必备!

电脑杂七杂八的东西太多了,于是今天把电脑重装系统了,正好重新安装一下华为模拟器eNSP,这个教程应该是最新的,因为eNSP版本更新以及华为官网页面的变化,有的小伙伴安装eNSP都下载不到安装包,接下来就告诉大家从头安装的步骤.步骤比较长,耐心看下去能装好的. 华为模拟器eNSP安装前需要电脑上提前装一些工具,没有的话到时候再装也行. 准备工具:wireshark.winpcap.virtualbox(这些都可以直接在浏览器搜索然后进入官网下载,下面教程中会以winpcap为例介绍) 下面正式进入

没有真机环境!小白同学怎么使用华为模拟器ensp模拟真机环境来实现需求

1.如何正确安装华为模拟器ENSP来模拟真机环境 下载华为ensp的途径 1.百度云盘下载华为ensp 链接:https://pan.baidu.com/s/1JQtoHsObvpRMA16tbUo4PQ 提取码:n7q3 注意:推荐大家安装V1R2版本的ENSP,这个版本的安装相对于V1R3来说的话,不需要自己去下载额外的软件 2.可以在华为官方网站上进行下载 http://support.huawei.com/enterprisesearch/ebgSearch#keyword=ENSP&l

使用WANem模拟不同网段之间的广域网环境

使用WANem模拟不同网段之间的广域网环境 网上找到的案例都是如下图所示,Developers2 与Development Server 位于同一网段的例子,不符合我现有测试需求,因为只有一台笔记本模拟广域网环境,并且该笔记本只有一块网卡无法使用**等要求双网卡的软件.所以决定对WANem的例子进行改造以符合我现有测试需求. 测试环境为Developers 2为194.128.32.0/24网段,DevelopmentServer为192.10.214.0/24网段. 具体相关基础配置可参见ht

华为交换机的VLAN划分 和带宽限速,华为模拟器

批量创建VLAN查看VLAN模板限速模板限速trunk 模式,就是实现vlan 托传创建一个动作创建一个行为创建一个限速创建一个规则把动作跟行为绑在一起在接口下限速 原文地址:http://blog.51cto.com/13730321/2301652

eNSP 华为模拟器拓扑图搭建,静态路由设置,远程登录设置

上一篇跟大家介绍了一篇思科设备的静态路由和远程登录此篇就跟大家介绍华为设备的操作吧 eNSP软件去华为官网下载,免费的,这里就不提供下载链接了[思科终究是会被挤出中国市场的将来是华为的市场,多练练华为设备吧] (心得分享:模拟器终究只是软件,不同于真实设备的稳定,会出不少问题,最常见的就是报错信息了,这里建议那些不太懂调试的人,如果系统盘空间充足的话,不妨把软件安装到C盘里面,能解决不少问题,软件并不大不会占用多少内存空间)华为设备只有两种视图模式:一种是用户视图<Huawei>一种是系统视图