Patent ID: 8155114

Claim:
An access device, comprising: a master shelf, comprising: a main control board of the master shelf; and a service board of the master shelf; and a slave shelf, comprising: a main control board of the slave shelf; and a service board of the slave shelf, wherein: the main control board of the slave shelf is configured to obtain its own location information and encapsulate the location information into a source Media Access Control (MAC) address, encapsulate a registration packet by using a configured management Virtual Local Area Network (VLAN) ID of the main control board of the slave shelf and a MAC address of the main control board of the master shelf as a destination MAC address, and report the registration packet to the main control board of the master shelf, the main control board of the master shelf is configured to query for a corresponding VLAN according to the management VLAN ID in the registration packet after receiving the registration packet, obtain a shelf ID of the slave shelf, and then return a registration response packet containing the shelf ID of the slave shelf to the main control board of the slave shelf, the main control board of the slave shelf is further configured to extract, after receiving the registration response packet, the shelf ID of the slave shelf in the registration response packet, and refresh its own MAC address, the main control board of the master shelf is further configured to configure a MAC address for the service board of the master shelf, the main control board of the slave shelf is further configured to configure a MAC address for the service board of the slave shelf, the main control board of the slave shelf is further configured to perform communication with the main control board of the master shelf through the configured MAC addresses, the main control board of the master shelf is further configured to perform communication with the service board of the slave shelf through the configured MAC addresses, each of the MAC addresses comprises information about a location of the main control board or a location of the service board of the master shelf or the slave shelf, and the location information comprises a shelf ID and a slot ID.