Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `5: eth-access: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
- link/ether 96:52:79:33:7a:90 brd ff:ff:ff:ff:ff:ff
- inet 192.168.0.12/28 scope global eth-access
- valid_lft forever preferred_lft forever
- inet 192.168.0.13/28 scope global secondary eth-access
- valid_lft forever preferred_lft forever `
- 17:55:24.692149 IP (tos 0x0, ttl 63, id 35960, offset 0, flags [DF], proto UDP (17), length 76)
- 192.168.0.116.55421 > 192.168.0.13.161: { SNMPv2c C="Test" { GetNextRequest(26) R=361171477 .1.3.6.1.2.1.1 } }
- 17:55:24.693519 IP (tos 0x0, ttl 64, id 22807, offset 0, flags [DF], proto UDP (17), length 133)
- 192.168.0.12.161 > 192.168.0.116.55421: { SNMPv2c C="Test" { GetResponse(83) R=361171477 .1.3.6.1.2.1.1.1.0="SunOS Node1 5.11 pn-tpOS-2.6.1-2060112460 i86pc" } }
- echo 252 snmp >> /etc/iproute2/rt_tables
- ip rule add from 192.168.0.13 table snmp
- ip route add default via 1192.168.0.1 dev eth-access src 192.168.0.13 table snmp
- ip route add 192.168.0.0/28 dev eth-access src 192.168.0.13 table snmp
- # ip rule list
- 0: from all lookup local
- 32765: from 192.168.0.13 lookup snmp
- 32766: from all lookup main
- 32767: from all lookup default
- # ip route list table snmp
- default via 192.168.0.1 dev eth-access src 192.168.0.13
- 192.168.0.0/28 dev eth-access scope link src 192.168.0.13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement