Jump to content

Question

Posted

Приветствую!

Прошу подсказать команду для изменения профиля доступа устройств.

5 answers to this question

Recommended Posts

  • 0
Posted
14 минуты назад, profx5015 сказал:

Приветствую!

Прошу подсказать команду для изменения профиля доступа устройств.

image.png

  • Thanks 1
  • Upvote 1
  • 0
Posted

Добрый день.  Подскажите, а как можно выполнить одну команду для нескольких устройств. Через запятую пробовал указывать mac адреса, не выходит

  • 0
Posted (edited)

Если только конф файл

ip policy Policy0
...
!
ip policy Policy1
...
!
ip policy Policy2
...

ip hotspot
    ...
    host хх:Клиент1:68 permit
    host хх:Клиент2:fb schedule schedule0
    host 64:Клиент3:48 permit
    host 64:Клиент3:48 priority 3
    host хх:Клиент4:54 permit
    host хх:Клиент4:54 policy Policy1
    host 70:Клиент5:e2 permit
    host 70:Клиент5:e2 policy Policy0
    host 70:Клиент5:e2 priority 6
    ...

у каждого клиента которому нужен какой либо профиль указываете его Policy0 или 1 или 2 и т.д.

Edited by vasek00
  • 0
Posted

@vasek00 благодарю, но не подходит, периодически нужно профили доступа менять устройствам. Нашёл решение через команду через ssh в OPKG с выполнением заранее подготовленного скрипта.

#!/opt/bin/sh

ndmq -p 'ip hotspot host xx:xx:xx:xx:xx:xx policy Policy0' -P message
ndmq -p 'ip hotspot host ff:ff:ff:ff:ff:ff policy Policy0' -P message
ndmq -p 'system configuration save' -P message

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.