How to find IP address hierarchy for single computer??

jan.nebec

Prominent
Oct 4, 2017
2
0
510
Hello!
I am working on project for school about IP addresses. And I found a little problem that professor couldn't explain me...
There leads one internet cable from ISP which goes to the router CISCO.
Router uses DHCP protocol, and it devides net to three other cables who goes to another routers/switches etc. so we can have 100+ computers in the building.

With command ipconfig I can see Default Gateway (DHCP Server) IP, which is the first switch that is between my computer and CISCO router. I am interested if there is any way to find out the IP address of the first router that came from ISP?

Or, is there any method to see whole IP connection hierarchy?

I am beginner so it's hard for me to use proper terms!
Thank you!
 
Solution
If you are wanting to see every managed switch and router your computer has to go through to get out to the internet then use tracert

If you are wanting a comprehensive map then you need to check the tables in each cisco switch/router.
There are tools to map out every computer on the network from the PC, but in an environment with multiple managed swtiches/routers the odds are you are running VLANs and block some if not most communication between the VLANs
Its not too clear what you are asking, but:

The default gateway wouldn't be a switch, it would be the router its self. In your case most likely the cisco router.
and you seem to know the whole route from your machine to the gateway.

If you want to map a path of a connection once its left your network on the isp side use the traceroute tool.
In windows you would open cmd, and do something like: tracert www.google.com
and watch the hops.
 


Thakk you for answer...from Cisco router three cables lead to another routers, that's why I can't get Cisco's IP.
As far as I know tracert command will just show me the IP of server who hosts a specific website? But I am not so sure...

 
The problem is the cisco router actually has many ip addresses. It can have one for each connection to the other routers. It also will have one or more to the ISP. It of course needs one to talk to the ISP but it may have more that are then NAT to the internal machines.

Your best bet is to use the whatsmyip type of sites. That should be the IP of the main route but it may not be the only IP of the main router if it has multiple.
 

No. It will show you the whole route (every hop/router) between your gateway or machine depending on how you use it, to the destination you give it. That destination can be on your own network btw.

But you can't see the whole network from where you are, just the lan/vlan you are on.
If you do an arp -a you will see the other machines yours has spoken to along with ip addresses and mac addresses.

But maybe one of the other tools above will prove easier to use and get some answers from. Good luck.
 
If you are wanting to see every managed switch and router your computer has to go through to get out to the internet then use tracert

If you are wanting a comprehensive map then you need to check the tables in each cisco switch/router.
There are tools to map out every computer on the network from the PC, but in an environment with multiple managed swtiches/routers the odds are you are running VLANs and block some if not most communication between the VLANs
 
Solution