计算机网络实验-配置交换机
软件:eNSP
连接好实验图,配置好PC机IP地址和网关,注意每台PC机的IP地址要不同
1端口聚合
打开交换机终端
关闭最小生成树搜索:
unduo stp enable
端口聚合:(以上述端口为例)
Interface Eth-Trunk 1
trunkport g0/0/23
trunkport g0/0/24
2 不同部门的电脑可以进行通信,不同部门的不可以
利用vlan进行设置PC1 PC3 为同一部门,PC2 PC4 为同一部门
对左边:
int g0/0/1
port link-type access
vlan2
port g0/0/1
int g0/0/2
port link-type access
vlan3
port g0/0/2
对右边
```cpp
int g0/0/1
port link-type access
vlan2
port g0/0/1
int g0/0/2
port link-type access
vlan3
port g0/0/2
隔离做好了做连接:
左端交换机
int Eth-Trunk 1
port-link-type trunk
port trunk allow-pass vlan all
右端交换机:
```cpp
int Eth-Trunk 1
port-link-type trunk
port trunk allow-pass vlan all
就达到目的了