The invention provides a gateway configuration method and device,
electronic equipment and a readable storage medium, and is applied to the technical field of vehicles. The method comprises the steps of firstly obtaining a description file of each
network segment connected with a gateway, then determining target messages in a plurality of network segments based on message information in a plurality of description files, generating routing information of the target messages according to the message information of the target messages stored in the plurality of description files, and configuring the routing information for the gateway, and the gateway can transmit the target message among different network segments based on the routing information. According to the gateway configuration method provided by the invention, the automatic configuration of the routing information can be realized, so that the time spent in the routing information configuration process can be shortened, and the
software development efficiency of the gateway can be improved.