VLAN间通信之三层交换机
使用VLANIF技术实现VLAN之间的通信
三层交换机和VLAN接口
1、二层交换机指的是只具备二层交换功能的交换机
2、三层交换机除了具备二层交换机的功能,还支持通过三层接口(如VLANIF接口)实现路由转发功能
3、VLAN IF是一种三层逻辑接口,支持VLAN Tag的剥离与添加,因此可以通过VLANIF接口实现VLAN之间的通信
4、VLANIF接口编号与所对应的VLAN ID 相同,如VLAN 10对应VLANIF 10
![](https://img-blog.csdnimg.cn/img_convert/c86225cd9c39e040ab58678c5c39a8b6.png)
VLAN IF的转发流程
![](https://img-blog.csdnimg.cn/img_convert/5e47a1f9e7687a84b4e0e42ff09d0525.png)
![](https://img-blog.csdnimg.cn/img_convert/f911fc6b66081e11e6c68069f09f5d02.png)
三层通信过程解析
链接逻辑图
![HYuB28.png](https://img-blog.csdnimg.cn/img_convert/f7bde2e85c25a71992c2028d41bce2aa.png)
通信过程
1、
![](https://img-blog.csdnimg.cn/img_convert/02434bf409f18e1b1ee6dccb40db8d72.png)
2、
![](https://img-blog.csdnimg.cn/img_convert/9937c7474a88890031ec0c9394d97e75.png)
3、
![HYKVRf.png](https://img-blog.csdnimg.cn/img_convert/62d37b933f05805e0920aad83a621816.png)
4、
![HYKmQS.png](https://img-blog.csdnimg.cn/img_convert/1aabbb1929a134d05233427a65e12e9a.png)
5、
![](https://img-blog.csdnimg.cn/img_convert/35fe0348d45c285e96e54043cc476d1b.png)