Configuring the AppGigabitEthernet Interface for ERSPAN You can either use a Layer 2 port or a Layer 3 port for the ERSPAN traffic. Use the no switchport mode command to change the port from a Layer 2 interface to a Layer 3 interface. Note Before you begin 1. Step 1 to Step 9 show how to configure a VLAN for traffic mirroring. 2. Step 10 to Step 14 show how to configure the AppGigabitEthernet interface to transport ERSPAN-mirrored data traffic to the IOx virtual application. SUMMARY STEPS 1. enable 2. configure terminal 3. vtp mode off 4. vlan { vlan-ID | vlan-range } 5. exit 6. interface vlan vlan-ID 7. ip address ip-address mask 8. no shutdown 9. exit 10.
interface AppGigabitEthernet number 11. (Optional) no switchport mode 12. (Optional) ip address ip-address mask 13. (Optional) switchport mode trunk 14. end Application Hosting Configuring the AppGigabitEthernet Interface for ERSPAN Command or Action Purpose Step 7 origin ip address ip-address Example: Device(config-mon-erspan-src-dst)# origin ip address 10.1.1.2 Configures the IP address used as the source of the ERSPAN traffic. Step 8 erspan-id erspan-flow-id Example: Device(config-mon-erspan-src-dst)# erspan-id 5 Configures the ID used by the source and destination sessions to identify the ERSPAN traffic, which must also be entered in the ERSPAN destination session configuration.
Step 9 end Example: Device(config-mon-erspan-src-dst)# end Exits ERSPAN monitor source session configuration mode and returns to privileged EXEC mode. Application Hosting 28