This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:arista:mpls [2022/05/18 09:56] – jotasandoku | network_stuff:arista:mpls [2026/03/15 00:06] (current) – jotasandoku | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| TODO | TODO | ||
| ---- | ---- | ||
| - | MPLS SEGMENT ROUTING NOTES (SR-MPLS NOTES)\\ | + | MPLS SEGMENT ROUTING NOTES (SRv6) |
| + | \\ | ||
| + | think of SRv6–using IPv6 addresses as segment IDs, and breaking the least significant /64 to create microsids for service differentiation | ||
| + | \\ | ||
| Is mostly MPLS but: | Is mostly MPLS but: | ||
| * **labels** are distributed/ | * **labels** are distributed/ | ||
| - | * labels are globally unique (not reused) so better control of the paths. | + | * labels are **globally unique** (not reused) so better control of the paths. |
| + | |||
| + | Options: | ||
| + | * Control plane: ipv4 / ipv6 | ||
| + | * Data plane: **mpls or native ipv6** | ||
| ---- | ---- | ||
| Line 84: | Line 91: | ||
| neighbor 10.0.0.3 activate | neighbor 10.0.0.3 activate | ||
| neighbor 10.0.0.3 encapsulation mpls next-hop-self source-interface Loopback0 | neighbor 10.0.0.3 encapsulation mpls next-hop-self source-interface Loopback0 | ||
| + | |||
| + | ---- | ||
| + | |||
| + | __IMPLICIT/ | ||
| + | \\ | ||
| + | * This null label is always ' | ||
| + | * implicit null is no signalling and letting the PHP do its thing and send the mpls label as an IP packet (no labels) towards the PE | ||
| + | * explicit null is the PHP sending the mpls packet with the last label as a ' | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | SHOW COMMANDS: | ||
| + | \\ | ||
| + | show ip bgp vrf red | ||
| + | show ip route vrf red | begin Gateway | ||
| + | show mpls lfib route # arista only labels for lo. You'll only see transport labels here | ||
| + | show bgp vpn-ipv4 172.16.0.0/ | ||
| + | ! | ||
| + | pe1#show bgp vpn-ipv4 172.16.2.0/ | ||
| + | BGP routing table information for VRF default | ||
| + | Router identifier 10.0.0.1, local AS number 65000 | ||
| + | BGP routing table entry for IPv4 prefix 172.16.2.0/ | ||
| + | | ||
| + | Local | ||
| + | 10.0.0.2 from 10.0.0.2 (10.0.0.2) | ||
| + | Origin IGP, metric -, localpref 100, weight 0, valid, internal, best | ||
| + | Extended Community: Route-Target-AS: | ||
| + | Remote MPLS label: 100001 | ||
| + | ! | ||
| + | | ||
| + | traceroute mpls ldp ip 10.0.0.1/ | ||
| + | show mpls ldp neighbor | ||
| + | show mpls ldp bindings | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===MPLS SEGMENT ROUTING - SR-MPLS=== | ||
| + | == Modes: shortest-path , explicit , PCE(controller)== | ||
| + | In the **shortest-path mode the label encodes the destination it stays __the same__ (the last router label) the entire journey. Eg: P2 router receives the last router' | ||
| + | |||
| + | \\ | ||
| + | |||
| + | Configure explicit TE: | ||
| + | |||
| + | PE1 | ||
| + | management te | ||
| + | mpls traffic-eng | ||
| + | | ||
| + | router traffic-engineering | ||
| + | | ||
| + | policy endpoint 10.0.0.6 color 100 | ||
| + | name TO-PE2-EXPLICIT | ||
| + | | ||
| + | | ||
| + | segment-list label-stack 900007 900008 900009 900010 900006 | ||
| + | | ||
| + | route-map SET-COLOR-100 permit 10 | ||
| + | set extcommunity color 100 | ||
| + | | ||
| + | router bgp 65001 | ||
| + | | ||
| + | | ||
| + | show traffic-engineering segment-routing policy | ||
| + | Endpoint 10.0.0.6 Color 100, Name: TO-PE2-EXPLICIT, | ||
| + | Path group: State: active (for 00:02:05), modified: 00:02:05 ago | ||
| + | Protocol: Static | ||
| + | Originator: 0.0.0.0(AS0) | ||
| + | Preference: 100 | ||
| + | IGP metric: 0 (static) | ||
| + | Binding SID: 1000100 | ||
| + | Explicit null label policy: IPv6 (system default) | ||
| + | Segment List: State: Valid, ID: 1, Counters: not available | ||
| + | Protected: No, Reason: The top label is not protected | ||
| + | Label Stack: [900007 900008 900009 900010 900006], Weight: 1 | ||
| + | Resolved Label Stack: [900008 900009 900010 900006], Next hop: 10.1.0.2, Interface: Ethernet1 | ||
| + | | ||
| + | show traffic-engineering segment-routing policy | ||
| + | show isis segment-routing prefix-segments | ||
| + | show ip route vrf t1 172.16.1.0/ | ||
| + | |||
| + | <ios-xr commands> | ||
| + | show mpls forwarding labels < | ||
| + | show segment-routing traffic-eng policy summary | ||
| + | show source-routing sr-te policy color 100 endpoint <IP> detail | ||
| + | show segment-routing traffic-eng policy endpoint ipv4 | ||