The invention relates to the technical field of network intercommunication, and provides a method and equipment for realizing a
bare metal gateway based on an
OpenFlow flow table, and the method comprises the steps: enabling a
bare metal server to be accessed to a VPC network, and creating and binding a network port to a specified
bare metal gateway node in a specified VPC subnet through a
cloud management platform; a logic flow table is generated through the OVN controller according to the network ports and the binding relation of the network ports, and the logic flow table is issued to the bare
metal net nodes bound to the network ports; the bare
metal net node translates the received logic flow table into an
OpenFlow flow table and issues the
OpenFlow flow table to a local OVS
virtual switch; and the OVS
virtual switch performs two-layer forwarding
processing on the message transmitted between the bare
metal server and the
virtual machine in the VPC according to the received
OpenFlow flow table. The bare metal gateway is realized in a pure
software mode, the dependence on special hardware is avoided, and the cost is remarkably reduced. The efficient conversion between the VXLAN and the VLAN is realized based on the
OpenFlow flow table, the flexibility, the expandability and the operation and maintenance
automation degree are improved, and the high-performance two-layer intercommunication is ensured.