设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 3898|回复: 9
收起左侧

[求助] 关于show interface status命令的问题?

[复制链接]
发表于 2016-9-16 18:45:16 | 显示全部楼层 |阅读模式
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中怎样?
发表于 2016-9-16 18:45:17 | 显示全部楼层
接口状态只有4种:connected\notconnect\disabled\err-disabled,没有inactive的状态。把vlan给no掉,接口会down,300-115题库中有类似的。但是在Packet Tracer中做实验没down。我做过。不知道GNS中怎样?

评分

参与人数 1好评度 +1 收起 理由
ccnafasttrack + 1 很给力!

查看全部评分

沙发 2016-9-16 18:45:17 回复 收起回复
回复

使用道具 举报

发表于 2016-9-16 19:11:13 | 显示全部楼层
你下面的端口有连接设备吗?交换机默认连接设备就会UP UP状态 跟你是不是在某个vlan没有关系
板凳 2016-9-16 19:11:13 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-9-16 21:37:59 | 显示全部楼层
liyong1902 发表于 2016-9-16 19:18
接口状态只有4种:connected\notconnect\disabled\err-disabled,没有inactive的状态。把vlan给no掉,接口 ...

IOU4#show interface status ?
  err-disabled  Show interface error disabled state
  inactive      Show interface inactive state
  module        Limit display to interfaces on module
  |             Output modifiers
  <cr>

IOU4#show interface status
但是在IOU上show interface status 后面可以跟inactive啊?inactive不能算一种接口状态?
地板 2016-9-16 21:37:59 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-9-16 21:39:02 | 显示全部楼层
liyong1902 发表于 2016-9-16 19:18
接口状态只有4种:connected\notconnect\disabled\err-disabled,没有inactive的状态。把vlan给no掉,接口 ...

另外使用show interface e1/1 switchport,access mode vlan 10后面也是inactive啊?
5# 2016-9-16 21:39:02 回复 收起回复
回复

使用道具 举报

发表于 2016-9-17 10:53:27 | 显示全部楼层
inactive应该不是指接口的物理状态

点评

very good  发表于 2016-9-17 14:58

评分

参与人数 1好评度 +1 收起 理由
ccnafasttrack + 1 很给力!

查看全部评分

6# 2016-9-17 10:53:27 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-9-17 14:55:56 | 显示全部楼层
liyong1902 发表于 2016-9-16 18:45
接口状态只有4种:connected\notconnect\disabled\err-disabled,没有inactive的状态。把vlan给no掉,接口 ...

这在之前还真不清楚~
7# 2016-9-17 14:55:56 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-9-17 14:56:25 | 显示全部楼层
Rockyw 发表于 2016-9-17 10:53
inactive应该不是指接口的物理状态

以前还真不晓得
8# 2016-9-17 14:56:25 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-5-5 15:36 , Processed in 0.073933 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表