L2oGRE tunnels are emulated as an SDP of type gre-eth-bridged (shown as GRE-B in the output of relevant show commands). This SDP defines two end-points on the tunnel:
far-end IP address
This defines the IP address of the remote device that terminates the tunnel.
local IP address where the tunnel is terminated within an SR OS
This is a special IP address within an SR OS node that is not associated with any interface. It is only used for L2oGRE tunnel termination.
Binding an L2oGRE tunnel to an FPE-based PW port within the SR OS is performed through an Epipe service. When the connection is established, the tunnel payload can be extracted to a PW SAP that can be used similarly to a regular SAP under Layer 3 interfaces, subscriber interfaces, or an Epipe.
Table: L2oGRE tunnel example configuration describes the L2oGRE example configuration steps.
| Step | Example CLI | Comments | 
|---|---|---|
PXC-based PW Port related configuration  | 
||
PW Port creation  | 
           | 
L2oGRE tunnel is terminated on this PW port.  | 
Port-XC creation  | 
               | 
This command triggers automatic creation of PXC sub-ports: 
           This is where the L2oGRE terminating PW port is anchored.  | 
Creation of FPE that is used for PW port anchoring  | 
                                  | 
The application under this FPE is the PW port termination. The use of PW port in this case is versatile and can be used to terminate an L2oGRE or MPLS/GRE-based PW. In this example, it is used to terminate an L2oGRE tunnel.  | 
L2oGRE tunnel definition  | 
||
Configuration of GRE-bridged tunnel termination IPv4/IPv6 addresses.  | 
      
 
  | 
This is a special IPv4/IPv6 address that is not configured under any Layer 3 interface and it must not overlap with any IPv4/IPv6 address configured under an Layer 3 interface in Base router. Multiple termination IPv4/IPv6 addresses are supported.  | 
Configuration of L2oGRE SDP  | 
     or 
 
 
  | 
This represents the L2oGRE tunnel within SR OS as defined by the tunnel end-point IPv4/IPv6 addresses.  | 
Stitching L2oGRE tunnel to an anchored PW port  | 
||
Association between the PW port and a PXC port via FPE.  | 
       | 
This command anchors the PW port 1 to a PXC port referenced in FPE 1.  | 
Binding between L2oGRE tunnel and the PW port  | 
            | 
L2oGRE is terminated on a PW port and the Layer 2 payload within the tunnel is extracted on the PW SAP  | 
PW SAP service association  | 
||
Creation of services that use PW SAP  | 
      
       | 
|