LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 18

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 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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: 18

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 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply

Tags
ethernet, interface, snmp



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration