Train of a railway vehicle, consisting of a plurality of carriages, the plurality of carriages including a leading carriage, a trailing carriage (V1') and a set of passenger carriages (V2, V3i, V2') coupled between the leading and trailing carriages (V1, V1'), the train comprising a control-command communication network, a main computer and a plurality of equipment items provided in each carriage (V1, V2, V3i) of the plurality of carriages, the control-command communication network having a ring topology extending across the entire train, allowing daisy-chaining of a plurality of switches, at least one of the plurality of switches being arranged in each carriage (V1, V2, V3i) of the plurality of carriages, the equipment of a carriage (V1, V2, V3i) being connected to the control-command communication network via said at least one switch fitted to said carriage (V1, V2, V3i), the set of passenger carriages (V2, V3i, V2') of the plurality of carriages (V1, V2, V3i) being modifiable according to a configuration chosen to make up the train, the main computer and the switches being configured as a function of the chosen configuration so that the main computer can communicate with the equipment of all the carriages (V1, V2, V3i) present, the main computer running management application software for the control-command communication network so as to ensure that control-command messages are routed in real time, characterised in that the main computer is configured to change the network configuration of the switches and equipment to adapt to a change in the composition of the train, in the absence of a change in the configuration parameters of the control-command network, the main computer being configured to perform a function of instantiating functional blocks common to several train configurations. the control-command communication network having a ring topology extending across the entire train, allowing daisy-chaining of a plurality of switches, at least one of the plurality of switches being arranged in each carriage (V1, V2, V3i) of the plurality of carriages, the equipment of a carriage (V1, V2, V3i) being connected to the control-command communication network via said at least one switch fitted to said carriage (V1, V2, V3i), the set of passenger carriages (V2, V3i, V2') of the plurality of carriages (V1, V2, V3i) being modifiable according to a configuration chosen to make up the train, the main computer and the switches being configured as a function of the chosen configuration so that the main computer can communicate with the equipment of all the carriages (V1, V2, V3i) present, the main computer running management application software for the control-command communication network so as to ensure that control-command messages are routed in real time, characterised in that the main computer is configured to change the network configuration of the switches and equipment to adapt to a change in the composition of the train, in the absence of a change in the configuration parameters of the control-command network, the main computer being configured to perform a function of instantiating functional blocks common to several train configurations.