Configuring the Remote Site ID
The remote site ID allows you to configure a sparse Layer 2 VPN topology. A sparse topology means that each site does not have to connect to all the other sites in the VPN; thus it is unnecessary to allocate circuits for all the remote sites. Remote site IDs are particularly important if you configure a topology more complicated than full-mesh, such as a hub-and-spoke topology.
The remote site ID (configured with the
remote-site-idstatement) corresponds to the site ID (configured with thesite-identifierstatement) configured at a separate site. Figure 6 illustrates the relationship between the site identifier and the remote site ID.
![]()
As illustrated by the figure, the configuration for Router PE1 connected to Router CE1 is as follows:
site-identifier 1;interface so-0/0/0 {remote-site-id 2;}The configuration for Router PE2 connected to Router CE2 is as follows:
site-identifier 2;interface so-0/0/1 {remote-site-id 1;}The remote site ID (
2) on Router PE1 corresponds to the site identifier (2) on Router PE2. On Router PE2, the remote site ID (1) corresponds to the site identifier (1) on Router PE1.To configure the remote site ID, include the
remote-site-idstatement:remote-site-idremote-site-ID;You can include the
remote-site-idstatement at the following hierarchy levels:
[edit routing-instancesrouting-instance-nameprotocols l2vpn sitesite-nameinterfaceinterface-name][edit logical-routerslogical-router-namerouting-instancesrouting-instance-nameprotocols l2vpn sitesite-nameinterfaceinterface-name]If you do not explicitly include the
remote-site-idstatement for the interface configured at the[edit routing-instancesrouting-instance-nameprotocols l2vpn sitesite-name]hierarchy level, a remote site ID is assigned to that interface.The remote site ID for an interface is automatically set to 1 higher than the remote site ID for the previous interface. The order of the interfaces is based on their
site-identifierstatements. For example, if the first interface in the list does not have a remote site ID, its ID is set to 1. The second interface in the list has its remote site ID set to 2, and the third has its remote site ID set to 3. The remote site IDs of any interfaces that follow are incremented in the same manner if you do not explicitly configure them.