Category: Cisco

A Few Easy Steps: Cisco Switch, Setup Span Port (Port Monitoring for Packet Capture)

In this session of A Few Easy Steps, we will configure a Span Port on a Cisco Switch.  In General this will work on any Cisco Switch. In this session we will be including the setup and verification commands, following the full config sample we will also provide the commands to remove the Span/Monitoring Port. We are adding these steps because often old Span ports cause havoc with new span sessions and leaving Span sessions running is taxing on switchCPU and Memory and should not be done unless required.

Session Prerequisites:

  • You have terminal or console access to your Cisco device.

Session Assumptions:

  • Source Port is Interface FastEthernet 0/1
  • Destination Port is Interface FastEthernet 0/21
  • Monitor Session is 1
  • We will be monitoring both RX and TX traffic

Our goals of this session are:

  • Configure Source Interface
  • Configure Source Interface
  • Verify Span Settings
  • Disable Span Session

Configure Source Interface

!
conf t
!
monitor session 1 source interface fastEthernet 0/1 both
!
end
!
copy running-config startup-config

Configure Destination Interface Interface

!
conf t
!
monitor session 1 destination interface fastEthernet 0/21 
!
end
!
copy running-config startup-config

Verify Span Settings

sh monitor session 1

Entire Session:

!
conf t
!
monitor session 1 source interface fastEthernet 0/1 both
!
monitor session 1 destination interface fastEthernet 0/21 
!
end
!
copy running-config startup-config
!
sh monitor session 1

Disable Span Session

!
conf t
!
no monitor session 1
!
end
!
copy running-config startup-config

Find out more about Span Ports on a Cisco Switch here.

or

Check out this Search at NetworkSuperSearch.com.

A Few Easy Steps: Cisco Router, Disable NAT ALG for DNS

In this session of A Few Easy Steps, we will be Disabling NAT ALG for DNS on
a Cisco Router.

Session Prerequisites:

  • You have terminal or console access to your Cisco device.

Session Assumptions:

  • You have NAT Enabled
  • You do not need ALG to re-write DNS payloads to account for NAT

Our goals of this session are:

  • Disable NAT ALG for DNS

Disable NAT ALG for DNS

!
conf t
!
no ip nat service alg tcp dns
!
no ip nat service alg udp dns
!
end
!
copy running-config startup-config

 

Find out more about NAT ALG for DNS here.

or

Check out this Search at NetworkSuperSearch.com.

A Few Easy Steps: Cisco IOS, Adding a default route

In this session of A Few Easy Steps, we will be adding a static route to a Cisco Router.

In General this will work on any Layer3 Cisco IOS device.

Session Prerequisites:

  • You have a Cisco Console Cable
  • You have a serial port
  • You have a Terminal Program that you can access your Serial Port

Session Assumptions:

  • Your default route is for all unknown networks
  • The Default router IP is 192.168.0.1
  • You have at least one Routing Interface UP/UP
  • IP Routing is already enabled

Our goals of this session are:

  • Enable Default Route

Enable Default Route

ip route 0.0.0.0 0.0.0.0 192.168.0.1 1 permanent