more than you ever wanted to know about DTP, with the ‘show dtp interface’ command

Louis-test-switch#sh dtp interface f0/13
DTP information for FastEthernet0/13:
TOS/TAS/TNS: ACCESS/AUTO/ACCESS
TOT/TAT/TNT: NATIVE/NEGOTIATE/NATIVE
Neighbor address 1: 000000000000
Neighbor address 2: 000000000000
Hello timer expiration (sec/state): 22/RUNNING
Access timer expiration (sec/state): never/STOPPED
Negotiation timer expiration (sec/state): never/STOPPED
Multidrop timer expiration (sec/state): never/STOPPED
FSM state: S2:ACCESS
# times multi & trunk 0
Enabled: yes
In STP: no

Statistics
———-
0 packets received (0 good)
0 packets dropped
0 nonegotiate, 0 bad version, 0 domain mismatches,
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
6926 packets output (6926 good)
3463 native, 3463 software encap isl, 0 isl hardware native
0 output errors
0 trunk timeouts
9 link ups, last link up on Tue Sep 28 2010, 07:23:44
25 link downs, last link down on Tue Sep 28 2010, 07:23:40

TOS = Trunk Operational Status
TAS = Trunk Administrative Status
TNS = Trunk Negotiation Status

TOT = Trunk Operational (encapsulation) Type
TAT = Trunk Adminstrative (encapsulation) Type
TNT = Trunk Negotiation (encapsulation) Type

Dynamic Desirable:

INE-SW1#sh dtp int fa0/13 | in TAT|TAS
TOS/TAS/TNS: TRUNK/DESIRABLE/TRUNK
TOT/TAT/TNT: ISL/NEGOTIATE/ISL
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
INE-SW1#

Static + 802.1Q negotiated

INE-SW1(config-if)#do sh dtp int f0/19 | in TOS|TOT
TOS/TAS/TNS: TRUNK/ON/TRUNK
TOT/TAT/TNT: 802.1Q/802.1Q/802.1Q
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
INE-SW1(config-if)#

Static + 802.1Q manual + no DTP

INE-SW1(config-if)#do sh dtp int f0/20 | in TOS|TOT
TOS/TAS/TNS: TRUNK/NONEGOTIATE/TRUNK
TOT/TAT/TNT: 802.1Q/802.1Q/802.1Q
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
INE-SW1(config-if)#

Access mode + no DTP (to a router)

INE-SW1(config-if)#do sh dtp int f0/1 | in TOS|TOT
TOS/TAS/TNS: ACCESS/OFF/ACCESS
TOT/TAT/TNT: NATIVE/NEGOTIATE/NATIVE
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
INE-SW1(config-if)#

Normal Dynamic Auto + DTP (to a router)

INE-SW1(config-if)#do sh dtp int f0/3 | in TOS|TOT
TOS/TAS/TNS: ACCESS/AUTO/ACCESS
TOT/TAT/TNT: UNKNOWN/NEGOTIATE/UNKNOWN
0 bad TLVs, 0 bad TAS, 0 bad TAT, 0 bad TOT, 0 other
INE-SW1(config-if)#

Advertisements

EEM event manager – use cron timer

event manager applet PHONE_POWER_OFF
event timer cron name PHONE_POWER_OFF cron-entry “0 11 * * 1-5”
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “interface f0/23”
action 1.3 cli command “power inline never”
action 1.4 syslog msg “PHONE_POWER_OFF by EEM script”
event manager applet PHONE_POWER_ON
event timer cron name PHONE_POWER_ON cron-entry “0 8 * * 1-5”
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “interface f0/23”
action 1.3 cli command “no power inline never”
action 1.4 syslog msg “PHONE_POWER_ON by EEM script”