TRUNK(中继)

作者: admin 分类: 网络 发布时间: 2019-04-29 00:16 浏览:645 次    

%title插图%num

  • 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(不通就对了)

%title插图%num

  • 在中继中取消某一VLAN的传输,如VLAN2
conf t

int f1/0

switchport trunk allowed vlan remove 2

end

show int f1/0 switchport

%title插图%num

 


温馨提示:如无特殊说明,本站文章均为作者原创,转载时请注明出处及相应链接!

发表评论