Configure the Remote Site ID
The remote site ID allows you to configure a sparse Layer 2 VPN topology. This means that each site does not have to connect to all the other sites in the VPN, making it 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.For example, a 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 then as follows:
site-identifier 2;interface so-0/0/1 {remote-site-id 1;}Configure the
remote-site-idstatement at the[edit routing-instancesrouting-instance-nameprotocols l2vpn sitesite-nameinterfaceinterface-name]hierarchy level:[edit routing-instancesrouting-instance-nameprotocols l2vpn]sitesite-name{interfaceinterface-name{remote-site-idremote-site-ID;}}If you do not explicitly configure 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.