我正在设置一台 2960 思科交换机,我将 gi1/0/1 配置为中继端口,但命令不起作用:
switchport mode trunk
switchport trunk allowed vlan 1-10
我看到这个配置在show run
:
interface GigabitEthernet1/0/1
switchport trunk allowed vlan 1-10
switchport mode trunk
但界面正常工作vlan 1
并且我看到此状态show interface g1/0/1 trunk
:
Port Mode Encapsulation Status Native vlan
Gi1/0/1 on 802.1q other 1
Port Vlans allowed on trunk
Gi1/0/1 none
Port Vlans allowed and active in management domain
Gi1/0/1 none
Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/1 none
答案1
问题出在电缆上,如果电缆损坏,中继端口配置将保留在 vlan 1 中并且无法工作。