Hi Dave,

Thank you very much for all your help and assistance.  I have a better 
understanding of routers now.

I am running net-snmp in ubuntu 10.04 Lucid inside Windows XP SP3. I installed 
a Linksys router
with the assistance of Linksys tech support.  They said there was an IP 
conflict and they
set the router to 10.10.10.1 instead of 192.168.1.1.  I can see the gateway IP 
address from
Windows XP, i.e. 10.10.10.1 and I can ping it but I cannot see it from the 
ubuntu vmware 
machine.  It is showing a different gateway IP address but I can ping 
10.10.10.1.

However when I try snmpwalk ... 10.10.10.1 net-snmp times out.  I believe 
net-snmp cannot see the router.
Is there a way I can debug this?

By the way to try and find the router I am doing ifconfig on ubuntu and I check 
the gateway IP address.
There are 2 or 3 IP addresses that show up. How can I tell which device the IP 
belongs to?

Once again, thank you for all your help and assistance.

Simon Mpasi
  

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Wednesday, April 13, 2011 11:39 AM
To: Simon Mpasi
Cc: [email protected]
Subject: Re: Familiarity with Net SNMP

On 13 April 2011 15:35, Simon Mpasi <[email protected]> wrote:
> I believe a router has 2 addresses, an IP address and a MAC IP address.

No.

A network interface will typically have a hardware address
    (sometime also called a MAC address or an ethernet
     address - assuming that this is an ethernet interface!),
and an IP address

Not only are these different things - they will typically *look*
completely different.

An IP address is 32 bits, typically written as four decimal
numbers (separated by dots for readability).
   It would look something like   10.1.2.3   or 127.0.0.1

An ethernet address is 48 bits, typically written as six hex
pairs (separated by colons or hyphens, again for readability)
   Something like    f1:2e:d3:4c:b5:97


SNMP (and all IP-level protocols) work with the IP address.
You can ignore the hardware address for most purposes.



> If I want to talk to a router, which IP address do I use?

A router will have several network interfaces - one on each
of the networks that it is routing between.   You should use
the IP address corresponding to the network that you are
currently on.
    This will typically be the gateway address that you see
in the routing table on your local box.

So if you are on a machine with address 10.0.1.2
with a gateway of 10.0.0.1,   then you should use the
router address 10.0.0.1
   If you are on a machine with address 99.88.77.66
with a gateway of 99.88.77.100,   then you should use
the router address 99.88.77.100



> Also, how do I overcome
> any protection or passwords on my own router?

You do not "overcome" the protection on the router.
You use the community string (or SNMPv3 settings)
that have been configured on the router for management
of that router.
   See the router documentation for more details.



Dave

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to