ensp如何连线

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ensp如何连线相关的知识,希望对你有一定的参考价值。

连在哪里??找不到..

ensp连线方式如下:

1、首先打开ensp模拟器,然后创建路由器和pc。

2、然后连接路由器和pc,再打开连接端口。

3、然后打开pc,再配置Ipv4地址。

4、然后选择路由器,再进入系统视图。

5、然后进入端口,再配置ip地址。

6、然后用ping检查连接,这样路由器和pc就可以互通了。

参考技术A 连线很简单啊 你先将要用的设备选出来 然后你看左上角有一个闪电状的标志 里面就是很多种类的线 你需要用哪种就选哪种 然后左键点击你要用的线 再移动到你要连得设备上 点击一下 然后选择所要连接的端口就行了本回答被提问者采纳

华为 eNSP—交换机配置(三层)

1 先创建如图 的网络拓扑图

1.1 需要设备:

	交换机:S5700(1个)、S3700(2个)、
	终端:PC(8个)

1.2 按照接口连线:

				所有接口已显示

2 配置 交换机

2.1 LSW6:

关闭配置提示:< Huawei > undo terminal monitor

命令行如下( LSW6 ):
The device is running!

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]dis this
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
return
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int vlanif 10
[Huawei-Vlanif10]ip addr 192.14.10.1 24

[Huawei-Vlanif10]int vlanif 20
[Huawei-Vlanif20]ip addr 192.14.20.1 24
[Huawei-Vlanif20]int vlanif 30
[Huawei-Vlanif30]ip addr 192.14.30.1 24
[Huawei-Vlanif30]int vlanif 40
[Huawei-Vlanif40]ip addr 192.14.40.1 24
[Huawei-Vlanif40]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]Y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 21:43:37-08:00 Huawei %%01CFM/4/SAVE(l)[12]:The user chose Y when de
ciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

导出设备配置并保存(重点:不保存,下次打开就会出现丢失配置的情况

2.2 LSW4、LSW5:

	  两者命令行一样(注意接口变一下) 
代码如下( LSW4 ):
The device is running!

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit

[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[Huawei-GigabitEthernet0/0/1]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port def vlan 10

[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port def vlan 10

[Huawei-Ethernet0/0/2]int e0/0/6
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-Ethernet0/0/6]port def vlan 20

[Huawei-Ethernet0/0/6]int e0/0/7
[Huawei-Ethernet0/0/7]port link-type access
[Huawei-Ethernet0/0/7]port def vlan 20

[Huawei-Ethernet0/0/7]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 22:13:40-08:00 Huawei %%01CFM/4/SAVE(l)[4]:The user chose Y when dec
iding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>
代码如下( LSW5 ):
The device is running!

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit

[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[Huawei-GigabitEthernet0/0/1]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port def vlan 30

[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port def vlan 30

[Huawei-Ethernet0/0/2]int e0/0/6
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-Ethernet0/0/6]port def vlan 40

[Huawei-Ethernet0/0/6]int e0/0/7
[Huawei-Ethernet0/0/7]port link-type access
[Huawei-Ethernet0/0/7]port def vlan 40

[Huawei-Ethernet0/0/7]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 22:13:40-08:00 Huawei %%01CFM/4/SAVE(l)[4]:The user chose Y when dec
iding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

3 配置 终端(PC)

	 【XX:可自己随意设置】
	 VLAN 10: 
	 			PC1(192.XX.10.2)
	 			PC2(192.XX.10.3)

	VLAN 20: 
				PC3(192.XX.20.2)
				PC4(192.XX.20.3)

	VLAN 30: 
	 			PC4(192.XX.30.2)
	 			PC5(192.XX.30.3)
	VLAN 40: 
	 			PC6(192.XX.40.2)
	 			PC7(192.XX.40.3)

4 验证 (ping命令)

	此处用 vlan 30 中的 PC6(192.XX.40.2) 
		分别 ping vlan 10 和 vlan 40
			结果 ping 通 配置完成!

5 补充 (部分命令意义)

如果网关设置错了 先删除再配置  
			可用命令 undo ip addr 


导出设备配置并保存(重点:不保存,下次打开就会出现丢失配置的情况

	小编就曾因为没有保存导出配置 
				而重新配置过好几次 引以为戒啊!!!

最后的最后 如有问题 欢迎各位指正!!!

以上是关于ensp如何连线的主要内容,如果未能解决你的问题,请参考以下文章

ensp中各种线的区别

markdown [键盘快捷键]我的大脑是如何连线的

matlab散点连线怎么连?

Windows Mobile 模拟器如何设置网络连线

如何在 ruby​​ 中执行 XMLRPC::Client 的连线转储?

如何使WPF的TreeView节点之间有连线