22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 7-5. Displaying a Monitor Session Configuration with Ingress <strong>and</strong> Learning<br />

Click here to view code image<br />

Jealousy# conf t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Jealousy(config)# int e1/26<br />

Jealousy(config-if)# switchport monitor ingress learning<br />

Jealousy(config-if)# end<br />

Jealousy# show monitor session 1<br />

session 1<br />

---------------<br />

description : SPAN Session 1<br />

type<br />

: local<br />

state<br />

: down (No operational src/dst)<br />

source intf :<br />

rx :<br />

tx :<br />

both :<br />

source VLANs :<br />

rx : 100,102<br />

tx : 101-102<br />

both : 102<br />

filter VLANs : filter not specified<br />

destination ports : Eth1/26 (f+l)<br />

Legend: f = forwarding enabled, l = learning enabled<br />

Configuration of a virtual SPAN session is the same as a normal SPAN session with the<br />

difference residing in the configuration of the destination ports. A virtual SPAN session<br />

enables the network administrator to use a single SPAN session on an 802.1Q trunk <strong>and</strong><br />

direct traffic from specific VLANs to the appropriate network analyzers, as demonstrated in<br />

Example 7-6 for the network in Figure 7-2.<br />

Example 7-6. Configuring a Virtual SPAN Session<br />

Click here to view code image<br />

Jealousy# config t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Jealousy(config)# int e1/25<br />

Jealousy(config-if)# switchport

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!