cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1322
Views
1
Helpful
2
Replies

Show traffic in a GRE Tunnel

kiwiterra
Level 1
Level 1

Hello !

I have a N3K-C3048TP-1GE running NXOS 9.3(7) and I am trying to monitor my network interfaces with Zabbix. Everything works fine for the ethernet interfaces but the GRE interfaces do not show up.

I went to CLI and when I display an ethernet interface, the traffic is visible (https://i.imgur.com/rk6nnj3.png) but not on a GRE interface (https://i.imgur.com/0u3yj29.png).

If anyone has a solution that allows me to know the traffic passing through my different GREs, I'm interested!

Thanks to you.

2 Replies 2

M02@rt37
VIP
VIP

Hello @kiwiterra 

To monitor the traffic passing through GRE interfaces, you can try using NetFlow to export traffic statistics to a monitoring system such as Zabbix.

Here's an example of how to configure NetFlow on your N3K switch:

-- Enable NetFlow on the switch:

N3K(config)# feature netflow

-- Configure the NetFlow export parameters, such as the IP address of the NetFlow collector, the NetFlow version, and the export interface:

N3K(config)# flow exporter my-exporter
N3K(config-flow-exporter)# destination

<collector-ip-address>
N3K(config-flow-exporter)# source <export-interface>
N3K(config-flow-exporter)# version 9
N3K(config-flow-exporter)# transport udp 9996
N3K(config-flow-exporter)# exit

-- Define the NetFlow record to include the traffic fields you want to monitor, such as source and destination IP addresses, protocol, and port numbers:

N3K(config)# flow record my-record
N3K(config-flow-record)# match ipv4 source address
N3K(config-flow-record)# match ipv4 destination address
N3K(config-flow-record)# match transport source-port
N3K(config-flow-record)# match transport destination-port
N3K(config-flow-record)# collect counter bytes
N3K(config-flow-record)# collect counter packets
N3K(config-flow-record)# exit

-- Apply the NetFlow configuration to the GRE interface:

N3K(config)# interface tunnel1
N3K(config-if)# ip flow ingress
N3K(config-if)# exit

-- Verify that NetFlow is working correctly by checking the NetFlow statistics and reviewing the collected data. You can use the [show flow exporter statistics] and [show flow monitor] commands to view the NetFlow statistics.

Once you have configured NetFlow on your N3K switch, you can configure Zabbix to receive and process the NetFlow data, and then use Zabbix to monitor the traffic passing through your GRE interfaces.

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

he mention CLI 
in NSK if you show interface you can see Rx and Tx count increase but for GRE tunnel this no happened.