Patent ID: 7961738

Claim:
A method for accessing a Virtual Private Network (VPN) using a Pseudo Wire (PW) Emulation Edge-to-Edge Virtual Leased Line, comprising: configuring a first PW identification (ID) in a first Provider Edge Device that hosts a Virtual Switch Instance (VSI), and an Internet Protocol (IP) address of a second Provider Edge Device that hosts the PW Emulation Edge-to-Edge Virtual Leased Line associated with the first PW ID; wherein the first PW ID is an ID specified by the first Provider Edge Device, and the ID specified for a PW is set to be different from the IDs of other VSIs on the first Provider Edge Device, and is set to be different from other PW IDs assigned by the VSI on the first Provider Edge Device; sending, by the second Provider Edge Device, a second PW ID of the second Provider Edge Device to the first Provider Edge Device; determining, by the first Provider Edge Device, whether the second PW ID of the second Provider Edge Device matches the first PW ID of the first Provider Edge Device, if it matches, setting a state of a PW between the first Provider Edge Device and the second Provider Edge Device; and building, by the PW Emulation Edge-to-Edge Virtual Leased Line, a bi-directional connection with the VSI according to the Forwarding Table sent by the first Provider Edge Device.