(A new topology automatic discovery algorithm based on SNMP is proposed, which can realize the automatic topology discovery of the interconnection of switches and hosts within the Ethernet, thereby reducing the network management difficulty of the campus network based on the Ethernet communication technology. Ethernet is the primary network technology used in campus networks at the time, using Ethernet switches to distinguish network segments and complete intra-network interconnection. Ethernet communication uses communication technology, and both sides of data exchange are identified by MAC address. In an Ethernet, each switch stores the MAC addresses of all active hosts in the network. The MAC address table data in the switch can be obtained by using the SNMP protocol, and the active discovery of the topology structure of the switch and the host within the Ethernet can be accomplished by using the algorithm described by the author to process these data. Because SNMP and MIB are accepted by various manufacturers, the algorithm proposed by the author is universal. Keywords: SNMP; MIB; active topology discovery)