B5056.txt
上传用户:allwinjm
上传日期:2021-08-29
资源大小:99k
文件大小:6k
源码类别:

Internet/IE编程

开发平台:

Unix_Linux

  1. alex alex ~/Stp.emu>./bridge 
  2. my pid: 5056
  3. 12:53:09:clearFDB (all, start stpm)
  4. 12:53:09 B5056 > ?
  5. List of possible commands:
  6. enable               enable rstp
  7. disbale              disbale rstp
  8. get-br-cfg           get bridge config
  9. get-port-cfg         get port config
  10. set-br-prio          set bridge priority
  11. set-br-maxage        set bridge max. age
  12. set-br-fdelay        set bridge forward delay
  13. set-br-force-version set bridge force version
  14. set-prt-prio         set port priority
  15. set-prt-pcost        set port path cost
  16. set-prt-p2p          set port admin 'Point To Point'
  17. set-prt-edge         set port admin edge
  18. set-trace            set trace
  19. 'standard' commands:
  20. quit                 'shutdown' bridge
  21.                      alias 'ex' (from 'exit')
  22. ?                    help
  23.                      alias 'h' (from 'help')
  24. 12:53:23 B5056 > set-trace 2 all disable
  25. port p02 tag    0    pcost (was disabled) now disabled
  26. port p02 tag    0     edge (was disabled) now disabled
  27. port p02 tag    0      p2p (was disabled) now disabled
  28. port p02 tag    0 transmit (was disabled) now disabled
  29. port p02 tag    0  migrate (was disabled) now disabled
  30. port p02 tag    0   topoch (was disabled) now disabled
  31. port p02 tag    0  sttrans (was disabled) now disabled
  32. port p02 tag    0 roletrns (was disabled) now disabled
  33. port p02 tag    0     info (was disabled) now disabled
  34. 12:53:39 B5056 > set-trace 2 edge enable
  35. port p02 tag    0     edge (was disabled) now  enabled
  36. 12:54:38 B5056 > set-trace 2 topoch enable
  37. port p02 tag    0   topoch (was disabled) now  enabled
  38. 12:54:57 B5056 > set-trace 2 roletrns enable
  39. port p02 tag    0 roletrns (was disabled) now  enabled
  40. 12:55:14 B5056 > help get-st-p  
  41. get-port-cfg: get port config
  42. -----------------------------
  43.   (possible short name: 'get-st-p')
  44.   arguments:
  45.   ----------
  46.     arg:  port index; default 'all ports' 
  47. 12:55:57 B5056 > get-st-pcfg
  48.  E   p01 8001 Dis  8000-00c013000001 8000-00c013000001 8001  
  49.  E   p02 8002 Dis  8000-00c013000001 8000-00c013000001 8002  
  50.  E   p03 8003 Dis  8000-00c013000001 8000-00c013000001 8003  
  51.  E   p04 8004 Dis  8000-00c013000001 8000-00c013000001 8004  
  52. 12:56:19 B5056 > 
  53. 12:56:19 B5056 > get-st-p 2
  54. Stp Port p02: PortId: 8002 in Bridge 'B5056':
  55. Priority:          128
  56. State:             Disabled
  57. PathCost:          20000
  58. Designated Root:   8000-00c013000001
  59. Designated Cost:   0
  60. Designated Bridge: 8000-00c013000001
  61. Designated Port:   8002
  62. Flags:             operEdge 
  63. RSTP BPDU rx:      0
  64. CONFIG BPDU rx:    0
  65. TCN BPDU rx:       0
  66. 12:56:46 B5056 > connected port p02
  67. 12:57:16:Port p02 became 'enable' adminEdge=Y
  68. 12:57:16 B5056 > 12:57:16:edge(B5056-p02): DISABLED=>DETECTED
  69. 12:57:16:edge(B5056-p02): DETECTED=>DELEAYED
  70. 12:57:16:Age-B5056:port p02 => Designated
  71. 12:57:16:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_PROPOSE
  72. 12:57:16:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_SYNCED
  73. 12:57:16:topoch(B5056-p02): INACTIVE=>TCACTIVE
  74. 12:57:16:port p02 'edge' resolved by BPDU incame
  75. 12:57:16:edge(B5056-p02): DELEAYED=>RESOLVED
  76. 12:57:16:brige 0 root port became p02
  77. 12:57:16:Rec-B5056:port p02 => Root
  78. 12:57:16:roletrns(B5056-p02): DESIGNATED_PORT=>ROOT_PORT
  79. 12:57:16:roletrns(B5056-p02): ROOT_PORT=>REROOT
  80. 12:57:16:roletrns(B5056-p02): REROOT=>ROOT_PORT
  81. 12:57:16:roletrns(B5056-p02): ROOT_PORT=>ROOT_AGREED
  82. 12:57:16:roletrns(B5056-p02): ROOT_AGREED=>ROOT_PORT
  83. 12:57:16:roletrns(B5056-p02): ROOT_PORT=>ROOT_LEARN
  84. 12:57:16:roletrns(B5056-p02): ROOT_LEARN=>ROOT_PORT
  85. 12:57:16:roletrns(B5056-p02): ROOT_PORT=>ROOT_FORWARD
  86. 12:57:16:roletrns(B5056-p02): ROOT_FORWARD=>ROOT_PORT
  87. 12:57:16:roletrns(B5056-p02): ROOT_PORT=>REROOTED
  88. 12:57:16:roletrns(B5056-p02): REROOTED=>ROOT_PORT
  89. 12:57:16:topoch(B5056-p02): TCACTIVE=>DETECTED
  90. 12:57:16:clearFDB (2, 0, other ports, 'DETECTED')
  91. 12:57:16:topoch(B5056-p02): DETECTED=>TCACTIVE
  92. 12:57:18:port p02 rx rcvdTc 0X4d
  93. 12:57:18:topoch(B5056-p02): TCACTIVE=>NOTIFIED_TC
  94. 12:57:18:clearFDB (2, 0, other ports, 'NOTIFIED_TC')
  95. 12:57:18:topoch(B5056-p02): NOTIFIED_TC=>TCACTIVE
  96. 12:59:11 B5056 > get-st-p
  97.  E   p01 8001 Dis  8000-00bf13000001 8000-00c013000001 8001  
  98.      p02 8002 Fwd  8000-00bf13000001 8000-00bf13000001 8002 R
  99.  E   p03 8003 Dis  8000-00bf13000001 8000-00c013000001 8003  
  100.  E   p04 8004 Dis  8000-00bf13000001 8000-00c013000001 8004  
  101. 12:59:15 B5056 > 
  102. 12:59:15 B5056 > set-br-prio 0x400
  103. STP_rolesel_force
  104. 12:59:59:brige 0 became root
  105. 12:59:59:rec-B5056:port p02 => Backup
  106. Changed rstp bridge priority
  107. 12:59:59 B5056 > 12:59:59:rec-B5056:port p02 => Backup
  108. 12:59:59:roletrns(B5056-p02): ROOT_PORT=>BLOCK_PORT
  109. 12:59:59:topoch(B5056-p02): TCACTIVE=>INIT
  110. 12:59:59:topoch(B5056-p02): INIT=>INACTIVE
  111. 12:59:59:roletrns(B5056-p02): BLOCK_PORT=>BLOCKED_PORT
  112. 12:59:59:roletrns(B5056-p02): BLOCKED_PORT=>BACKUP_PORT
  113. 12:59:59:roletrns(B5056-p02): BACKUP_PORT=>BLOCKED_PORT
  114. 13:00:00:roletrns(B5056-p02): BLOCKED_PORT=>BACKUP_PORT
  115. 13:00:00:roletrns(B5056-p02): BACKUP_PORT=>BLOCKED_PORT
  116. 13:00:01:roletrns(B5056-p02): BLOCKED_PORT=>BACKUP_PORT
  117. 13:00:01:roletrns(B5056-p02): BACKUP_PORT=>BLOCKED_PORT
  118. 13:00:02:roletrns(B5056-p02): BLOCKED_PORT=>BACKUP_PORT
  119. 13:00:02:roletrns(B5056-p02): BACKUP_PORT=>BLOCKED_PORT
  120. 13:00:03:roletrns(B5056-p02): BLOCKED_PORT=>BACKUP_PORT
  121. 13:00:03:roletrns(B5056-p02): BACKUP_PORT=>BLOCKED_PORT
  122. 13:00:03:Age-B5056:port p02 => Designated
  123. 13:00:03:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_PROPOSE
  124. 13:00:03:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_SYNCED
  125. 13:00:03:topoch(B5056-p02): INACTIVE=>TCACTIVE
  126. 13:00:03:!AGREEMENT! on port p02
  127. 13:00:03:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_LEARN
  128. 13:00:03:roletrns(B5056-p02): DESIGNATED_PORT=>DESIGNATED_FORWARD
  129. 13:00:03:topoch(B5056-p02): TCACTIVE=>DETECTED
  130. 13:00:03:clearFDB (2, 0, other ports, 'DETECTED')
  131. 13:00:03:topoch(B5056-p02): DETECTED=>TCACTIVE
  132. get-st-p
  133.  E   p01 8001 Dis  0400-00c013000001 0400-00c013000001 8001  
  134.      p02 8002 Fwd  0400-00c013000001 0400-00c013000001 8002 D
  135.  E   p03 8003 Dis  0400-00c013000001 0400-00c013000001 8003  
  136.  E   p04 8004 Dis  0400-00c013000001 0400-00c013000001 8004  
  137. 13:00:29 B5056 > 
  138. 13:02:47 B5056 > quit
  139. alex alex ~/Stp.emu>