TRUNK(中继)
- SW1配置
vlan data vl 2 vl 3 exit config t int range f1/0 - 15 no sh int f1/1 switchport access vlan 2 int f1/2 sw ac vl 3 int f1/0 switchport mode trunk end show int f1/0 switchport
- SW2配置
vlan data vl 2 vl 3 exit config t int range f1/0 - 15 no sh int f1/1 switchport access vlan 2 int f1/2 sw ac vl 3 int f1/0 switchport mode trunk end show int f1/0 switchport
- 测试
PC1ping PC3
PC2ping PC4
PC1ping PC2(不通就对了)
- 在中继中取消某一VLAN的传输,如VLAN2
conf t int f1/0 switchport trunk allowed vlan remove 2 end show int f1/0 switchport
温馨提示:如无特殊说明,本站文章均为作者原创,转载时请注明出处及相应链接!