How to parse the nas-port field of radius packets

Created: Dec 11, 2019 11:34:46Latest reply: Dec 11, 2019 11:37:09 74 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Hi! 

I have a problem that the NAS-PORT field information in the RADIUS packet of the S3700 switch is a 4-digit decimal number. How can it be parsed into specific port numbers and VLAN parameters?

Thanks!

  • x
  • convention:

Featured Answers
jason_hu
Admin Created Dec 11, 2019 11:37:09 Helpful(0) Helpful(0)

Hi@ster !
The port number and VLAN parameters can be resolved as follows:

For example, the NAS-PORT parameter is 4097, and 4097 is converted to binary: 0000 0000 0000 0000 0001 0000 0000 0001, and the port format is slot number (8 digits) + subslot number (4 digits) + port number (8 digits) + VLAN ID (12 digits), that is, the port number is 0/0/1, and VLAN is 1. Hope to help you.

  • x
  • convention:

All Answers
jason_hu
jason_hu Admin Created Dec 11, 2019 11:37:09 Helpful(0) Helpful(0)

Hi@ster !
The port number and VLAN parameters can be resolved as follows:

For example, the NAS-PORT parameter is 4097, and 4097 is converted to binary: 0000 0000 0000 0000 0001 0000 0000 0001, and the port format is slot number (8 digits) + subslot number (4 digits) + port number (8 digits) + VLAN ID (12 digits), that is, the port number is 0/0/1, and VLAN is 1. Hope to help you.

  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login