Cisco—RSPAN

Configuration - Source SW

en
conf t  
  # 設定VLAN
  vlan 999
    name RSPAN_VLAN
    remote-span
  exit
  
  # 設定Trunk
  inter giga 0/1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    switchport trunk allowed vlan 999
  exit

  # 來源端設定RSPAN
  monitor session 1 source interface giga 0/0
  monitor session 1 destination remote vlan 999

  end
wr

Configuration - SW

en 
conf t
  # 設定VLAN
  vlan 999
    name RSPAN_VLAN
    remote-span
  exit
  
  # 設定Trunk
  inter range giga 0/0-1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    switchport trunk allowed vlan 999
  exit

  end
wr

Configuration - Destination SW

en 
conf t
  # 設定VLAN
  vlan 999
    name RSPAN_VLAN
    remote-span
  exit
  
  # 設定Trunk
  inter giga 0/1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    switchport trunk allowed vlan 999
  exit

  # 來源端設定RSPAN
  monitor session 1 source remote vlan 999
  monitor session 1 destination interface giga 0/2

  end
wr

Check

show monitor session 1