The invention relates to a two-layer
private line method and
system based on a mobile cellular, and the method comprises the steps: a cloud IP
server obtains a corresponding ipv6 address, a fixed identifier and update time from an http request packet transmitted by a first terminal and a second terminal, carries out the binding of the ipv6 address, the fixed identifier and the update time, and stores the bound ipv6 address, the fixed identifier and the update time in a Redis
database; and updating the Redis
database according to the update time, when a communication request is received, acquiring a corresponding fixed identifier according to the communication request, acquiring a corresponding ipv6 address from the Redis
database according to the fixed identifier, issuing a tunnel establishment command to the first terminal and the second terminal according to the ipv6 address, and generating a tunnel program, the first terminal and the second terminal are enabled to respectively establish Linux Bridge, and a two-layer
private line is constructed through the Linux Bridge and a tunnel program to realize communication between the first terminal and the second terminal. Therefore, rapid addressing of the ipv6 is achieved through the Redis database, an additional fixed IP does not need to be used, a traditional 5GLAN does not need to be used, and efficient end-to-end communication is achieved.