![virtual access GW2021 Скачать руководство пользователя страница 371](http://html1.mh-extra.com/html/virtual-access/gw2021/gw2021_user-manual_1030151371.webp)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 371 of 423
UCI/Package Option
Description
Web: SNMP Alias ifindex
UCI:
network.@interface[X].snmp_alias_ifindex
Opt: snmp_alias_ifindex
Defines a static SNMP interface alias index for this interface, that
can be polled using via the SNMP interface index
(snmp_alias_1000)
Blank
No SNMP interface alias index
Range
0 - 4294966295
Web: n/a
UCI:
network.@interface[X].snmp_alias_ifdescr
Opt: snmp_alias_ifdescr
Defines an alias name to be reported for the UCI name in the
enterprise MIB for UCI interfaces, and in alias entries in the
ifIndex table. If present, this option supercedes the default
ifDescr value (usually the UCI interface name, or configured
ifName)
Blank
No SNMP interface alias name
Range
Table 123: Information table for static SNMP alias interface
36.4.3
Configuring SNMP interface alias using the command line
SNMP interface alias is configured under the network package /etc/config/network
The following examples use an interface section named MOBILE.
36.4.3.1
SNMP interface alias using UCI
root@VA_router:~# uci show network
network.MOBILE=interface
……
network.MOBILE.snmp_alias_ifindex=11
network.MOBILE.snmp_alias_ifdescr=primary_mobile
……
36.4.3.2
SNMP interface alias using package options
root@VA_router:~# uci show network
config interface ‘MOBILE’
……
option snmp_alias_ifindex ‘11’
option snmp_alias_ifdescr ‘primary_mobile’
……
36.4.4
SNMP interface alias MIBS
OID Name
OID
interface alias table
.1.3.6.1.2.1.2.2.1.1.
snmp_alias_ifindex
.1.3.6.1.2.1.2.2.1.1.<snmp_alias_1000>
snmp_alias_ifdescr
1.3.6.1.4.1.2078.3.2.66.1.1.<index>.{5,6}