Prosmotrel neskolko desyatkov soobshenii po povodu SNMP na forum'e, no tak i ne nashel vnyatnogo otveta na vopros:
mozhno li pomenyat peremennuyu:
ip.ipForwarding
cherez command'u paketa NET-SNMP:
snmpset -v 2c -c private localhost ip.ipForwarding.0 i 2
or
snmpset -v 2c -c private localhost ip.ipForwarding.0 =2?
u menya resultati sleduischie:
Error in packet.
Reason: notWritable (that object does not support modification
Failed object: IP-MIB::ipForwarding.0
hotya eta peremennaya obyavlena read-write:
# snmptranslate -Td -OS -IR ipForwarding
IP-MIB::ipForwarding
ipForwarding OBJECT-TYPE
-- FROM IP-MIB, RFC1213-MIB
SYNTAX INTEGER {forwarding(1), notForwarding(2)}
MAX-ACCESS read-write
STATUS current
DESCRIPTION "The indication of whether this entity is acting as an IP
router in respect to the forwarding of datagrams received
by, but not addressed to, this entity. IP routers forward
datagrams. IP hosts do not (except those source-routed via
the host)."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) ip(4) 1 }.