(启用生成树rstp,将二层设为根交换机
评分:ruijie#sh spanning-tree)
二层&三层:int fa0/3
sw mode tr
exit
spanning-tree
spanning-tree mode rstp
exit
二层:spanning-tree priority 4096
exit
sh spanning-tree(root cost:18000 rootport)
三层:int fa0/3
spanning-tree cost 1800
exit
sh spanning-tree (root cost:180000 rootport)
4:创建四个vlan(评分:ruijie#sh vlan)
Ruijie(config)#vlan 11
Ruijie(config)#int f0/11
Ruijie(config-FastEthernet 0/11)#switchport mode access
Ruijie(config-FastEthernet 0/11)#switchport access vlan 11
Ruijie(config-FastEthernet 0/11)#exit
Ruijie(config)#sh vlan
5:vlan33的数据包不打标签,vlan44的数据包无法通过交换机的链路
int agg 1
sw trunk native vlan33
sw trunk allowed vlan remove 44
原文链接:https://www.f2er.com/javaschema/283457.html