A method of operating an energy grid with a computer unit and a plurality of connection boxes (4, 4', 4", 4"', 4""), wherein, in each connection box (4, 4', 4", 4"', 4""), a branching internal energy line electrically conductively connects at least three energy connections (411, 412, 413) of this connection box (4, 4', 4", 4"', 4"") to one another, the method comprising a topology identification including the following steps: - sequential interrogation of the connection boxes (4, 4', 4", 4"', 4"") by the computer unit by means of an associated software via an associated computer data network connection and via at least one box data network connection of at least a first connection box and via one or more box data network connections (42, 42', 42", 42"', 42"") and/or one or more energy connections (411, 412, 413, 411', 412', 413', 411", 412", 413", 411 "', 412"', 413"', 411"", 412"", 413"") of the connection boxes (4, 4', 4", 4"', 4""); - carrying out a direct neighbor identification between each connection box (4, 4', 4", 4"', 4"") and at least one connection box (4, 4', 4", 4"', 4"") directly neighboring thereto, wherein such mutually directly neighboring connection boxes (4, 4', 4", 4"', 4"") distinguish themselves in that they are connected to one another by a respective one of their energy connections (411, 412, 413, 411', 412', 413',...) via an energy cable (5, 5', 5", 5"', 5""), an associated identification being transmitted at least from one of these two directly neighboring connection boxes (4, 4', 4", 4"', 4"") to the respective other one of these two directly neighboring connection boxes (4, 4', 4", 4"', 4"") via this energy cable (5, 5', 5", 5"', 5""), electrical filters in the connection boxes (4, 4', 4", 4"', 4"") ensuring that the data used for the identification are exchanged exclusively between neighboring connection boxes (4, 4', 4", 4"', 4""); - transmitting the direct neighbor relationships from the respective connection boxes (4, 4', 4", 4"', 4"") to the computer unit; - imaging of the topology of the energy grid corresponding to the transmitted direct neighbor relationships by the computer unit by means of the software. - sequential interrogation of the connection boxes (4, 4', 4", 4"', 4"") by the computer unit by means of an associated software via an associated computer data network connection and via at least one box data network connection of at least a first connection box and via one or more box data network connections (42, 42', 42", 42"', 42"") and/or one or more energy connections (411, 412, 413, 411', 412', 413', 411", 412", 413", 411 "', 412"', 413"', 411"", 412"", 413"") of the connection boxes (4, 4', 4", 4"', 4""); - carrying out a direct neighbor identification between each connection box (4, 4', 4", 4"', 4"") and at least one connection box (4, 4', 4", 4"', 4"") directly neighboring thereto, wherein such mutually directly neighboring connection boxes (4, 4', 4", 4"', 4"") distinguish themselves in that they are connected to one another by a respective one of their energy connections (411, 412, 413, 411', 412', 413',...) via an energy cable (5, 5', 5", 5"', 5""), an associated identification being transmitted at least from one of these two directly neighboring connection boxes (4, 4', 4", 4"', 4"") to the respective other one of these two directly neighboring connection boxes (4, 4', 4", 4"', 4"") via this energy cable (5, 5', 5", 5"', 5""), electrical filters in the connection boxes (4, 4', 4", 4"', 4"") ensuring that the data used for the identification are exchanged exclusively between neighboring connection boxes (4, 4', 4", 4"', 4""); - transmitting the direct neighbor relationships from the respective connection boxes (4, 4', 4", 4"', 4"") to the computer unit; - imaging of the topology of the energy grid corresponding to the transmitted direct neighbor relationships by the computer unit by means of the software.