[rancid] Re: VTP

Lance Vermilion rancid at gheek.net
Tue Nov 28 17:05:41 UTC 2006


John/Johan,

I hope the information I have provided aids a resolution quickly.

The VTP information would be helpful along with show cdp nei/show cdp nei detail. 
I am sure there are a lot of other commands that would be incredibly helpful to 
people. 

VTP info is not really captured in the config.

IOS
------
ops-dsr-01#sh run | i vtp
vtp interface lo0                 #user defined, by default lowest vlan is chosen
snmp-server enable traps vtp      #enable/disable is user defined

CATOS (all of this is captured in the show run/config/config all)
------
sh run
...
...
set snmp trap enable  vtp         #enable/disable is user defined
#vtp
set vtp domain [ops]              #ops is user defined or null
set vtp mode client [vlan]        #vlan is optional
set logging level vtp 5 default   #logging level is user defined


The show vtp domain/status is different for catos/ios. Here are examples.

IOS
------
ops-dsr-01#sh vtp status 
VTP Version                     : 2
Configuration Revision          : 98
Maximum VLANs supported locally : 1005
Number of existing VLANs        : 59
VTP Operating Mode              : Server
VTP Domain Name                 : ops
VTP Pruning Mode                : Enabled
VTP V2 Mode                     : Enabled
VTP Traps Generation            : Enabled
MD5 digest                      : 0xF7 0x00 0x00 0x00 0xD6 0x60 0x24 0x85 
Configuration last modified by 172.21.253.253 at 10-19-06 19:51:14
Local updater ID is 172.21.253.254 on interface Lo0 (preferred interface)
Preferred interface name is lo0  

CATOS
------
ops-as-01> (enable) sh vtp dom
Domain Name                      Domain Index VTP Version Local Mode  Password
-------------------------------- ------------ ----------- ----------- ----------
ops                              1            2           client      -

Vlan-count Max-vlan-storage Config Revision Notifications
---------- ---------------- --------------- -------------
59         1023             98              enabled

Last Updater    V2 Mode  Pruning  PruneEligible on Vlans
--------------- -------- -------- -------------------------
172.21.253.253  enabled  enabled  2-1000


I mentioned "show cdp neighbor [detail]" earlier so here is the info for that.
I would personally think show cdp neighbor detail would be better because if 
you have specified the domain name for your device in the config then you end 
up with lines that wordwrap. Detail gives you all the info from show cdp neighbor
and more. Namely I think you should only capture lines like so for the Detail portion:

IOS (See Below for a full output of the command)
------
^Device ID: (Ex. [Device ID: ops-dsr-02.somedomain.com])
^\s*IP Address: (Ex. [  IP Address: 172.21.254.252])
^Interface (Ex. [Interface: GigabitEthernet5/2,  Port ID (outgoing port): GigabitEthernet5/2])
^advertisement (Ex. [advertisement version: 2])
^VTP (Ex. [VTP Management Domain: 'ops'])
^Native (Ex. [Native VLAN: 1])
^Duplex (Ex. [Duplex: full])

CATOS (See Below for a full output of the command)
------
^Port (Ex. [Port (Our Port): 1/1])
^Device-ID: (Ex. [Device-ID: ops-dsr-02.somedomain.com])
^\s*IP Address: (Ex. [  IP Address: 172.21.254.252])
^Platform (Ex. [Platform: cisco WS-C6509])
^Port (Ex. [Port-ID (Port on Neighbors's Device): GigabitEthernet4/6])
^VTP (Ex. [VTP Management Domain: ops])
^Native (Ex. [Native VLAN: 1])
^Duplex (Ex. [Duplex: full])

IOS
------
ops-dsr-01#sh cdp neighbor
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
ops-dsr-02.bestwestern.com
                 Gig 5/2            163         R S I     WS-C6509  Gig 5/2
ops-dsr-02.bestwestern.com
                 Gig 5/1            163         R S I     WS-C6509  Gig 5/1
<snip>
...
...
</snip>

ops-dsr-01#show cdp neighbor detail
-------------------------
Device ID: ops-dsr-02.somedomain.com
Entry address(es): 
  IP address: 172.21.254.252
Platform: cisco WS-C6509,  Capabilities: Router Switch IGMP 
Interface: GigabitEthernet5/2,  Port ID (outgoing port): GigabitEthernet5/2
Holdtime : 157 sec

Version :
Cisco Internetwork Operating System Software 
IOS (tm) s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-VM), Version 12.2(18)SXF5, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by cisco Systems, Inc.
Compiled Sat 08-Jul-06 04:05 by kellythw

advertisement version: 2
VTP Management Domain: 'ops'
Native VLAN: 1
Duplex: full

-------------------------
Device ID: ops-dsr-02.somedomain.com
Entry address(es): 
  IP address: 172.21.254.252
Platform: cisco WS-C6509,  Capabilities: Router Switch IGMP 
Interface: GigabitEthernet5/1,  Port ID (outgoing port): GigabitEthernet5/1
Holdtime : 157 sec

Version :
Cisco Internetwork Operating System Software 
IOS (tm) s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-VM), Version 12.2(18)SXF5, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by cisco Systems, Inc.
Compiled Sat 08-Jul-06 04:05 by kellythw

advertisement version: 2
VTP Management Domain: 'ops'
Native VLAN: 1
Duplex: full
<snip>
...
...
</snip>

CATOS
------
ops-as-04> (enable) sh cdp neighbor
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port     Device-ID                       Port-ID                   Platform
-------- ------------------------------- ------------------------- ------------
 1/1     ops-dsr-02.somedomain.com       GigabitEthernet4/6        cisco WS-C6509
 1/2     ops-dsr-01.somedomain.com       GigabitEthernet4/8        cisco WS-C6509
 2/17    OPS-WLC-01                      Unit - 0 Slot - 0 Port -  WLC4402-25
 2/18    OPS-WLC-01                      Unit - 0 Slot - 0 Port -  WLC4402-25

ops-as-04> (enable) sh cdp neighbor detail
Port (Our Port): 1/1     
Device-ID: ops-dsr-02.somedomain.com
Device Addresses:
  IP Address: 172.21.254.252
Holdtime: 173 sec
Capabilities: ROUTER SWITCH IGMP 
Version: 
  Cisco Internetwork Operating System Software 
  IOS (tm) s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-VM), Version 12.2(18)SXF5, RELEASE SOFTWARE (fc3)
  Technical Support: http://www.cisco.com/techsupport
  Copyright (c) 1986-2006 by cisco Systems, Inc.
  Compiled Sat 08-Jul-06 04:05 by kellythw
Platform: cisco WS-C6509
Port-ID (Port on Neighbors's Device): GigabitEthernet4/6
VTP Management Domain: ops
Native VLAN: 1 
Duplex: full
System Name: unknown
System Object ID: unknown
Management Addresses: unknown
Physical Location: unknown
___________________________________________________________________________
Port (Our Port): 1/2     
Device-ID: ops-dsr-01.somedomain.com
Device Addresses:
  IP Address: 172.21.254.253
Holdtime: 173 sec
Capabilities: ROUTER SWITCH IGMP 
Version: 
  Cisco Internetwork Operating System Software 
  IOS (tm) s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-VM), Version 12.2(18)SXF5, RELEASE SOFTWARE (fc3)
  Technical Support: http://www.cisco.com/techsupport
  Copyright (c) 1986-2006 by cisco Systems, Inc.
  Compiled Sat 08-Jul-06 04:05 by kellythw
Platform: cisco WS-C6509
Port-ID (Port on Neighbors's Device): GigabitEthernet4/8
VTP Management Domain: ops
Native VLAN: 1 
Duplex: full
System Name: unknown
System Object ID: unknown
Management Addresses: unknown
Physical Location: unknown
___________________________________________________________________________
Port (Our Port): 2/17    
Device-ID: OPS-WLC-01
Device Addresses:
  IP Address: 172.21.254.250
Holdtime: 167 sec
Capabilities: HOST 
Version: 
  Manufacturer's Name: Cisco Systems Inc.  Product Name: Cisco Controller  Product Version: 4.0.155.5  RTOS Version: 4.0.155.5  Bootloader Version: 4.0.155.5  Build Type: DATA + WPS
Platform: WLC4402-25
Port-ID (Port on Neighbors's Device): Unit - 0 Slot - 0 Port - 2
VTP Management Domain: unknown
Native VLAN: unknown
Duplex: unknown
System Name: unknown
System Object ID: unknown
Management Addresses: unknown
Physical Location: unknown
<snip>
...
...
</snip>

-- 

-Lance <rancid at gheek.net>

On Tue, Nov 28, 2006 at 08:16:43AM +0100, Johan Bergstr?m wrote:
> On Mon, 2006-11-27 at 11:52 -0800, john heasley wrote:
> > >  
> > > The important information for me is VTP Operating Mode,
> > > VTP Domain Name and VTP Traps Generation
> > 
> > show vtp status was added a long time ago.  and, I expect the commands to
> > alter it would appear in show running (excepting the 'defaults' which
> > cisco may change at their whim).
> > 
> > > The commands I use to setup my vtp are 'vtp domain VTP_DOMAIN' and 'vtp
> > > mode server(or client or transparent)' on some switches/routers where I
> > > want vtp traps, I enable that with 'snmp-server enable traps vtp' the
> > > snmp-server command is shown in 'sh run', so it's cought with rancid
> > > already.
> > > 
> > > The other VTP commands are set with 'vtp pruning', 'vtp version <1|2>'
> > 
> > all of these should appear in the show running output.  either you're
> > running a very old version, have the device configured as "cat5", or
> > ???
> 
> It doesn't show vtp domain or vtp mode in show running, I'm using the
> following versions,
> 
> 4500,
> Cisco IOS Software, Catalyst 4000 L3 Switch Software (cat4000-I9K91S-M),
> Version 12.2(25)EWA6, RELEASE SOFTWARE (fc1)
> 
> IOS (tm) Catalyst 4000 L3 Switch Software (cat4000-I9K91S-M), Version
> 12.2(18)EW1, RELEASE SOFTWARE (fc1)
> 
> 6500,
> IOS (tm) s72033_rp Software (s72033_rp-PK9S-M), Version 12.2(17d)SXB3,
> RELEASE SOFTWARE (fc1)
> 
> 3750,
> 
> Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version
> 12.2(25)SEE2, RELEASE SOFTWARE (fc1)
> 
> And I'm running my devices as cisco in rancid.
> 
> > > 
> > > On Fri, 2006-11-24 at 20:47 -0800, john heasley wrote:
> > > > Thu, Nov 23, 2006 at 08:22:09AM +0100, Johan Bergstr?m:
> > > > > Why doesn't rancid pick out vtp information and save it ?
> > > > > 
> > > > > It would definitely be useful, since I have quite a large network and it
> > > > > would be easier to be able to tell my co-workers who aren't very used to
> > > > > playing around with communication devices just to "download" a
> > > > > configuration file from the rancid cvs archive and copy&paste if they
> > > > > need to replace the supervisor card. But as it is today, they have to
> > > > > type in the vtp commands separately.
> > > > > 
> > > > > Oh and this is all cisco devices. mostly 4500s and 3750s and a bunch of
> > > > > 6500s too.
> > > > > 
> > > > 
> > > > Where is this data?  Example?
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss





More information about the Rancid-discuss mailing list