cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
184
Views
0
Helpful
4
Replies
Highlighted
Beginner

Set PPPoE interface description from Radius

Hi all,

 

Is it possible to set a description on a PPPoE interface with Radius on an IOS-XR ?

 

I can not find information.

 

On IOS-XE, I do like this in my radius, but it does not work with IOS-XR :

 

"lcp:interface-config=description <MY BEAUTIFUL DESCRIPTION>"

Thanks in advance.

 

BR.

Nick

Everyone's tags (3)
4 REPLIES 4
Cisco Employee

Re: Set PPPoE interface description from Radius

If it's not listed here, we very likely don't support it:

https://community.cisco.com/t5/service-providers-documents/asr9k-bng-radius-and-coa-deployment-guide/ta-p/3155211

 

Could you please explain the use case for this? Maybe there's an alternative method to achieve the same functionality.

 

/Aleksandar

Beginner

Re: Set PPPoE interface description from Radius

Hi Aleksandar,

Use case, its simply when I type "show interface description", example :

On IOS-XE :

#sh int description
Interface Status Protocol Description
[... snip ... ]
Vi2.9 up up LIGNE *** username1@realm ***
Vi2.10 up up LIGNE *** username2@realm ***
[... snip ... ]

and on IOS-XR its empty, its all :

#sh int description
Thu Jan 17 11:06:33.763 CET

Interface Status Protocol Description
--------------------------------------------------------------------------------
[... snip ... ]
BE19.1799.pppoe8 up up
[... snip ... ]

it's not blocking, it's just that I like all my interfaces to be named correctly ;)

BR.
Nick
Cisco Employee

Re: Set PPPoE interface description from Radius

hi Nick,

 

that's a very neat approach, but we don't support it unfortunately on XR BNG. The full list of supported radius attributes is always included in the BNG config guide (e.g. https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-4/bng/configuration/guide/b-bng-cg-asr9000-64x/b-bng-cg-asr9000-64x_appendix_01011.html).

 

You would have to use a script on XR that parses the output of "sh subscriber session all detail". On 64-bit XR this can be done easily using Python. Python is supported in the linux shell, you can invoke it using the "run" command, e.g.

 

"run  harrdisk:/my_script.py"

 

From within Python you can use this kind of sequence to execute the XR CLI command and capture the output into an array:

 

command = '/pkg/bin/xr_cli \"show subscriber session all\"'
output = subprocess.check_output(command, shell=True)
out_array = output.split('\n')

 

Hope this helps,

/Aleksandar

 

Beginner

Re: Set PPPoE interface description from Radius

Hi Aleksandar,

Thank for this example, it's interesting.

BR.
Nick
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards