Quick tip: VLAN interface status
Vijay sent me this question a while ago:
I have configured a L3 VLAN interface on a Cisco 3750 switch and assigned an IP address to it. I haven't assigned any ports to this VLAN. Why am I not able to ping the IP address of the VLAN interface from the switch itself?
The VLAN interface (like any other interface) has layer-1 and layer-2 state.
The layer-1 state is displayed in the Status column of the show ip interface brief command, the layer-2 state in the Protocol column.
A VLAN interface is always up, but its line protocol state tracks the state of attached ports: if at least one port is operational, the line protocol of the VLAN interface is up, otherwise it’s down. With no ports assigned to a VLAN, the line protocol of the VLAN interface is down, its IP address is not in the IP routing table and thus you cannot ping it.
This article is part of You've asked for it series.
no keepalive in the interface vlan so it will remain up and also write ip routing to activate inter vlan routing.
kind regards
The vlan is created (show vlan brief)
At least one port that is associated to that VLAN is up
OR
The no keepalive option is enabled.
Dont forget this also includes trunk ports. I see this from time to time.
http://www.cisco.com/en/US/products/hw/switches/ps700/products_tech_note09186a0080160b14.shtml
http://blog.ioshints.info/2009/07/followup-vlan-interface-status.html
maybe you can comment on the following case:
I have a vlan subinterface that always remains up
the client route attached to the subinterface will always be advertised by my IGP from this subinterface even when the remote CPE is down
Is there anyway to get a vlan subinterface to go down if the mac adresse of the remote CPE disparrears?
thanks
Got a question , Please help out
Vlan 99 UP DOWN <-- --> Will this happen if one or a few ports is down in the in the vlan ? Or if all ports down ?