VLAN question

workfrom925workfrom925 Member Posts: 196
The following is part of a switch's running config. As I can see, there is Vlan99 with ip address 172.17.99.32. Why isn't Vlan99 listed as one of the vlans when I issue "show vlans"?


---

!
interface Vlan1
no ip address
shutdown
!
interface Vlan99
ip address 172.17.99.32 255.255.255.0
!
banner motd ^CAUTHORIZED ACCESS ONLY^^C
!
line con 0
password cisco
login
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
end


S2#show vlan

VLAN Name Status Ports
----



1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
----





----


1 enet 100001 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs


Primary Secondary Type Ports



S2#

Comments

  • theodoxatheodoxa Member Posts: 1,340 ■■■■□□□□□□
    You haven't assigned any ports to vlan 99.

    S2(config)#int range Fa0/1 - 6
    S2(config-if-range)#switch access vlan 99
    S2(config-if-range)#do sh vlan
    R&S: CCENT CCNA CCNP CCIE [ ]
    Security: CCNA [ ]
    Virtualization: VCA-DCV [ ]
  • ChickenNuggetzChickenNuggetz Member Posts: 284
    You havent created the vlan yet. You created an interface vlan99 but not the vlan itself.

    vlan vlan-id global command is what you'll need to create the vlan. Then it should show up under show vlan

    theodoxa is also correct in that once you've created the vlan (with the above command) then you'll need to assign interfaces to it.
    :study: Currently Reading: Red Hat Certified Systems Administrator and Engineer by Ashgar Ghori

    Certifications: CCENT; CCNA: R&S; Security+

    Next up: RHCSA
  • chXchX Member Posts: 100 ■■■□□□□□□□
    I agree with ChickenNuggetz, you'll need to add the VLAN to the database.
    A VLAN can exist in the database (show vlan) without having any ports assigned to it, but an SVI (interface Vlan99) won't show as up/up unless at least one port is assigned to that VLAN and also up/up. That port could be a trunk or access port, and it also needs to be in STP forwarding state for that VLAN.
    2019 Goals:
    [ ] Recertify CCNA
  • workfrom925workfrom925 Member Posts: 196
    Thanks you all.:D
Sign In or Register to comment.