这是在 Cisco Packet Tracer 中 - 这不是真正的交换机。
Cisco Switch 2960 上的默认接口配置如下所示
!
interface FastEthernet0/10
!
然后我把它放进去 switchport mode access
!
interface FastEthernet0/10
switchport mode access
!
但是,当我尝试使用 删除它时no switchport mode access
,出现以下错误。
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/10
Switch(config-if)#no switchport mode access
Command rejected: An interface must be configured to the Access or Trunk modes to be configured to NoNegotiate.
Switch(config-if)#
我也试过default interface f0/10
但是没有用
Switch(config)#default interface f0/10
Building configuration...
Command rejected: An interface must be configured to the Access or Trunk modes to be configured to NoNegotiate.
Interface FastEthernet0/10 set to default configuration
Switch(config)#
Switch(config)#do sh run
...
!
interface FastEthernet0/10
switchport mode access
!
...
switchport mode access
从配置中删除的正确方法是什么?