LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-14-2013, 05:27 AM   #1
Ze MoreirA
LQ Newbie
 
Registered: Aug 2007
Location: Tbilisi, Georgia
Posts: 15

Rep: Reputation: 0
SNMP sends packets to wrong interface


Hi,
I have Redhat server where SNMP is configured, it is supposed to send alarm/event information to monitoring server with snmp.

I don't have much experience with SNMP, someone else configured it.

when I run tcpdump, i see that SNMP packets are dispatched from interface bond0, it is connected to different network which is not routed to management server.
If I ping management with -I bond0 version, ping does not reach it either

How can I configure SNMP to send packets via bond1? it is default interface for management network

snmp version is:
root# /usr/bin/snmpget --version
NET-SNMP version: 5.3.1
 
Old 01-14-2013, 05:31 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,398

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Add a static route that forces all traffic to your management network to exit via bond1, see this article for more details on static routes: http://www.cyberciti.biz/faq/redhat-...tatic-routing/
 
Old 01-14-2013, 05:57 AM   #3
Ze MoreirA
LQ Newbie
 
Registered: Aug 2007
Location: Tbilisi, Georgia
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TenTenths View Post
Add a static route that forces all traffic to your management network to exit via bond1, see this article for more details on static routes: http://www.cyberciti.biz/faq/redhat-...tatic-routing/
I tried that before, didn't work. now I added route to the server again:

Destination Gateway Genmask Flags MSS Window irtt Iface
172.30.146.215 172.30.146.130 255.255.255.255 UGH 0 0 0 bond1

still packet goes through 172.30.157.194. here is tcpdump output:
000009 IP 172.30.157.194.18162 > 172.30.146.215.162:
 
Old 01-14-2013, 06:10 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,398

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
From the information given I'm not going to guess what your server / router / monitoring server IP addresses are. I still believe you'll find the issue is with your route table rather than the snmp process, using traceroute / ping should show the outgoing traffic to your monitoring server on your bond1 interface if your routes are configured correctly. Also ensure that you're correctly firewalling ports 161/162 between these machines.
 
Old 01-15-2013, 01:26 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,225

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
What does 'route -n' show?
 
  


Reply

Tags
ethernet, interface, snmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP Packets karlochacon Linux - Newbie 2 11-13-2010 04:44 PM
Postfix - sends from wrong domain jax8 Linux - Server 1 11-29-2009 09:55 AM
Postfix sends mail with wrong origin domain ivanatora Linux - Software 5 05-25-2009 05:12 AM
SNMP monitor that sends alerts fancylad Linux - Server 2 05-12-2008 06:31 PM
qmail generating mail that sends to the wrong domain? shadoxity Linux - Software 5 04-16-2005 12:56 AM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration