is it possible to persist IFNAME by login?

Questions related to general functionality
Post Reply
beiriz
Posts: 10
Joined: 05 Mar 2016, 12:31

is it possible to persist IFNAME by login?

Post by beiriz »

Good afternoon,
I monitor traffic from some specific clients with Zabbix-Agent. This in Accel in PPPoE mode. In Mikrotik I collected the traffic I wanted by the interface name "pppoe-LOGIN_PPPOE". But in Accel the names are only sequential, pppXXXX ... Then the problem is that the client takes another ifname when reconnected ... Can I persist ifname by login, or even switch to ppp-LOGIN_PPPOE? Thank you :)
beiriz
Posts: 10
Joined: 05 Mar 2016, 12:31

Re: is it possible to persist IFNAME by login?

Post by beiriz »

I saw that we can use ifname = pptp% d, ifname = pppoe% d, ifname = l2tp% d or ifname = sstp% d /etc/accel-ppp.conf. Is it possible to use, for example, "pppoe%l" (where "l" would be the LOGIN)? Thank you
nik247
Posts: 108
Joined: 11 Oct 2014, 15:57

Re: is it possible to persist IFNAME by login?

Post by nik247 »

You can use radius for rename interfaces.
From my accel-ppp: # accel-cmd show sessions
ifname | username | calling-sid | called-sid | ip | rate-limit | type | state | rx-bytes | tx-bytes | uptime
-----------------+---------------+-------------------+------------+-----------------+-------------+-------+--------+------------+------------+----------
ipoe-sw0148-03 | sw0148-03 | 78:54:2e:da:9a:9d | vlan148 | 10.102.6.221 | 50003/10000 | ipoe | active | 0 B | 77.4 KiB | 01:14:00
ipoe-sw0216-01 | sw0216-01 | f8:1a:67:f1:ef:37 | vlan216 | 10.102.0.250 | 50003/10000 | ipoe | active | 3.9 MiB | 324.5 MiB | 01:13:45
ipoe-gp0224b-06 | gp0224b-06 | 90:2b:34:ad:34:0d | vlan224 | 10.102.6.208 | 95001/10000 | ipoe | active | 9.1 MiB | 40.6 MiB | 01:10:43
ipoe-gp0224d-31 | gp0224d-31 | e8:94:f6:b0:71:4b | vlan224 | 10.102.1.4 | 40001/4000 | ipoe | active | 14.8 KiB | 48.0 KiB | 00:42:24
ppp-12828 | 12828 | 18:a6:f7:66:6e:21 | vlan120 | 10.102.0.221 | 50003/10000 | pppoe | active | 10.5 KiB | 81.6 KiB | 01:20:51
ppp-11755 | 11755 | d4:ca:6d:92:1d:af | vlan120 | 193.202.118.129 | 10000/10000 | pppoe | active | 347.7 KiB | 289.6 KiB | 01:19:54
ppp-11957 | 11957 | d8:50:e6:c6:b4:4d | vlan120 | 10.102.2.107 | 2000/2000 | pppoe | active | 246 B | 252 B | 01:19:0
beiriz
Posts: 10
Joined: 05 Mar 2016, 12:31

Re: is it possible to persist IFNAME by login?

Post by beiriz »

Perfect! :) I find the procedure in the forum...viewtopic.php?f=9&t=819&p=3260&hilit=rename#p3260 Thank you
Post Reply