+ Reply to Thread
Results 1 to 13 of 13
  1. Senior Member mguy's Avatar
    Join Date
    Dec 2011
    Location
    Boston
    Posts
    166

    Certifications
    Network+, CCNA
    #1

    Default show ip of VLANs?

    Is there a switch command that show the IP networks of the VLANs in a switch?

    I would just do a show run and see the ip and netmask for the interface configured of a VLAN member (and reverse engineer it).

    But there must be another way..
    Reply With Quote Quote  

  2. SS -->
  3. Happiness is !!!!! MAC_Addy's Avatar
    Join Date
    Jan 2006
    Posts
    1,687

    Certifications
    BSc (Hons) Computer Science, A+, Network+, Security+, DCSE, MCP, CCENT, CCNA.
    #2
    sh ip int br (show ip interface brief) will show all VLANs on a layer 3 switch
    Last edited by MAC_Addy; 07-10-2012 at 04:07 PM.
    Reply With Quote Quote  

  4. Senior Member
    Join Date
    Aug 2011
    Posts
    683

    Certifications
    CCNA/CCNA:V/ATSA-IN
    #3
    to add to what MAC_Addy already stated

    show ip interface brief - will give you the IP address information of ANY layer 3 interface - so this is a very helpful command to remember..
    Reply With Quote Quote  

  5. He Hate Me Zartanasaurus's Avatar
    Join Date
    Sep 2009
    Posts
    1,978

    Certifications
    CCIE:R&S
    #4
    sh ip int br | i Vlan

    Reply With Quote Quote  

  6. He Hate Me Zartanasaurus's Avatar
    Join Date
    Sep 2009
    Posts
    1,978

    Certifications
    CCIE:R&S
    #5
    sh ip arp Vlan# will give you the IPs that are active in that VLAN as well.
    Reply With Quote Quote  

  7. Senior Member mguy's Avatar
    Join Date
    Dec 2011
    Location
    Boston
    Posts
    166

    Certifications
    Network+, CCNA
    #6
    sh ip int brief

    doesn't give you the mask of the vlan. what if i wanted to know the IP address of the gateway of the vlan? How do I go about doing that?
    Reply With Quote Quote  

  8. Senior Member mguy's Avatar
    Join Date
    Dec 2011
    Location
    Boston
    Posts
    166

    Certifications
    Network+, CCNA
    #7
    if im asked what is the ip add of the default-gateway (given it is the first host in the subnet) of VLAN 1?

    show int vlan 1

    *get the mask and get the answer there
    Reply With Quote Quote  

  9. Senior Member
    Join Date
    Mar 2011
    Location
    California, USA
    Posts
    224

    Certifications
    MCITP:EA / SA, MCSE, CCNA, CCNA:S, Security+, A+
    #8
    Default gateway may not be first host in the subnet. That would be a design thing. The architect may decide that using a /24 mask, all router interfaces would be .250 - .254. Back to your statement though, I don't have any switches around me, but I believe the default gateway is defined outside the vlan database (it applies to the switch, not a particularly vlan) so perhaps "sh ip default-gateway" would work.
    Reply With Quote Quote  

  10. Senior Member mguy's Avatar
    Join Date
    Dec 2011
    Location
    Boston
    Posts
    166

    Certifications
    Network+, CCNA
    #9
    Quote Originally Posted by spd3432 View Post
    Default gateway may not be first host in the subnet. That would be a design thing. The architect may decide that using a /24 mask, all router interfaces would be .250 - .254. Back to your statement though, I don't have any switches around me, but I believe the default gateway is defined outside the vlan database (it applies to the switch, not a particularly vlan) so perhaps "sh ip default-gateway" would work.

    I'm not finding this command. Anyone?
    Reply With Quote Quote  

  11. Senior Member
    Join Date
    Mar 2011
    Location
    California, USA
    Posts
    224

    Certifications
    MCITP:EA / SA, MCSE, CCNA, CCNA:S, Security+, A+
    #10
    mguy,

    I checked two places -- packet tracer and a physical switch (Catalyst 2924xl).
    Packet tracer -- "show ip default-gateway" returns a ^ under the 'd' indicating syntax error.
    Physical switch -- "show ip default-gateway" returns the address that I'd assigned (and is displayed in the running-config).
    Reply With Quote Quote  

  12. Junior Member Registered Member
    Join Date
    May 2012
    Posts
    1
    #11
    Show run has the default gateway of a switch.
    Reply With Quote Quote  

  13. Senior Member
    Join Date
    Apr 2012
    Posts
    222
    #12
    sh run interface vlan###
    Reply With Quote Quote  

  14. Senior Member
    Join Date
    Apr 2012
    Posts
    222
    #13
    the default gateway of a switch maynot be the default gateway for the vlan in question
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks