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
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders