Configuring a Monitor Port for ERSPAN

An ERSPAN monitor port is the port on which traffic is captured and sent to a remote destination over a Layer 3 network.

Before you configure the monitor port, you must configure an ERSPAN profile.

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode.
    device(config)# interface ethernet 1/2/3
    
  3. Configure the mirror port for ERSPAN.
    device(config-if-e1000-1/2/3)# monitor profile 1 both
    
  4. Verify the configuration.
    device(config-if-e1000-1/2/3)# show erspan profile 1
    Profile 1
    Type             ERSPAN
    Mirror destination Reachable.
    Destination IP   10.1.1.100
    Destination MAC  cc4e.0000.0001
    Source IP        10.1.1.1
    Source MAC       cc4e.0000.0000
    Outgoing port    1/2/3
    Outgoing VLAN    101
    Outgoing VE      101
    Ports monitored:
      Input monitoring      : (U1/M1)   1 
      Output monitoring     : (U1/M1)   1 
    HW destination id for each device:
    stack_id/device:dest_id   1/1:3c000000 
    
Port mirroring is now enabled between the monitor port and the destination that was specified in the ERSPAN profile.

ERSPAN Monitor Port Configuration Example

device# configure terminal 
device(config)# interface ethernet 1/2/3
device(config-if-e1000-1/2/3)# monitor profile 1 both
device(config-if-e1000-1/2/3)# show erspan profile 1