################################################################################ # SRv6 Network Configuration - All Routers (Plan E - Anonymized) # # ULA Prefix: 2001:db8:beef::/48 # ISIS Area: 49.0001 ################################################################################ ################################################################################ # P-Core-1 # Role: Transport (P) # Locator: 2001:db8:beef:101::/64 ################################################################################ set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:101::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:101::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:101:: flavor psp ## Core Mesh Interfaces set interfaces et-0/0/0 unit 0 description "to P-Core-2" set interfaces et-0/0/0 unit 0 family inet6 set protocols isis interface et-0/0/0.0 set interfaces et-0/0/1 unit 0 description "to PE-Source-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to PE-Source-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 set interfaces et-0/0/3 unit 0 description "to PE-Dest-1" set interfaces et-0/0/3 unit 0 family inet6 set protocols isis interface et-0/0/3.0 set interfaces et-0/0/4 unit 0 description "to PE-Dest-2" set interfaces et-0/0/4 unit 0 family inet6 set protocols isis interface et-0/0/4.0 ################################################################################ # P-Core-2 # Role: Transport (P) # Locator: 2001:db8:beef:102::/64 ################################################################################ set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:102::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:102::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:102:: flavor psp ## Core Mesh Interfaces set interfaces et-0/0/0 unit 0 description "to P-Core-1" set interfaces et-0/0/0 unit 0 family inet6 set protocols isis interface et-0/0/0.0 set interfaces et-0/0/1 unit 0 description "to PE-Source-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to PE-Source-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 set interfaces et-0/0/3 unit 0 description "to PE-Dest-1" set interfaces et-0/0/3 unit 0 family inet6 set protocols isis interface et-0/0/3.0 set interfaces et-0/0/4 unit 0 description "to PE-Dest-2" set interfaces et-0/0/4 unit 0 family inet6 set protocols isis interface et-0/0/4.0 ################################################################################ # PE-Source-1 # Role: Edge (PE) ��� Red Path Source # Locator: 2001:db8:beef:1::/64 ################################################################################ set routing-options forwarding-table srv6-chain-merge set protocols source-packet-routing srv6 preserve-nexthop-hierarchy set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:1::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:1::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:1:: flavor usd ## Core Uplinks (Full Mesh) set interfaces et-0/0/1 unit 0 description "to P-Core-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to P-Core-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 ## SRv6 TE Policy ��� PE-Source-1 -> PE-Dest-1 (via P-Core-1) set protocols source-packet-routing srv6 set protocols source-packet-routing segment-list Red-SIDList srv6 set protocols source-packet-routing segment-list Red-SIDList hop1 srv6-sid 2001:db8:beef:101:: set protocols source-packet-routing segment-list Red-SIDList hop2 srv6-sid 2001:db8:beef:5:: set protocols source-packet-routing source-routing-path Source-to-Dest-Red srv6 set protocols source-packet-routing source-routing-path Source-to-Dest-Red color 100 set protocols source-packet-routing source-routing-path Source-to-Dest-Red to 2001:db8:beef:5:: set protocols source-packet-routing source-routing-path Source-to-Dest-Red primary Red-SIDList set routing-options rib inet6.3 static route 2001:db8:beef:5::/128 discard set routing-options rib inet6.3 static route 2001:db8:beef:5::/128 color 100 ## CE Integration (Red Path) set interfaces xe-0/0/0 unit 0 description "to CE-Source-1" set interfaces xe-0/0/0 unit 0 family inet address 10.10.1.1/31 set routing-options static route 10.10.1.0/24 next-hop 10.10.1.0 ## GRE Interface (Red - Source to Dest) set interfaces gr-0/0/0 unit 0 tunnel source 2001:db8:beef:1:: set interfaces gr-0/0/0 unit 0 tunnel destination 2001:db8:beef:5:: set interfaces gr-0/0/0 unit 0 family inet address 10.254.1.0/31 ## Service Steering (Red) ## Traffic from CE destined to Remote Service (10.10.2.0/24) steered into GRE Tunnel ## The IPv6 GRE encapsulation is then steered by SRv6 Policy via inet6.3 color set routing-options static route 10.10.2.0/24 next-hop gr-0/0/0.0 ################################################################################ # PE-Source-2 # Role: Edge (PE) ��� Blue Path Source # Locator: 2001:db8:beef:2::/64 ################################################################################ set routing-options forwarding-table srv6-chain-merge set protocols source-packet-routing srv6 preserve-nexthop-hierarchy set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:2::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:2::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:2:: flavor usd ## Core Uplinks (Full Mesh) set interfaces et-0/0/1 unit 0 description "to P-Core-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to P-Core-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 ## SRv6 TE Policy ��� PE-Source-2 -> PE-Dest-2 (via P-Core-2) set protocols source-packet-routing srv6 set protocols source-packet-routing segment-list Blue-SIDList srv6 set protocols source-packet-routing segment-list Blue-SIDList hop1 srv6-sid 2001:db8:beef:102:: set protocols source-packet-routing segment-list Blue-SIDList hop2 srv6-sid 2001:db8:beef:6:: set protocols source-packet-routing source-routing-path Source-to-Dest-Blue srv6 set protocols source-packet-routing source-routing-path Source-to-Dest-Blue color 200 set protocols source-packet-routing source-routing-path Source-to-Dest-Blue to 2001:db8:beef:6:: set protocols source-packet-routing source-routing-path Source-to-Dest-Blue primary Blue-SIDList set routing-options rib inet6.3 static route 2001:db8:beef:6::/128 discard set routing-options rib inet6.3 static route 2001:db8:beef:6::/128 color 200 ## CE Integration (Blue Path) set interfaces xe-0/0/0 unit 0 description "to CE-Source-2" set interfaces xe-0/0/0 unit 0 family inet address 10.10.1.3/31 set routing-options static route 10.10.1.0/24 next-hop 10.10.1.2 ## GRE Interface (Blue - Source to Dest) set interfaces gr-0/0/0 unit 0 tunnel source 2001:db8:beef:2:: set interfaces gr-0/0/0 unit 0 tunnel destination 2001:db8:beef:6:: set interfaces gr-0/0/0 unit 0 family inet address 10.254.1.2/31 ## Service Steering (Blue) ## Traffic from CE destined to Remote Service (10.10.2.0/24) steered into GRE Tunnel ## The IPv6 GRE encapsulation is then steered by SRv6 Policy via inet6.3 color set routing-options static route 10.10.2.0/24 next-hop gr-0/0/0.0 ################################################################################ # PE-Dest-1 # Role: Edge (PE) ��� Red Path Destination # Locator: 2001:db8:beef:5::/64 ################################################################################ set routing-options forwarding-table srv6-chain-merge set protocols source-packet-routing srv6 preserve-nexthop-hierarchy set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:5::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:5::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:5:: flavor usd ## Core Uplinks (Full Mesh) set interfaces et-0/0/1 unit 0 description "to P-Core-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to P-Core-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 ## SRv6 TE Policy ��� PE-Dest-1 -> PE-Source-1 (Return Traffic via P-Core-1) set protocols source-packet-routing srv6 set protocols source-packet-routing segment-list Dest-Red-SIDList srv6 set protocols source-packet-routing segment-list Dest-Red-SIDList hop1 srv6-sid 2001:db8:beef:101:: set protocols source-packet-routing segment-list Dest-Red-SIDList hop2 srv6-sid 2001:db8:beef:1:: set protocols source-packet-routing source-routing-path Dest-to-Source-Red srv6 set protocols source-packet-routing source-routing-path Dest-to-Source-Red color 100 set protocols source-packet-routing source-routing-path Dest-to-Source-Red to 2001:db8:beef:1:: set protocols source-packet-routing source-routing-path Dest-to-Source-Red primary Dest-Red-SIDList set routing-options rib inet6.3 static route 2001:db8:beef:1::/128 discard set routing-options rib inet6.3 static route 2001:db8:beef:1::/128 color 100 ## Service Steering (Return Red) ## Traffic destined to Source Service (10.10.1.0/24) steered into GRE Tunnel set routing-options static route 10.10.1.0/24 next-hop gr-0/0/0.0 ## GRE Interface (Red - Dest to Source) set interfaces gr-0/0/0 unit 0 tunnel source 2001:db8:beef:5:: set interfaces gr-0/0/0 unit 0 tunnel destination 2001:db8:beef:1:: set interfaces gr-0/0/0 unit 0 family inet address 10.254.1.1/31 ## CE Integration (Dest Side - Red Path) set interfaces xe-0/0/0 unit 0 description "to CE-Dest-1" set interfaces xe-0/0/0 unit 0 family inet address 10.10.2.1/31 set routing-options static route 10.10.2.0/24 next-hop 10.10.2.0 ################################################################################ # PE-Dest-2 # Role: Edge (PE) ��� Blue Path Destination # Locator: 2001:db8:beef:6::/64 ################################################################################ set routing-options forwarding-table srv6-chain-merge set protocols source-packet-routing srv6 preserve-nexthop-hierarchy set interfaces lo0 unit 0 family inet6 address 2001:db8:beef:6::/128 set routing-options source-packet-routing srv6 locator SRV6-LOC 2001:db8:beef:6::/64 set protocols isis source-packet-routing srv6 locator SRV6-LOC set protocols isis source-packet-routing srv6 locator SRV6-LOC end-sid 2001:db8:beef:6:: flavor usd ## Core Uplinks (Full Mesh) set interfaces et-0/0/1 unit 0 description "to P-Core-1" set interfaces et-0/0/1 unit 0 family inet6 set protocols isis interface et-0/0/1.0 set interfaces et-0/0/2 unit 0 description "to P-Core-2" set interfaces et-0/0/2 unit 0 family inet6 set protocols isis interface et-0/0/2.0 ## SRv6 TE Policy ��� PE-Dest-2 -> PE-Source-2 (Return Traffic via P-Core-2) set protocols source-packet-routing srv6 set protocols source-packet-routing segment-list Dest-Blue-SIDList srv6 set protocols source-packet-routing segment-list Dest-Blue-SIDList hop1 srv6-sid 2001:db8:beef:102:: set protocols source-packet-routing segment-list Dest-Blue-SIDList hop2 srv6-sid 2001:db8:beef:2:: set protocols source-packet-routing source-routing-path Dest-to-Source-Blue srv6 set protocols source-packet-routing source-routing-path Dest-to-Source-Blue color 200 set protocols source-packet-routing source-routing-path Dest-to-Source-Blue to 2001:db8:beef:2:: set protocols source-packet-routing source-routing-path Dest-to-Source-Blue primary Dest-Blue-SIDList set routing-options rib inet6.3 static route 2001:db8:beef:2::/128 discard set routing-options rib inet6.3 static route 2001:db8:beef:2::/128 color 200 ## Service Steering (Return Blue) ## Traffic destined to Source Service (10.10.1.0/24) steered into GRE Tunnel set routing-options static route 10.10.1.0/24 next-hop gr-0/0/0.0 ## GRE Interface (Blue - Dest to Source) set interfaces gr-0/0/0 unit 0 tunnel source 2001:db8:beef:6:: set interfaces gr-0/0/0 unit 0 tunnel destination 2001:db8:beef:2:: set interfaces gr-0/0/0 unit 0 family inet address 10.254.1.3/31 ## CE Integration (Dest Side - Blue Path) set interfaces xe-0/0/0 unit 0 description "to CE-Dest-2" set interfaces xe-0/0/0 unit 0 family inet address 10.10.2.3/31 set routing-options static route 10.10.2.0/24 next-hop 10.10.2.2 ################################################################################ # End of Configuration ################################################################################