摘要 |
A method and apparatus for implementing anti-transferring of media access control (MAC) address of switch port is disclosed, which resolves a problem that it is unable to effectively implementing anti-transferring of the MAC address in Ethernet switch chip of a switch in prior art. The method involves setting the anti-transferring priority of MAC address of each port in the switch chip of the switch; closing the MAC address self-learning function of all ports; modifying the forwarding policy of the unknown source MAC address packet of a port to be not forwarded, and initializing MAC address learning and intermitting aging for the port; determining learning policy based on port configuration and the record information of data base when new source MAC address message is received; updating the record of the database when the aging information of MAC address is received. The switch includes: a switch chip, a priority setting module, a database module and a management CPU. |