Router's IP address using SNMP

Discussion in 'Cisco' started by Pokar, Nov 21, 2008.

  1. Pokar

    Pokar Guest

    Hi,

    I am recieving the trap from cisco switch. I want to get the IP
    address of default router of this switch using SNMP from my
    application. Can you please let me know the OID to get this
    information?

    Thanks in advance.

    -Bhupendra
     
    Pokar, Nov 21, 2008
    #1
    1. Advertising

  2. Pokar

    bod43 Guest

    On 21 Nov, 10:55, Pokar <> wrote:
    > Hi,
    >
    > I am recieving the trap from cisco switch. I want to get the IP
    > address of default router of this switch using SNMP from my
    > application. Can you please let me know the OID to get this
    > information?
    >
    > Thanks in advance.
    >
    > -Bhupendra


    What you want is the routing table -
    <googling>
    http://www.et.put.poznan.pl/snmp/mib2/mgroup23.html
    21 - iproutetable

    The defaults are the ones that 'points to' 0.0.0.0.
    There may be only one.

    For some table mibs you can appent an address
    to the mib to get the one you want. I have
    no idea if that is the case here

    e.g.
    1.3.6.1.2.1.4.21.1.0.0.0.0 roughly.
     
    bod43, Nov 21, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NICOLAS Charles

    ip , mac address + snmp

    NICOLAS Charles, Nov 20, 2003, in forum: Cisco
    Replies:
    0
    Views:
    657
    NICOLAS Charles
    Nov 20, 2003
  2. news.easynews.com

    SNMP - Cisco - SNMP

    news.easynews.com, Mar 4, 2004, in forum: Cisco
    Replies:
    0
    Views:
    816
    news.easynews.com
    Mar 4, 2004
  3. Replies:
    6
    Views:
    1,369
    Pankaj Ankam
    Dec 3, 2004
  4. Bhupendra

    Router's IP address using SNMP

    Bhupendra, Nov 21, 2008, in forum: Software
    Replies:
    0
    Views:
    751
    Bhupendra
    Nov 21, 2008
  5. rajasekhar

    Configure IP Address using SNMP

    rajasekhar, May 25, 2009, in forum: Cisco
    Replies:
    1
    Views:
    968
    theapplebee
    Sep 8, 2009
Loading...

Share This Page