smark实验记录_第1张图片

[LSW1]interface Ethernet 0/0/1
[LSW1-Ethernet0/0/1]stp disable (关闭stp)
[LSW1]interface Ethernet 0/0/2
[LSW1-Ethernet0/0/1]stp disable (关闭stp)

[LSW1]smart-link group 1
[LSW1-smlk-group1]smart-link enable 

[LSW1-smlk-group1]port Ethernet 0/0/1 master (主)
[LSW1-smlk-group1]port Ethernet 0/0/2 slave  (备)

[LSW1]smart-link group 1
[LSW1-smlk-group1]display this 
#
smart-link group 1
 port Ethernet0/0/1 master
 port Ethernet0/0/2 slave

[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was disabled
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Unknown  0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Unknown  0           0000/00/00 00:00:00 UTC+00
:00 

[LSW2]interface Ethernet 0/0/1
[LSW2-Ethernet0/0/1]shutdown 

[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Inactive 0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Active   0           0000/00/00 00:00:00 UTC+00
:00 
[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Inactive 0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Active   0           0000/00/00 00:00:00 UTC+00
:00 

[LSW2-Ethernet0/0/1]undo shutdown 

配置回切

[LSW1]smart-link group 1
[LSW1-smlk-group1]restore enable   开启回切功能
[LSW1-smlk-group1]timer wtr 30     设置时间,默认是60秒

[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Active   0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Inactive 0           0000/00/00 00:00:00 UTC+00
:00 

[LSW2-Ethernet0/0/1]shutdown

[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Inactive 0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Active   0           0000/00/00 00:00:00 UTC+00
:00 

[LSW2-Ethernet0/0/2]shutdown
[LSW1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  There is no Load-Balance
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cce8-159f
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  Ethernet0/0/1           Master Active   0           0000/00/00 00:00:00 UTC+00
:00 
  Ethernet0/0/2           Slave  Inactive 0           0000/00/00 00:00:00 UTC+00
:00 

监控链路状态
[LSW2]monitor-link group 1
[LSW2-mtlk-group1]port Ethernet 0/0/2 ?
  downlink  Set this port as downlink
  uplink    Set this port as uplink
[LSW2-mtlk-group1]port Ethernet 0/0/2 uplink 
[LSW2-mtlk-group1]port Ethernet 0/0/1 downlink