Method for achieving communication between IPV4 device and IPV6 device

The invention discloses a method for achieving communication between an IPV4 device and an IPV6 device. The method comprises the steps that (1), internet protocol version numbers and IP addresses of domains where a first device and a second device are located are recorded on a firewall device, and a first device virtual IP address and a second device virtual IP address are allotted for the first device and the second device respectively; (2), the first device sends a message to the second device, the format of the message is | the second device virtual IP address and the first device IP address | data |; (3), the firewall device receives the message, converters the format of the message into | the second device IP address and the first device virtual IP address | data |, and sends the message to the second device; (4), the second device receives the message, analyzes the message and sends a return message, wherein the format of the return message is | the first device virtual IP address and the second device IP address | data |; (5), the firewall device receives the return message, converts the format of the message into | the first device IP address and the second device virtual IP address | data |, and sends the message to the first device. The method for achieving the communication between the IPV4 device and the IPV6 device is easy to implement, and networking is convenient.