实现相同vlan的通信
Lsw1需配置:
1.分别进入e0/0/1与e0/0/2接口配置access接口类型
2.将pc1、pc2的vlan加入到access接口中
int e0/0/1
port link-type access
port default vlan 10
int e0/0/2
port link-type access
port default vlan 20
Lsw2需配置:
1.分别进入e0/0/3与e0/0/4接口配置access接口类型
2.将pc1、pc2的vlan加入到access接口中
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 20
通过以上配置我们还是能不能实现相同Vlan的通信,因为我们需要在交换机与交换机的接口中配置trunk接口类型,目的是为了能够让多个vlan的数据帧通过,这些数据真通过tag区分开
分别在两个交换机端口出配置trunk接口类型实现不同vlan数据帧通过
int e0/0/3
port link-type trunk
port trunk allow-pass vlan all (all意思为让所有的vlan通过)
实现Vlan间的通信
最新推荐文章于 2024-06-19 17:29:41 发布
本文详细介绍了如何在Lsw1和Lsw2交换机上配置access和trunk接口,以便不同VLAN间的PC能够通信。首先,配置access接口加入PC的VLAN,然后在Lsw2的e0/0/3和e0/0/4接口启用trunk模式,允许所有VLAN通过。这将确保跨VLAN的数据帧有效传输。
摘要由CSDN通过智能技术生成