Host name transfer method and device adopting same

The embodiment of the invention discloses a host name transfer method and a device adopting the same, which are applied to a TRILL (Transparent Interconnection of Lots of Links) network, and relates to the field of network communication. The method comprises the following steps: a first TRILL message is received, the nickname of routing bridging equipment RB is acquired, the first TRILL message comprises the nickname of the RB, a second TRILL message is received, a host name of the RB is acquired, the second TRILL message comprises the host name of the RB, the mapping relationship between the nickname of the RB and the host name of the RB is established and stored, and the host name of the RB is acquired according to the nickname of the RB and displayed. By adopting the technical scheme provided by the embodiment of the invention enables the display result to be friendlier to a user, and the network maintainability is enhanced.