02-19-2019 08:01 AM - edited 03-08-2019 05:23 PM
I am not a network engineer but I am the one stuck trying to get the port monitoring to work.
I have a switch with three regular ports and one monitoring port
port 1 is in vlan 100 and in connected to an external switch. There is an ACL for incoming traffic applied to this port
port 2 is in vlan 200 and is connected to a laptop for access to the network
port 3 is a server in vlan 200
port 12 is the monitoring port connected to a laptop with wireshark installed
port 12 is a trunk port foir vlan 1,100, 200
for security reasons all IPs were removed from vlan 1 (not sure if this is causing the problem)
monitor session 1 source vlan 100, 200
monitor session 1 destination interface gigabitethernet 1/0/12
02-19-2019 09:22 AM
can you post running config as below :
show run interface gigabitethernet 1/0/12
show monitor session
02-19-2019 09:41 AM
#show run interface gigabitethernet 1/0/12
Interface GigabitEthernet1/0/12
switchport trunk encapulation dot1q
switchport trunk allowed 1,100,200
switchport mode trunk
switchport nonegotiate
end
#show monitor session 1
Type local session
Source VLANs :
both : 100,200
Destination Ports : Gi1/0/12
Encapsulation : Native
ingress : Disabled
02-19-2019 09:55 AM
Do below steps : ( assuming that Interface GigabitEthernet1/0/12 is connected to Laptop running wire-shark as per your earlier post)
config t
!
default Interface GigabitEthernet1/0/12
!
end
Post the below output :
show monitor session
show run Interface GigabitEthernet1/0/12
show Interface GigabitEthernet1/0/12
02-19-2019 11:05 AM
I wonder if it would make any difference if you did the port monitor source as a single vlan instead of as 2 vlans?
I would also suggest trying the monitor session specifying the individual ports rather than specifying the vlans?
HTH
Rick
02-19-2019 11:53 AM
okay I set the monitoring port interface to the defaults and right now I'm just trying to monitor vlan 200. I have a tcping session running on my client laptop (port 2) and wireshark on the monitoring port (port 12). Still not seeing any TCP traffic being monitored
show run int gigabitethernet 1/0/12
interface GigabitEthernet1/0/12
end
show monitor session 1
Type : local session
source VLANs :
both : 200
destination : Gi1/0/12
Encapsulation : Native
ingress : Disabled
show int status:
Gi1/0/1 connected 100
Gi1/0/2 connected 200
Gi1/0/3 connected 200
Gi1/0/12 monitoring 1
02-19-2019 11:59 AM
If the device connected to Port gi 1/0/12 with Wireshark running you should able to see the traffic from VLAN 200.
what is the configruation of the PC/Laptop connected to port 1/0/12 ? do you configured any IP ?
02-19-2019 12:19 PM
No ip address configured for the monitoring laptop
ipconfig just shows the bogus 169.254.x.x address
The windows network configuration for the local Area Connection:
Unchecked Client for Microsoft Networks
Unchecked QoS Packet Scheduler
Unchecked File and Print Sharing
Unchecked IPv6
Checked IPv4 (use DHCP is selected)
Checked Topology Discover Mapper I/O Driver
Checked Topology Discover responder
02-19-2019 12:07 PM
MISC setting on the switch. I don't know if any of these are preventing the monitoring of TCP traffic...
no service pad
service tcp-keepalives-in
no aaa new-model
switch 1 provision ws-3750
system mtu routing 1500
no ip source-route
ip routing
some crypto stuff...
crypto pki trustpoint
spanning-tree mode pvst
spanning-tree extend system.id
ip tcp synwait-time 10
some ntp setting
02-19-2019 12:10 PM
here is good example and tested working one for reference :
02-19-2019 01:08 PM
I tried monitoring just port 1, just port 2 and port 1-2. Still no luck.
both Gi1/0/1
Gi1/0/12
both Gi1/0/2
Gi1/0/12
both Gi1/0/1-2
Gi1/0/12
02-19-2019 11:12 PM
Just wondering, what are the devices connected to switch,.
What is the configuration of PC, can you post ethernet config screen shot and wireshart output to see what you getting.
since we can visualise what you see on your PC.
or upload Pcap file to ticket.
02-20-2019 07:39 AM
Thank you for trying monitoring individual ports. If Gig1/0/12 is the span monitoring port then no regular network traffic would be sent to it and there would be no point in trying to monitor it.
What about trying to monitor just Gig1/0/1?
And one other question. Gig1/0/12 is the monitoring port. Is that the port where the monitoring PC is connected?
HTH
Rick
02-20-2019 08:14 AM
I have tried just monitoring port 1/0/1 and yes the monitoring laptop is connected to port 1/0/12. I have configured the switch as best as I can and am leaving it to more experienced networking people here to figure out if it is working or not. If I find out what the issue is I will update this post.
02-20-2019 08:49 AM
Thanks for the update. Would you post the output of show monitor session 1
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide