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 mapping relationships between VSANs and VLANs configured in all of the FCoE switches of the fabric; determining that the obtained mapping relationships are inconsistent with the programmed-in-advance mapping relationships and at least one of: automatically updating mapping relationships between the VSANs and the VLANs configured in the FCoE switches corresponding to the inconsistent mapping relationships, and automatically updating 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.