![95d59465b24db319dd4168e59473557e.gif](https://i-blog.csdnimg.cn/blog_migrate/9b9cd6a60fb4f8211cde74dcd92d735b.gif)
1.
![29500c1468460833bf2b411ec3df9feb.png](https://i-blog.csdnimg.cn/blog_migrate/93909eb403a09b3c4d1ac09b7c3758b5.jpeg)
配置步骤
(1)配置Device A
system-view
[DeviceA] vlan 100
[DeviceA-vlan100] port gigabitethernet 1/0/1
[DeviceA-vlan100] quit
[DeviceA] vlan 200
[DeviceA-vlan100] port gigabitethernet 1/0/2
[DeviceA-vlan100] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-type trunk
[DeviceA-GigabitEthernet1/0/3] port trunk permit vlan 100 200
配置deviceB与deviceA相同
(2)输入display vlan 100 和display vlan200 查看配置
![00e872e4d804dbe298b70b915a9579db.png](https://i-blog.csdnimg.cn/blog_migrate/747e8f5c51f933343b425e4ac1074c37.jpeg)
2
![2756adff33a042e6763c73c14e4c18ec.png](https://i-blog.csdnimg.cn/blog_migrate/34a7a31a036697d23742e8bf2710ff7d.jpeg)
配置思路
system-vie