|
5鸿鹄币
为什么我将E1/1接口挂载到VLAN 10下,然后把VLAN 10给删掉,按道理说使用show interface status inactive会显示出该接口处于inactive状态,但是如图所示,依然为connected,请问这是肿么回事?
IOU4(config)#inter e1/1
IOU4(config-if)#no shut
IOU4(config-if)#se
IOU4(config-if)#sw
IOU4(config-if)#switchport mode ac
IOU4(config-if)#switchport mode access
IOU4(config-if)#sw
IOU4(config-if)#switchport ac
IOU4(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
IOU4(config-if)#exit
IOU4(config)#no vlan 10
IOU4(config)#end
IOU4#show
*Sep 16 10:42:14.762: %SYS-5-CONFIG_I: Configured from console by console
IOU4#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/0, Et0/1, Et0/2, Et0/3
Et1/0, Et1/2, Et1/3, Et2/0
Et2/1, Et2/2, Et2/3, Et3/0
Et3/1, Et3/2, Et3/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
IOU4#show interface status
Port Name Status Vlan Duplex Speed Type
Et0/0 connected 1 auto auto unknown
Et0/1 connected 1 auto auto unknown
Et0/2 connected 1 auto auto unknown
Et0/3 connected 1 auto auto unknown
Et1/0 connected 1 auto auto unknown
Et1/1 connected 10 auto auto unknown
Et1/2 connected 1 auto auto unknown
Et1/3 connected 1 auto auto unknown
Et2/0 connected 1 auto auto unknown
Et2/1 connected 1 auto auto unknown
Et2/2 connected 1 auto auto unknown
Et2/3 connected 1 auto auto unknown
Et3/0 connected 1 auto auto unknown
Et3/1 connected 1 auto auto unknown
Et3/2 connected 1 auto auto unknown
Et3/3 connected 1 auto auto unknown
IOU4#show interface e1/1 sw
IOU4#show interface e1/1 switchport
Name: Et1/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 10 (Inactive)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Appliance trust: none
IOU4# show run
IOU4# show running-config
Building configuration...
Current configuration : 1575 bytes
!
! Last configuration change at 10:42:14 UTC Fri Sep 16 2016
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname IOU4
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ipv6 cef
ipv6 multicast rpf use-bgp
no ip icmp rate-limit unreachable
!
no ip domain-lookup
ip cef
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
duplex auto
!
interface Ethernet0/1
duplex auto
!
interface Ethernet0/2
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Ethernet1/0
duplex auto
!
interface Ethernet1/1
switchport access vlan 10
switchport mode access
duplex auto
!
interface Ethernet1/2
duplex auto
!
interface Ethernet1/3
duplex auto
!
interface Ethernet2/0
duplex auto
!
interface Ethernet2/1
duplex auto
!
interface Ethernet2/2
duplex auto
!
interface Ethernet2/3
duplex auto
!
interface Ethernet3/0
duplex auto
!
interface Ethernet3/1
duplex auto
!
interface Ethernet3/2
duplex auto
!
interface Ethernet3/3
duplex auto
!
interface Vlan1
no ip address
shutdown
!
!
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end
IOU4#
|
最佳答案
查看完整内容
接口状态只有4种:connected\notconnect\disabled\err-disabled,没有inactive的状态。把vlan给no掉,接口会down,300-115题库中有类似的。但是在Packet Tracer中做实验没down。我做过。不知道GNS中怎样?
|