1. A method for obtaining routing information of an electro-optical multi-layer network, comprising: determining ports on which an optical transmitter and an optical receiver are located; and adding electro-optical conversion information to the routing information on a port of an optical layer node side or an electro layer node side on which the optical transmitter and the optical receiver are located.