1. A method for managing mapping in a network, comprising: programming in advance mapping relationships between a Virtual Storage Area Network (VSAN) and a Virtual Local Area Network (VLAN) of a fabric for each Fiber Channel over Ethernet (FCoE) switch needed by the fabric; obtaining, by a server, mapping relationships between VSANs and VLANs configured in all FCoE switches of the fabric; determining, by the server, that the obtained mapping relationships are inconsistent with the programmed-in-advance mapping relationships, wherein the inconsistent mapping relationships comprise at least one of an incorrect mapping and a superfluous mapping; and at least one of: automatically updating the mapping relationships between the VSANs and the VLANs configured in the FCoE switches corresponding to the inconsistent mapping relationships, and automatically updating the mapping relationships between the VSANs and the VLANs programmed in advance for the FCoE switches corresponding to the inconsistent mapping relationships, so that the mapping relationships between the VSANs and the VLANs configured in each FCoE switch of the fabric are consistent with the mapping relationships between the VSANs and the VLANs programmed in advance for each FCoE switch of the fabric.