The invention relates to the technical field of
network communication and security, and discloses an agile networking technology combining a virtual tunnel with network forwarding, which comprises the following steps: generating a public and private key pair on security gateway equipment of
a site, and sending a public key to a controller; the controller receives security gateway public key information of a plurality of sites and generates virtual tunnel configuration information, and the configuration information comprises an
IP address of an opposite-end security gateway, an opposite-end public key and a tunnel
IP address; the controller issues the generated virtual tunnel configuration information to a security gateway of each
station, and the security gateway establishes a virtual tunnel based on the configuration information; the security gateway is internally provided with a probe module, detects the
accessibility of a local network regularly, and transmits detection information to the controller. According to the method, tunnel configuration can be completed according to the tunnel
IP address and opposite-end public key information, the tunnel IP address can be used for virtual tunnels established with different opposite-end security gateways, the expansibility of the tunnel IP address is not limited by the number of the IP addresses, and full-
interconnection virtual tunnel networking can be supported.