We have a private network consisting of 10/100 switches that have 1 gigbit input and output. The switches are daisy chained using fiber connections between switches. For very short distances, the connection between switches might be copper. The communications will be using IP.
We want to develop an automated method of assigning fixed IP addresses to nodes on the switches based on their location in the daisy chain. For example, a node on the second switch would be assigned a
192.168.2.x address. Is there a way of determining the switch location at startup so an IP address can be assigned in such a way? One thought was using the TTL in an IP frame similar to what tracert does but I don't think switches are considered as a hop and so don't decrement the TTL. This would be done from a master node that is connected to the first switch via a 1 GB link. Another thought was using a round trip propagation delay for a packet to determine their distance from the master node. Is this possible? The thought was that the switch nodes would come up with a random address and would notify the master node who then would assign them a new address. We have complete control of the software running on the switch nodes as far as changing IP addresses. Any other suggestions are welcome?Another question I have is what the limitations are on the number of switches in this daisy chain.