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.

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

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

Jealousy#<br />

If the device is an IDS/IPS, it might be required to have it participate in the network where<br />

the switch must learn the MAC address of the device <strong>and</strong> where the IDS/IPS might need to<br />

inject traffic, as shown in Example 7-2. Typically, IPS actively participate in the network to<br />

inject traffic to thwart an attack. In these cases, the ingress <strong>and</strong> the learning configuration<br />

parameters will be wanted.<br />

Example 7-2. Configuring a SPAN Monitor Port for IDS/IPS<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/26<br />

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

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

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

Jealousy#<br />

After the monitor port is configured, the next step is to configure the SPAN monitor session.<br />

Source <strong>and</strong> destination interfaces are configured under the SPAN monitor session in<br />

addition to VLAN filters. Finally, the state of the SPAN session, shut or no shut, is<br />

configured in SPAN monitor session mode as well. In Example 7-3, a monitor session is<br />

configured that will SPAN traffic from VLANs 100, 101, <strong>and</strong> 102 to destination port e1/26.<br />

This SPAN monitors traffic that ingresses (rx) VLAN 100, traffic that egresses (tx) VLAN<br />

101, <strong>and</strong> both on VLAN 102.<br />

Note<br />

The default direction for SPAN monitoring is both. Use of tx or rx direction narrows<br />

the traffic monitored.<br />

Example 7-3. Configuring a SPAN Monitor 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.

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

Saved successfully!

Ooh no, something went wrong!