华为模拟器eNSP双核心校园网规划与设计
拓扑图
一、PC配置IP地址
pc1:192.168.10.1/24 gateway:192.168.10.254
pc2:192.168.20.1/24 gateway:192.168.20.254
二、设备更改名字
sys //进入系统模式
sys SW1 //改名为SW1
undo info enable //关闭提示信息
三、设备上的操作
(1)vlan的创建
#vlan batch 10 20//创建vlan10和vlan20
int e0/0/11
port link-type access
port default vlan 10 //在e0/0/11端口配置access模式,并加到vlan10
quit
int e0/0/12
port link-type access
port default vlan 20//在e0/0/12端口配置access模式,并加到vlan20
quit
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all//在e0/0/1端口配置trunk模式,允许所有vlan的pc通过
quit
int e0/0/2
port link-type trunk