Код: Выделить всё
snmpwalk -c my_community -v 1 localhost
Код: Выделить всё
snmpwalk -c my_community -v 1 192.168.0.1
Код: Выделить всё
Timeout: No Response from 192.168.0.1
Модератор: terminus
Код: Выделить всё
snmpwalk -c my_community -v 1 localhost
Код: Выделить всё
snmpwalk -c my_community -v 1 192.168.0.1
Код: Выделить всё
Timeout: No Response from 192.168.0.1
Код: Выделить всё
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:0e:2e:be:56:1f
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Код: Выделить всё
# uname -rs
FreeBSD 6.2-RELEASE
Код: Выделить всё
# tcpdump -i fxp0 -q -n -t host 192.168.0.1 and port 161
IP 192.168.0.5.53480 > 192.168.0.1.161: UDP, length 56
IP 192.168.0.5.53480 > 192.168.0.1.161: UDP, length 56
IP 192.168.0.5.53480 > 192.168.0.1.161: UDP, length 56
IP 192.168.0.5.53480 > 192.168.0.1.161: UDP, length 56
Код: Выделить всё
snmpwalk -c my_community -v 1 192.168.0.1
Код: Выделить всё
syslocation "Bill"
syscontact rusol
rwuser my_community noauth
rocommunity my_community
rwcommunity my_community
trapsink localhost my_community
trap2sink localhost my_community
informsink localhost my_community
trapcommunity my_community
authtrapenable 2
Код: Выделить всё
# /etc/rc.d/ipfw stop
# ipfw -f flush
Код: Выделить всё
ipfw -f flush
Код: Выделить всё
# ipfw show 312
00312 92 7656 allow udp from any to any dst-port 161 via rl0 keep-state
Код: Выделить всё
# sockstat -p 161
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root snmpd 62766 16 udp4 127.0.0.1:161 *:*
Код: Выделить всё
# sockstat -p 161
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root snmpd 62766 16 udp4 *:161 *:*