Network question

Ynog

Golden Member
Oct 9, 2002
1,782
1
0
Say your on a closed network, no routers just hubs and switches.

Is it possible to find out the route a packet takes to go to another machine
on that network. This would be including any switches or hubs it might pass through.
I am not sure if this is possible. I was pretty sure traceroute would only measure hops
through routers, not hubs and switches, but its been a long while since I had to deal
with networking on low level situations.


Also does anyone know where I can find a low level description of how DHCP works.
Besides looking at DHCP server code.
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
You have no routers, no there are no ip addresses being used for communication. Switches operate on layer 1 and 2 of the OSI model.

Layer2 deals only with MAC addresses so you can ping an IP(assuming it is configured correctly) , but you will not be told that you are hitting the switch

whoops....TYPE...FIXED IN BOLD
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Basically, your switch will have to do an arp request (correct terminology?)to get the MAC of the IP that was requested. The switch will respond by broadcasting it to everyone, and the client PC will answer
 

classy

Lifer
Oct 12, 1999
15,219
1
81
Everything Goose said. But to add to that your switch maintains a table as well. If the destination machine's mac address has already been resolved then the switch will just forward the packet to that machine without repeating an arp broadcast. You have to clarify the what it is exactly you want to know about DHCP.
 

Garion

Platinum Member
Apr 23, 2001
2,331
7
81
Much shorter answer: No. From your local machine, all you know about is the MAC address of the remote machine, there's no tracing of the L1 and L2 The only way is to simple trace the path by hand, usually tracing cables.

The ONLY time you can do this administratively is if you have fully managed switches along the line and you can look at the forwarding tables to see what MAC addresses are on what ports. Not common in smaller networks, however.

- G
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
Originally posted by: Garion
Much shorter answer: No. From your local machine, all you know about is the MAC address of the remote machine, there's no tracing of the L1 and L2 The only way is to simple trace the path by hand, usually tracing cables.

The ONLY time you can do this administratively is if you have fully managed switches along the line and you can look at the forwarding tables to see what MAC addresses are on what ports. Not common in smaller networks, however.

- G

bingo. now if you have the SNMP community strings of the switches then you can used programs that will trace the layer2 route. But if its not under your administrative control, forget about it.
 

howdyduty

Senior member
Feb 21, 2001
490
0
0
Why would you need to find the route/path if it is only local area networking? Only if you have them cross/matrix connected would there not be only one path. You could find the path like mentioned above using the MAC tables on the devices. But, its not like a tracert with IP routing. You have to access the devices via console or snmp or similar.