Question

How do I specify which IP address or Network Card that Windows Server 2003 should listen on?

Asked by: SFC-Barresi

I have installed and configured the SNMP Service on a Microsoft Windows 2003 server. The server has two network cards and each network card has 4 IP addresses. We use one network card for customer traffic and the second network card for management traffic. Currently the SNMP service is only responding to requests on the first network card (the one reserved for customer traffic). What I want to do is to is tell the service to listen on a specific IP or network card. How can I accomplish this? Is it even possible?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-28 at 09:52:16ID24767460
Tags

Windows Server 2003

,

SNMP

,

Networking

Topics

Miscellaneous Networking

,

Server Applications

,

MS System Center

,

Windows 2003 Server

Participating Experts
2
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Listener ports
    I have a few questions. 1. Everytime I try to logon to Oracle, it says there are no listener ports. What are they and why can't I login? 2. What is a Oracle Management Server? 3. What is a repository? Thanks for the help.
  2. Listener is not listening.
    Hello experts. I have a problem with my listener not listening. I have 8.1.5 so when I go to start menu and then oracle --> net8 configuration assistant. This has 4 options : listener configuration naming method configuration local net service name configuration director...
  3. Starting listener in a script
    I have a little test script to test starting listener in a script. ~ #!/bin/sh ORA_HOME=/u01/app/oracle/product/9.2.0.1.0 ORA_OWNER=oracle export ORA_HOME ORA_OWNER su - $ORA_OWNER -c "/usr/u01/app/oracle/product/9.2.0.1.0/bin/lsnrctl start" from the command li...
  4. Listener syntax
    What is wrong with this listener? LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 09-OCT-2004 18:47:40 Copyright (c) 1991, 2004, Oracle. All rights reserved. ...
  5. How-To:  Listen on Port
    [VS.NET 2005] I need an application to listen to a certain TCP/IP port. When this app--a Windows service, I assume it'll need to be--detects a certain type of traffic, it will need to connect to a remote server (perhaps using .NET Remoting) and call one or more methods on a...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ShineOnPosted on 2009-10-01 at 04:55:07ID: 25467698

You  have different subnets in order to segregate and properly direct the traffic to the appropriate NIC, correct?  Not just VLANs or NAT redirection from an external router?

When you configured SNMP on this server using the SNMP service configuration dialog, did you configure security, and specify what host(s) to accept SNMP requests from?  I would expect that it would listen on whatever address(es) that is/are in the subnet that the host(s) you specify is/are in.  If you're doing traps, you can also specify your trap destination address(es) in that configuration tab of the SNMP control panel

I'd assume that  if you want to truly segregate your traffic to a customer network and a management network, that the management network wouldn't be reachable by the default gateway associated to the customer network address(es) and would be in (a) different subnet(s) and/or vlan(s) that would not be reachable from the subnet(s)/vlan(s) associated to the client network(s),  but would rather be directly accessible as part of the same subnet(s) and/or vlan(s) that the address(es) on the management network is/are in, and that would determine the listening address(es) of the service.  

See this for info on configuring the SNMP service on 2003 server: http://support.microsoft.com/kb/324263

 

by: SFC-BarresiPosted on 2009-10-01 at 05:15:03ID: 25467808

Thanks for your response, there actually isn't any VLAN or NAT going on to segregate the traffic. The reason the IP addresses are on separate NICs is only for statistics and metering (i.e. trending customer bandwidth vs. management bandwidth). The reason for this is that due to the nature of the services we provide, we are prone to being the target of DDoS attacks. I also would like to be able to specify the IP that SNMP listens on so that I can track in my database exactly which addresses I should be targeting. For some reason SNMP always just seems to pick up the first IP address on the first network card in the system. Any thoughts on that?

 

by: ShineOnPosted on 2009-10-01 at 06:10:04ID: 25468230

Are they all on the same subnet?

 

by: ShineOnPosted on 2009-10-01 at 06:55:06ID: 25468622

Generally speaking...

Interface-specific services usually have configuration settings to specify the interface.  

Non-interface-specific services will usually grab the first-bound address in the subnet the service's configured address resides in, regardless of interface.   If you don't specify any addresses for such a service, it will grab the first-bound address on the first-bound interface.  Or, if it's a routable protocol, it will grab the interface and address that has the shortest path to the target address, which might be the one with the default route (gateway).

 

by: SFC-BarresiPosted on 2009-10-01 at 11:45:11ID: 25471894

So are you saying that the Windows SNMP service listener (the service that accepts SNMP requests) is interface specific then? If so, can I specify the interface it should listen on instead of allowing it to just bind to the first one available?

Thanks, Jason

 

by: ShineOnPosted on 2009-10-01 at 19:52:34ID: 25474870

No, I'm saying it's not.  It doesn't have configuration settings to bind it to a specific interface.

Are your customer IP's and management IP's on separate subnets?  Is/are your SNMP management server(s) on (a) management-subnet address(es) or on (a) customer-subnet address(es)?  Have you specified what the management host(s) is/are?

 

by: rsivanandanPosted on 2009-10-01 at 21:00:39ID: 25475068

Any application, unless it has the capability to chose from an assigned ip would only pass on a request to OS for available IP addresses. Now there are different applications that'd listen to which IP address you want to assign it to (for example, licensing based on IP address).

In short the logic has to be in the application, otherwise, it is first come basis.

Cheers,
rsivanandan

 

by: SFC-BarresiPosted on 2009-10-02 at 06:25:48ID: 25477612

the IP's are on the same subnet

j

 

by: SFC-BarresiPosted on 2009-10-05 at 11:34:43ID: 25498119

I think that my question is being misunderstood so I'm going to try and explain it again using an example... I have a server in Dallas, TX with Windows Server 2003 Standard Edition on it. This server is connected to the internet by two network adapters (the network configuration is listed in the code snippet section). My goal is, from my remote machine in Cleveland, OH to make SNMP requests to IP 69.12.15.131. The problem with this is that the SNMP service on the server is ONLY responding to requests sent to 69.12.25.2

I know that I can change the port that SNMP listens on by modifying the services file but what I need to do is to change the IP address that SNMP is listening on. I have a theory that I may be able to use IPSec to do this but I am in the midst of performing that experiment now. Also, these two network cards are connected to the same fiber on the same switch (although in this specific case one of the cards has an IP on a separate subnet, this is not the case for other servers with the same problem).

Any help or thoughts are greatly appreciated!

Thanks, Jason

Windows IP Configuration
 
   Host Name . . . . . . . . . . . . : DFW860-JQ22CC1
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
 
Ethernet adapter Management WAN:
 
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
   Physical Address. . . . . . . . . : 00-15-C5-FB-AB-C8
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 69.12.15.131
   Subnet Mask . . . . . . . . . . . : 255.255.255.224
   Default Gateway . . . . . . . . . : 69.12.15.129
   DNS Servers . . . . . . . . . . . : 64.81.127.2
                                       69.12.12.50
 
Ethernet adapter Hosting WAN:
 
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet #2
   Physical Address. . . . . . . . . : 00-15-C5-FB-AB-C7
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 69.12.25.2
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IP Address. . . . . . . . . . . . : 69.12.15.130
   Subnet Mask . . . . . . . . . . . : 255.255.255.224
   Default Gateway . . . . . . . . . : 69.12.25.1
   DNS Servers . . . . . . . . . . . : 64.81.127.2
                                       69.12.12.50

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:

Select allOpen in new window

 

by: SFC-BarresiPosted on 2009-10-05 at 12:31:07ID: 25498704

Additionally, netstat is showing snmp.exe listening on 0.0.0.0

 

by: ShineOnPosted on 2009-10-05 at 15:21:19ID: 25500390

Anything that's listening on 0.0.0.0 means it's listening on all interfaces, all addresses.  I didn't think your management addresses were also public and traversing the Internet.

Is your management computer connecting specifically to 69.12.15.131 for the GET but it's getting its response back from 69.12.25.2?   Have you tried firewalling SNMP so the only address that accepts or can send SNMP-port traffic is the one you want to use?

I don't see a way to bind SNMP to an interface in Windows.  You can in Linux, but generally speaking, it appears SNMP is an all-interface sort of animal.  Like I indicated,, that's what the 0.0.0.0 listening address is telling you - it is listening on its port on all interfaces.

You can, and should, specify a relatively unique set of community names, and you should specify acceptable SNMP manager host addresses and set up authentication, if you're going to leave SNMP exposed to the Web AT ALL..

Personally, I'd set up an on-demand VPN connection and use a private IP, firewall filtering out all SNMP traffic other than through the authenticated point-to-point VPN link, and only accepting requests from addresses in the local, private IP range used for the management VPN.

 

by: SFC-BarresiPosted on 2009-10-06 at 07:31:53ID: 25505442

Thanks ShineOn, that was the type of answer I was looking for. It seems like I'm going to have to go the VPN type route. What had/has me so confused is that it should be responding to all requests since it's binding to the any IP (like you said). What's interesting is that it does listen on all interfaces and IPs and responds to requests IF the source is LAN traffic. So maybe it's some kind of Windows security thing?

Either way it looks like I'm just plain old S.O.L with regards to specifically setting an IP for the SNMP service. Thanks for all your help!

Jason

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...