Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / Juniper / Determining the Port Number in a “monitor traffic interface” output

Determining the Port Number in a “monitor traffic interface” output

June 28, 2016 by James Palmer

When running the command monitor traffic interface, the output gives the IP address followed by a name. This article explains how to determine what port is being used.

After executing the command sample monitor traffic interface, the following message is logged:

02:00:54.359552 Out PPPoE [ses 1159]IP 10.10.10.220.sae-urn > 172.16.10.143.sae-urn: UDP, length 96

How do you determine the port number sae-urn? It is a name resolution to a port, so what port number is this?

By default, when executing the command monitor traffic interface, the port number for the packet resolves to a name based on an internal name resolution database. This database can be found from the shell of a Junos OS device in the file /etc/services.
For example,

02:00:54.359552 Out PPPoE [ses 1159]IP 10.10.10.220.sae-urn > 172.16.10.143.sae-urn: UDP, length 96

We can grep for sae-urn in /etc/services:

root@% grep sae-urn /etc/services
sae-urn         4500/tcp
sae-urn         4500/udp
root@%

From this, we can see that sae-urn is port 4500.
Alternatively, when executing the command monitor traffic interface, you can choose the command monitor traffic interface no-resolve, and this will tell the device to not do name resolution on the port. When doing this, you will see the port number instead of sae-urn in the output:

02:00:54.359552 Out PPPoE [ses 1159]IP 10.10.10.220.4500 > 172.16.10.143.4500: UDP, length 96

 

Related

Filed Under: Juniper

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in