PG1X

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:stp:bpdufilter:bpdufilter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tech:network:cisco:stp:bpdufilter:bpdufilter [2019/06/08 01:28]
wnoguchi
tech:network:cisco:stp:bpdufilter:bpdufilter [2019/06/08 02:17] (current)
wnoguchi
Line 10: Line 10:
  
 <​code>​ <​code>​
 +ASW1#debug spanning-tree events ​
 +Spanning Tree event debugging is on
 +ASW1#conf t
 +Enter configuration commands, one per line.  End with CNTL/Z.
 +ASW1(config)# ​  
 +*Mar  1 01:​52:​20.875:​ STP: VLAN0001 heard root     ​1-0026.ca6b.e980 on Fa0/8
 +*Mar  1 01:​52:​20.875: ​    ​supersedes 32769-0022.bd89.2180
 +*Mar  1 01:​52:​20.875:​ STP: VLAN0001 new root is 1, 0026.ca6b.e980 on port Fa0/8, cost 19
 +ASW1(config)#​do sh span
  
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             ​Cost ​       19
 +             ​Port ​       8 (FastEthernet0/​8)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/6               Desg FWD 19        128.6    P2p 
 +Fa0/8               Root FWD 19        128.8    P2p 
 +
 +
 +ASW1(config)#​do debug spanning-tree ?
 +  all              All Spanning Tree debugging messages
 +  backbonefast ​    ​BackboneFast events
 +  bpdu             ​Spanning tree BPDU 
 +  bpdu-opt ​        ​Optimized BPDU handling
 +  config ​          ​Spanning tree config changes
 +  csuf/​csrt ​       STP CSUF/CSRT
 +  etherchannel ​    ​EtherChannel support
 +  events ​          ​Spanning tree topology events
 +  exceptions ​      ​Spanning tree exceptions
 +  general ​         Spanning tree general
 +  mstp             MSTP debug commands
 +  pvst+            PVST+ events
 +  root             ​Spanning tree root events
 +  snmp             ​Spanning Tree SNMP handling
 +  switch ​          ​Switch Shim debug commands
 +  synchronization ​ STP state sync events
 +  uplinkfast ​      ​UplinkFast events
 +
 +ASW1(config)#​do debug spanning-tree events ?
 +  dump      Dump BPDUs that are triggering events
 +  snapshot ​ Snapshot of all ports after an event
 +  <cr>
 +
 +ASW1(config)# ​                             ​
 +*Mar  1 01:​55:​06.282:​ STP: VLAN0001 sent Topology Change Notice on Fa0/8
 +*Mar  1 01:​55:​06.282:​ STP[1]: Generating TC trap for port FastEthernet0/​6
 +*Mar  1 01:​55:​07.288:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 01:​55:​08.286:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 01:​56:​26.988:​ set portid: VLAN0001 Fa0/6: new port id 8006
 +*Mar  1 01:​56:​26.997:​ STP: VLAN0001 Fa0/6 -> listening
 +ASW1(config)#​
 +*Mar  1 01:​56:​28.993:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 01:​56:​30.000:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 01:​56:​42.004:​ STP: VLAN0001 Fa0/6 -> learning
 +ASW1(config)#​
 +*Mar  1 01:​56:​57.011:​ STP[1]: Generating TC trap for port FastEthernet0/​6
 +*Mar  1 01:​56:​57.011:​ STP: VLAN0001 sent Topology Change Notice on Fa0/8
 +*Mar  1 01:​56:​57.011:​ STP: VLAN0001 Fa0/6 -> forwarding
 +ASW1(config)#​spa
 +ASW1(config)#​spanning-tree por
 +ASW1(config)#​spa ​                   ​
 +ASW1(config)#​int f0/6      ​
 +ASW1(config-if)#​spa
 +ASW1(config-if)#​spanning-tree bpdufi
 +ASW1(config-if)#​spanning-tree bpdufilter en
 +ASW1(config-if)#​spanning-tree bpdufilter enable ​
 +ASW1(config-if)#​no spanning-tree bpdufilter enable ​
 +ASW1(config-if)#​por
 +ASW1(config-if)#​spa
 +ASW1(config-if)#​spanning-tree por
 +ASW1(config-if)#​spanning-tree portfa
 +ASW1(config-if)#​spanning-tree portfast ?
 +  disable ​ Disable portfast for this interface
 +  trunk    Enable portfast on the interface even in trunk mode
 +  <cr>
 +
 +ASW1(config-if)#​spanning-tree portfast ​
 +%Warning: portfast should only be enabled on ports connected to a single
 + host. Connecting hubs, concentrators,​ switches, bridges, etc... to this
 + ​interface ​ when portfast is enabled, can cause temporary bridging loops.
 + Use with CAUTION
 +
 +%Portfast has been configured on FastEthernet0/​6 but will only
 + have effect when the interface is in a non-trunking mode.
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​27.363:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​28.361:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​34.443:​ set portid: VLAN0001 Fa0/6: new port id 8006
 +*Mar  1 02:​02:​34.443:​ STP: VLAN0001 Fa0/6 ->jump to forwarding from blocking
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​36.439:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​39.325:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +*Mar  1 02:​02:​40.080:​ set portid: VLAN0001 Fa0/6: new port id 8006
 +*Mar  1 02:​02:​40.088:​ STP: VLAN0001 Fa0/6 ->jump to forwarding from blocking
 +ASW1(config-if)#​
 +*Mar  1 02:​02:​42.085:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to up
 +*Mar  1 02:​02:​43.092:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config-if)#​spa
 +ASW1(config-if)#​spanning-tree bpdu
 +ASW1(config-if)#​spanning-tree bpdufi
 +ASW1(config-if)#​spanning-tree bpdufilter en
 +ASW1(config-if)#​spanning-tree bpdufilter enable ​
 +ASW1(config-if)#​do sh spanning-tree ​  
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             ​Cost ​       19
 +             ​Port ​       8 (FastEthernet0/​8)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/6               Desg FWD 19        128.6    P2p Edge 
 +Fa0/8               Root FWD 19        128.8    P2p 
 +
 +
 +ASW1(config-if)#​int f0/8
 +ASW1(config-if)#​spa
 +ASW1(config-if)#​spanning-tree bpdufil
 +ASW1(config-if)#​spanning-tree bpdufilter en
 +ASW1(config-if)#​spanning-tree bpdufilter enable ​
 +ASW1(config-if)#​do ​
 +*Mar  1 02:​05:​51.818:​ STP: VLAN0001 heard root 32769-e8ed.f315.9380 on Fa0/1
 +*Mar  1 02:​05:​51.827:​ STP: VLAN0001 heard root 32769-c08c.6045.5200 on Fa0/2
 +ASW1(config-if)# ​     ​
 +*Mar  1 02:​05:​54.822:​ STP: VLAN0001 Topology Change rcvd on Fa0/1
 +*Mar  1 02:​05:​54.830:​ STP: VLAN0001 Topology Change rcvd on Fa0/2
 +ASW1(config-if)#​sh sp
 +ASW1(config-if)#​do sh spanning-tree
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   32769
 +             ​Address ​    ​0022.bd89.2180
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/6               Desg FWD 19        128.6    P2p Edge 
 +Fa0/8               Desg FWD 19        128.8    P2p 
 +
 +
 +ASW1(config-if)#​no spa
 +ASW1(config-if)#​no spanning-tree bpdufi
 +ASW1(config-if)#​no spanning-tree bpdufilter ena
 +ASW1(config-if)#​no spanning-tree bpdufilter enable
 +ASW1(config-if)#​no spanning-tree bpdufilter enable
 +ASW1(config-if)#​int f0/8
 +*Mar  1 02:​07:​33.094:​ STP: VLAN0001 heard root     ​1-0026.ca6b.e980 on Fa0/8
 +*Mar  1 02:​07:​33.094: ​    ​supersedes 32769-0022.bd89.2180
 +*Mar  1 02:​07:​33.094:​ STP: VLAN0001 new root is 1, 0026.ca6b.e980 on port Fa0/8, cost 19
 +ASW1(config-if)#​int f0/6
 +ASW1(config-if)#​do sh spanning-tree ​              
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             ​Cost ​       19
 +             ​Port ​       8 (FastEthernet0/​8)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/6               Desg FWD 19        128.6    P2p Edge 
 +Fa0/8               Root FWD 19        128.8    P2p 
 +
 +
 +ASW1(config-if)#​int f0/8
 +ASW1(config-if)#​spa
 +ASW1(config-if)#​spanning-tree por
 +ASW1(config-if)#​spanning-tree portfa
 +ASW1(config-if)#​spanning-tree portfast ​
 +%Warning: portfast should only be enabled on ports connected to a single
 + host. Connecting hubs, concentrators,​ switches, bridges, etc... to this
 + ​interface ​ when portfast is enabled, can cause temporary bridging loops.
 + Use with CAUTION
 +
 +%Portfast has been configured on FastEthernet0/​8 but will only
 + have effect when the interface is in a non-trunking mode.
 +ASW1(config-if)#​int f0/6
 +ASW1(config-if)#​no spa
 +ASW1(config-if)#​no spanning-tree en
 +ASW1(config-if)#​no spanning-tree bpdufi
 +ASW1(config-if)#​no spanning-tree bpdufilter enable
 +ASW1(config-if)#​
 +*Mar  1 02:​09:​12.851:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config-if)#​
 +*Mar  1 02:​09:​13.850:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config-if)#​
 +*Mar  1 02:​09:​30.358:​ STP: VLAN0001 heard root 32769-c08c.6045.5200 on Fa0/2
 +*Mar  1 02:​09:​30.358:​ STP: VLAN0001 heard root 32769-e8ed.f315.9380 on Fa0/1
 +*Mar  1 02:​09:​30.895:​ STP: VLAN0001 Topology Change rcvd on Fa0/1
 +*Mar  1 02:​09:​30.895:​ STP: VLAN0001 Topology Change rcvd on Fa0/2
 +ASW1(config-if)#​exit
 +ASW1(config)#​spa
 +ASW1(config)#​spanning-tree port
 +ASW1(config)#​spanning-tree portfast bpdu
 +ASW1(config)#​spanning-tree portfast bpdufi
 +ASW1(config)#​spanning-tree portfast bpdufilter dea
 +ASW1(config)#​spanning-tree portfast bpdufilter defau
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +ASW1(config)#​no spanning-tree portfast bpdufilter default ​
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​   ​
 +*Mar  1 02:​10:​39.221:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​10:​40.227:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +*Mar  1 02:​10:​40.865:​ set portid: VLAN0001 Fa0/5: new port id 8005
 +*Mar  1 02:​10:​40.865:​ STP: VLAN0001 Fa0/5 -> listening
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +*Mar  1 02:​10:​41.225:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +*Mar  1 02:​10:​42.861:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​5,​ changed state to up
 +*Mar  1 02:​10:​43.868:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​5,​ changed state to up
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +ASW1(config)#​
 +*Mar  1 02:​10:​55.872:​ STP: VLAN0001 Fa0/5 -> learning
 +ASW1(config)#​
 +*Mar  1 02:​11:​10.879:​ STP[1]: Generating TC trap for port FastEthernet0/​5
 +*Mar  1 02:​11:​10.879:​ STP: VLAN0001 Fa0/5 -> forwarding
 +ASW1(config)#​
 +*Mar  1 02:​11:​34.938:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​11:​34.938:​ STP[1]: Generating TC trap for port FastEthernet0/​5
 +*Mar  1 02:​11:​35.944:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​5,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​11:​36.943:​ set portid: VLAN0001 Fa0/6: new port id 8006
 +*Mar  1 02:​11:​36.943:​ STP: VLAN0001 Fa0/6 ->jump to forwarding from blocking
 +ASW1(config)#​
 +*Mar  1 02:​11:​36.943:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​5,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​11:​38.939:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​11:​39.946:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​12:​33.859:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​12:​34.866:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​12:​35.864:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​12:​37.424:​ set portid: VLAN0001 Fa0/6: new port id 8006
 +*Mar  1 02:​12:​37.424:​ STP: VLAN0001 Fa0/6 ->jump to forwarding from blocking
 +ASW1(config)#​
 +*Mar  1 02:​12:​39.421:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to up
 +*Mar  1 02:​12:​40.428:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​13:​09.536:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​13:​10.543:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​13:​11.306:​ set portid: VLAN0001 Fa0/5: new port id 8005
 +*Mar  1 02:​13:​11.306:​ STP: VLAN0001 Fa0/5 -> listening
 +ASW1(config)#​
 +*Mar  1 02:​13:​11.541:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​6,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​13:​13.303:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​5,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​13:​14.309:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​5,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​13:​26.313:​ STP: VLAN0001 Fa0/5 -> learning
 +ASW1(config)#​
 +*Mar  1 02:​13:​41.320:​ STP[1]: Generating TC trap for port FastEthernet0/​5
 +*Mar  1 02:​13:​41.320:​ STP: VLAN0001 Fa0/5 -> forwarding
 +ASW1(config)#​
 +*Mar  1 02:​13:​58.257:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​13:​58.257:​ STP[1]: Generating TC trap for port FastEthernet0/​5
 +ASW1(config)#​
 +*Mar  1 02:​13:​59.264:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​5,​ changed state to down
 +*Mar  1 02:​13:​59.901:​ set portid: VLAN0001 Fa0/8: new port id 8008
 +*Mar  1 02:​13:​59.910:​ STP: VLAN0001 Fa0/8 ->jump to forwarding from blocking
 +ASW1(config)#​
 +*Mar  1 02:​14:​00.262:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​5,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​14:​01.906:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to up
 +*Mar  1 02:​14:​02.913:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​14:​32.978:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​14:​33.984:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​14:​34.982:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​14:​38.866:​ set portid: VLAN0001 Gi0/1: new port id 8009
 +*Mar  1 02:​14:​38.866:​ STP: VLAN0001 Gi0/1 -> listening
 +ASW1(config)#​
 +*Mar  1 02:​14:​40.863:​ %LINK-3-UPDOWN:​ Interface GigabitEthernet0/​1,​ changed state to up
 +*Mar  1 02:​14:​41.869:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface GigabitEthernet0/​1,​ changed state to up
 +ASW1(config)#​
 +*Mar  1 02:​14:​53.874:​ STP: VLAN0001 Gi0/1 -> learning
 +ASW1(config)#​
 +*Mar  1 02:​15:​08.881:​ STP[1]: Generating TC trap for port GigabitEthernet0/​1
 +*Mar  1 02:​15:​08.881:​ STP: VLAN0001 Gi0/1 -> forwarding
 +ASW1(config)#​
 +*Mar  1 02:​16:​19.462:​ set portid: VLAN0001 Fa0/8: new port id 8008
 +*Mar  1 02:​16:​19.462:​ STP: VLAN0001 Fa0/8 ->jump to forwarding from blocking
 +ASW1(config)#​
 +*Mar  1 02:​16:​21.459:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to up
 +*Mar  1 02:​16:​22.466:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to up
 +ASW1(config)#​spanning-tree portfast bpdufilter default ​
 +ASW1(config)# ​                                            
 +*Mar  1 02:​17:​00.944:​ STP: VLAN0001 heard root 32769-0026.ca6b.e980 on Fa0/8
 +*Mar  1 02:​17:​00.944:​ STP: VLAN0001 Topology Change rcvd on Fa0/8
 +ASW1(config)#​do sh span                                   
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   32769
 +             ​Address ​    ​0022.bd89.2180
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/8               Desg FWD 19        128.8    P2p 
 +Gi0/1               Desg FWD 4         ​128.9 ​   P2p 
 +
 +
 +ASW1(config)#​moni
 +ASW1(config)#​monitor sess
 +ASW1(config)#​monitor session 1 sou
 +ASW1(config)#​monitor session 1 source inter
 +ASW1(config)#​monitor session 1 source interface f0/​8  ​
 +ASW1(config)#​moni
 +ASW1(config)#​monitor sess
 +ASW1(config)#​monitor session 1 des
 +ASW1(config)#​monitor session 1 destination int gig0/1 en
 +ASW1(config)#​monitor session 1 destination int gig0/1 encapsulation rep
 +ASW1(config)#​$sion 1 destination int gig0/1 encapsulation replicate ​
 +ASW1(config)#​
 +*Mar  1 02:​20:​56.027:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​20:​56.027:​ STP[1]: Generating TC trap for port GigabitEthernet0/​1
 +ASW1(config)#​
 +*Mar  1 02:​23:​21.846:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​23:​21.846:​ STP[1]: Generating TC trap for port FastEthernet0/​8
 +*Mar  1 02:​23:​22.852:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​23:​23.859:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to down
 +ASW1(config)#​
 +*Mar  1 02:​23:​27.575:​ set portid: VLAN0001 Fa0/8: new port id 8008
 +*Mar  1 02:​23:​27.575:​ STP: VLAN0001 Fa0/8 ->jump to forwarding from blocking
 +ASW1(config)#​
 +*Mar  1 02:​23:​29.572:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​8,​ changed state to up
 +*Mar  1 02:​23:​30.578:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​8,​ changed state to up
 +ASW1(config)# ​                                                      
 +*Mar  1 02:​25:​01.259:​ STP: VLAN0001 heard root 32769-0026.ca6b.e980 on Fa0/8
 +ASW1(config)#​do sh span
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   32769
 +             ​Address ​    ​0022.bd89.2180
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/8               Desg FWD 19        128.8    P2p 
 +
 +
 +ASW1(config)#​
 +*Mar  1 02:​26:​22.528:​ STP: VLAN0001 heard root     ​1-0026.ca6b.e980 on Fa0/8
 +*Mar  1 02:​26:​22.528: ​    ​supersedes 32769-0022.bd89.2180
 +*Mar  1 02:​26:​22.528:​ STP: VLAN0001 new root is 1, 0026.ca6b.e980 on port Fa0/8, cost 19
 +ASW1(config)#​do sh span
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             ​Cost ​       19
 +             ​Port ​       8 (FastEthernet0/​8)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/8               Root FWD 19        128.8    P2p 
 +
 +
 +ASW1(config)#​do sh span
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             ​Cost ​       19
 +             ​Port ​       8 (FastEthernet0/​8)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0022.bd89.2180
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +Fa0/2               Desg FWD 19        128.2    P2p 
 +Fa0/8               Root FWD 19        128.8    P2p 
 +
 +
 +ASW1(config)#​
  
 +</​code>​
 +
 +<​code>​
 +ASW2#debug spanning-tree events ​
 +Spanning Tree event debugging is on
 +ASW2#conf t
 +Enter configuration commands, one per line.  End with CNTL/Z.
 +ASW2(config)#​spa
 +ASW2(config)#​spanning-tree vla
 +ASW2(config)#​spanning-tree vlan 1 pri
 +ASW2(config)#​spanning-tree vlan 1 priority 0
 +ASW2(config)#​
 +*Mar  1 01:​52:​03.074:​ setting bridge id (which=1) prio 1 prio cfg 0 sysid 1 (on) id 0001.0026.ca6b.e980
 +ASW2(config)#​^Z
 +ASW2#sh spa
 +ASW2#sh spanning-tree ​
 +*Mar  1 01:​52:​18.249:​ %SYS-5-CONFIG_I:​ Configured from console by console
 +ASW2#sh spanning-tree vlan 1
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   1      (priority 0 sys-id-ext 1)
 +             ​Address ​    ​0026.ca6b.e980
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +
 +
 +ASW2#
 +*Mar  1 01:​54:​48.489:​ STP: VLAN0001 Topology Change rcvd on Fa0/1
 +ASW2#
 +*Mar  1 01:​56:​39.219:​ STP: VLAN0001 Topology Change rcvd on Fa0/1
 +ASW2#
 +ASW2#sh span
 +ASW2#sh spanning-tree ​
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   1      (priority 0 sys-id-ext 1)
 +             ​Address ​    ​0026.ca6b.e980
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +
 +
 +ASW2#
 +*Mar  1 02:​07:​15.294:​ STP: VLAN0001 heard root 32769-0022.bd89.2180 on Fa0/1
 +ASW2#
 +*Mar  1 02:​08:​54.044:​ STP: VLAN0001 we are the spanning tree root
 +*Mar  1 02:​08:​54.044:​ STP[1]: Generating TC trap for port FastEthernet0/​1
 +*Mar  1 02:​08:​55.051:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​1,​ changed state to down
 +ASW2#
 +*Mar  1 02:​08:​56.049:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​1,​ changed state to down
 +ASW2#conf t                 
 +Enter configuration commands, one per line.  End with CNTL/Z.
 +ASW2(config)#​no spanning-tree vlan 1 priority 0
 +ASW2(config)#​do sh spa
 +ASW2(config)#​do sh spanning-tree ​
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​spanning-tree vlan 1              ​
 +ASW2(config)#​do sh spanning-tree ​
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​do sh spanning-tree ​
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​do sh spanning-tree ​
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​do sh spanning-tree ​
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​
 +*Mar  1 02:​16:​01.653:​ setting bridge id (which=3) prio 32769 prio cfg 32768 sysid 1 (on) id 8001.0026.ca6b.e980
 +*Mar  1 02:​16:​01.653:​ set portid: VLAN0001 Fa0/1: new port id 8001
 +*Mar  1 02:​16:​01.653:​ STP: VLAN0001 Fa0/1 -> listening
 +ASW2(config)#​
 +*Mar  1 02:​16:​03.088:​ STP: VLAN0001 heard root 32769-0022.bd89.2180 on Fa0/1
 +*Mar  1 02:​16:​03.088: ​    ​supersedes 32769-0026.ca6b.e980
 +*Mar  1 02:​16:​03.088:​ STP: VLAN0001 new root is 32769, 0022.bd89.2180 on port Fa0/1, cost 19
 +ASW2(config)#​
 +*Mar  1 02:​16:​03.658:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​1,​ changed state to up
 +*Mar  1 02:​16:​04.665:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​1,​ changed state to up
 +ASW2(config)#​do sh spanning-tree ​
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   32769
 +             ​Address ​    ​0022.bd89.2180
 +             ​Cost ​       19
 +             ​Port ​       1 (FastEthernet0/​1)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0026.ca6b.e980
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Root LIS 19        128.1    P2p 
 +
 +
 +ASW2(config)#​
 +*Mar  1 02:​16:​16.661:​ STP: VLAN0001 Fa0/1 -> learning
 +ASW2(config)#​
 +*Mar  1 02:​16:​31.668:​ STP[1]: Generating TC trap for port FastEthernet0/​1
 +*Mar  1 02:​16:​31.668:​ STP: VLAN0001 Fa0/1 -> forwarding
 +ASW2(config)#​sh spa
 +ASW2(config)#​^Z ​   ​
 +ASW2#​sh ​
 +*Mar  1 02:​16:​41.491:​ %SYS-5-CONFIG_I:​ Configured from console by console
 +ASW2#conf t
 +*Mar  1 02:​16:​43.144:​ STP: VLAN0001 heard root 32769-0022.bd89.2180 on Fa0/1
 +*Mar  1 02:​16:​43.144: ​    ​supersedes 32769-0026.ca6b.e980
 +*Mar  1 02:​16:​43.144:​ STP: VLAN0001 new root is 32769, 0022.bd89.2180 on port Fa0/1, cost 19
 +*Mar  1 02:​16:​43.144:​ STP: VLAN0001 sent Topology Change Notice on Fa0/1
 +ASW2#conf t
 +Enter configuration commands, one per line.  End with CNTL/Z.
 +ASW2(config)#​do sh spa
 +ASW2(config)#​do sh spanning-tree vlan 1
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   32769
 +             ​Address ​    ​0022.bd89.2180
 +             ​Cost ​       19
 +             ​Port ​       1 (FastEthernet0/​1)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   32769  (priority 32768 sys-id-ext 1)
 +             ​Address ​    ​0026.ca6b.e980
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Root FWD 19        128.1    P2p 
 +
 +
 +ASW2(config)#​do sh spanning-tree int f0/1 detail
 + Port 1 (FastEthernet0/​1) of VLAN0001 is root forwarding ​
 +   Port path cost 19, Port priority 128, Port Identifier 128.1.
 +   ​Designated root has priority 32769, address 0022.bd89.2180
 +   ​Designated bridge has priority 32769, address 0022.bd89.2180
 +   ​Designated port id is 128.8, designated path cost 0
 +   ​Timers:​ message age 1, forward delay 0, hold 0
 +   ​Number of transitions to forwarding state: 1
 +   Link type is point-to-point by default
 +   BPDU: sent 2, received 23
 +ASW2(config)#​do sh spanning-tree int f0/1 detail
 + Port 1 (FastEthernet0/​1) of VLAN0001 is root forwarding ​
 +   Port path cost 19, Port priority 128, Port Identifier 128.1.
 +   ​Designated root has priority 32769, address 0022.bd89.2180
 +   ​Designated bridge has priority 32769, address 0022.bd89.2180
 +   ​Designated port id is 128.8, designated path cost 0
 +   ​Timers:​ message age 2, forward delay 0, hold 0
 +   ​Number of transitions to forwarding state: 1
 +   Link type is point-to-point by default
 +   BPDU: sent 2, received 24
 +ASW2(config)#​do sh spanning-tree int f0/1 detail
 + Port 1 (FastEthernet0/​1) of VLAN0001 is root forwarding ​
 +   Port path cost 19, Port priority 128, Port Identifier 128.1.
 +   ​Designated root has priority 32769, address 0022.bd89.2180
 +   ​Designated bridge has priority 32769, address 0022.bd89.2180
 +   ​Designated port id is 128.8, designated path cost 0
 +   ​Timers:​ message age 1, forward delay 0, hold 0
 +   ​Number of transitions to forwarding state: 1
 +   Link type is point-to-point by default
 +   BPDU: sent 2, received 25
 +ASW2(config)#​do sh spanning-tree int f0/1 detail
 + Port 1 (FastEthernet0/​1) of VLAN0001 is root forwarding ​
 +   Port path cost 19, Port priority 128, Port Identifier 128.1.
 +   ​Designated root has priority 32769, address 0022.bd89.2180
 +   ​Designated bridge has priority 32769, address 0022.bd89.2180
 +   ​Designated port id is 128.8, designated path cost 0
 +   ​Timers:​ message age 1, forward delay 0, hold 0
 +   ​Number of transitions to forwarding state: 1
 +   Link type is point-to-point by default
 +   BPDU: sent 2, received 26
 +ASW2(config)#​do sh spanning-tree int f0/1 detail
 + Port 1 (FastEthernet0/​1) of VLAN0001 is root forwarding ​
 +   Port path cost 19, Port priority 128, Port Identifier 128.1.
 +   ​Designated root has priority 32769, address 0022.bd89.2180
 +   ​Designated bridge has priority 32769, address 0022.bd89.2180
 +   ​Designated port id is 128.8, designated path cost 0
 +   ​Timers:​ message age 1, forward delay 0, hold 0
 +   ​Number of transitions to forwarding state: 1
 +   Link type is point-to-point by default
 +   BPDU: sent 2, received 41
 +ASW2(config)#​no spanning-tree vlan 1            ​
 +ASW2(config)#​
 +*Mar  1 02:​23:​05.068:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​1,​ changed state to down
 +ASW2(config)#​
 +*Mar  1 02:​23:​06.067:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​1,​ changed state to down
 +ASW2(config)#​
 +*Mar  1 02:​23:​11.788:​ %LINK-3-UPDOWN:​ Interface FastEthernet0/​1,​ changed state to up
 +*Mar  1 02:​23:​12.794:​ %LINEPROTO-5-UPDOWN:​ Line protocol on Interface FastEthernet0/​1,​ changed state to up
 +ASW2(config)#​do sh span
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​do sh span
 +
 +No spanning tree instance exists.
 +
 +ASW2(config)#​spa ​                   ​
 +ASW2(config)#​spanning-tree vla
 +ASW2(config)#​spanning-tree vlan 1
 +ASW2(config)#​
 +*Mar  1 02:​24:​41.437:​ setting bridge id (which=3) prio 32769 prio cfg 32768 sysid 1 (on) id 8001.0026.ca6b.e980
 +*Mar  1 02:​24:​41.437:​ set portid: VLAN0001 Fa0/1: new port id 8001
 +*Mar  1 02:​24:​41.437:​ STP: VLAN0001 Fa0/1 -> listening
 +ASW2(config)#​
 +*Mar  1 02:​24:​43.458:​ STP: VLAN0001 heard root 32769-0022.bd89.2180 on Fa0/1
 +*Mar  1 02:​24:​43.458: ​    ​supersedes 32769-0026.ca6b.e980
 +*Mar  1 02:​24:​43.458:​ STP: VLAN0001 new root is 32769, 0022.bd89.2180 on port Fa0/1, cost 19
 +ASW2(config)#​
 +*Mar  1 02:​24:​56.444:​ STP: VLAN0001 Fa0/1 -> learning
 +ASW2(config)#​
 +*Mar  1 02:​25:​11.451:​ STP[1]: Generating TC trap for port FastEthernet0/​1
 +*Mar  1 02:​25:​11.451:​ STP: VLAN0001 Fa0/1 -> forwarding
 +ASW2(config)#​spa
 +ASW2(config)#​spanning-tree vlan 1 pri
 +ASW2(config)#​spanning-tree vlan 1 priority 0
 +ASW2(config)#​
 +*Mar  1 02:​26:​04.727:​ setting bridge id (which=1) prio 1 prio cfg 0 sysid 1 (on) id 0001.0026.ca6b.e980
 +ASW2(config)#​do sh span                     
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority ​   1
 +             ​Address ​    ​0026.ca6b.e980
 +             This bridge is the root
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority ​   1      (priority 0 sys-id-ext 1)
 +             ​Address ​    ​0026.ca6b.e980
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface ​          Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Fa0/1               Desg FWD 19        128.1    P2p 
 +
 +
 +ASW2(config)#​
 </​code>​ </​code>​
  
Line 17: Line 747:
  
   - [[https://​www.infraexpert.com/​study/​stpz12.html|STPの拡張技術 - BPDUフィルタリング]]   - [[https://​www.infraexpert.com/​study/​stpz12.html|STPの拡張技術 - BPDUフィルタリング]]
 +  - [[tech:​network:​span:​span]]
 +
  
tech/network/cisco/stp/bpdufilter/bpdufilter.txt · Last modified: 2019/06/08 02:17 by wnoguchi