MPLS - L3VPN
MPLS - L3VPN
MPLS - L3VPN
org
MPLS = Multiprotocol Label Switching
MP: IPv4, IPv6, Ethernet, PPP,..
Label switching: Forwarding based on Label, not looking IP routing table
networking4u.org [email protected]
networking4u.org [email protected]
networking4u.org [email protected]
networking4u.org [email protected]
networking4u.org [email protected]
RIB
#Show ip route
networking4u.org [email protected]
FIB
# show ip cef
networking4u.org [email protected]
LIB
#show mpls ldp binding
networking4u.org [email protected]
LFIB
# show mpls forwarding-table
networking4u.org [email protected]
5.5.5.5 5.5.5.5 5.5.5.5 5.5.5.5
Label: 18 Label: 101 Label: 200 Label: imp-null
MPLS
IP IP
networking4u.org [email protected]
RIB (PE1) LFIB
LIB
FIB
Prefix 5.5.5.5
prefix next IF Label
Local 18
binding 5.5.5.5 192.168.23.3 E0/1 101
Remote 3.3.3.3 101
LDP neighbour
LSR ID 3.3.3.3
networking4u.org [email protected]
L101 IP L200 IP IP
MPLS
IP IP
networking4u.org [email protected]
DEMO
networking4u.org [email protected]
PE1#show ip cef 6.6.6.6
6.6.6.6/32
nexthop 192.168.23.3 Ethernet0/1 label 101
networking4u.org [email protected]
P1#show mpls forwarding-table labels 101
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
101 200 5.5.5.5/32 15741 Et0/0 192.168.34.4
PE2#show ip cef 6.6.6.6
6.6.6.6/32
P2#show mpls forwarding-table labels 200 nexthop 192.168.56.6 Ethernet0/0
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
200 Pop Label 5.5.5.5/32 26223 Et0/1 192.168.45.5
P2#
networking4u.org [email protected]
MPLS L3VPN
networking4u.org [email protected]
MPLS L3VPN
networking4u.org [email protected]
MPLS L3VPN
networking4u.org [email protected]
VRF - Virtual Routing & Forwarding
VRF: separating
routing tables for
different customers
PE installs Backbone
routes (IGP) into
Global routing table
(show ip route).
PE installs VPN
routes into VRF
routing tables (show
ip route vrf xxx)
networking4u.org [email protected]
RD - Route Distinguisher
networking4u.org [email protected]
RD - Route Distinguisher
networking4u.org [email protected]
RD – Route Distinguisher
networking4u.org [email protected]
RD – Route Distinguisher
!
ip vrf CustA
Rd 123:10
!
ip vrf CustB
Rd 123:20
networking4u.org [email protected]
RT – Route Target
networking4u.org [email protected]
RT – Route Target
RT: 123:1
!
Identifies the VRF for the received VPNv4 prefix. ip vrf CustA
route-target import 123:1
route-target export 123:1
networking4u.org [email protected]
RT – Route Target
networking4u.org [email protected]
VRF Routing Table
VRF CUS_A VRF CUS_A
192.168.2.0/24 PE2 192.168.2.0/24 CE3
PE2 P L1
VRF CUS_B
192.168.2.0/24 PE2 VRF CUS_B
192.168.2.0/24 CE4
PE2 P L1
networking4u.org [email protected]
Data plane Issue
networking4u.org [email protected]
VPN Label
18 306 IP
networking4u.org [email protected]
Put all Together
RD:192.168.2.0/24
Next-hop: PE2
RT: 123:1
VPN label: 21
192.168.2.0/24 192.168.2.0/24
Next-hop: PE1 Next-hop: CE3
MLPS
networking4u.org [email protected]
Data Flow
networking4u.org [email protected]
Note
Transport Label learned through LDP
VPN Label created by BGP, updated through
MP-BGP
VPNv4 routes learned through MP-BGP, stored
in VRF routing table
RD, RT are configured under VRF on PE and
advertised through MP-BGP
Next hop routes learned through IGP (OSPF)
stored in Global routing table
networking4u.org [email protected]
RT:2:2 RT:2:2
RT: 1:1
RT: 1:1
networking4u.org [email protected]
Dest Next- Label
hop Dest Next- Labe
hop l
6.6.6.6 5.5.5.5 300
6.6.6.6 5.5.5.5 300
5.5.5.5 .23.3 17
RT:2:2 RT:2:2
RT: 1:1
Dest Next- Label Dest Next- Labe RT: 1:1
hop hop l
6.6.6.6 5.5.5.5 304 6.6.6.6 5.5.5.5 304
5.5.5.5 .23.3 17
networking4u.org [email protected]
IP IP
RT: 1:1
RT: 1:1
networking4u.org [email protected]
MPSL L2VPN: AToM
networking4u.org [email protected]
networking4u.org [email protected]
interface Loopback0
PE1 ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
!
interface Ethernet0/0
no ip address
xconnect 4.4.4.4 24 encapsulation mpls
!
interface Ethernet0/1
ip address 192.168.23.2 255.255.255.0
ip ospf 1 area 0
mpls ip
networking4u.org [email protected]
interface Loopback0
ip address 4.4.4.4 255.255.255.255
PE2 ip ospf 1 area 0
!
interface Ethernet0/0
ip address 192.168.34.4 255.255.255.0
ip ospf 1 area 0
mpls ip
!
interface Ethernet0/1
no ip address
xconnect 2.2.2.2 24 encapsulation mpls
!
networking4u.org [email protected]
PE1#show mpls l2transport vc detail
PE1 Local interface: Et0/0 up, line protocol up, Ethernet up
Destination address: 4.4.4.4, VC ID: 24, VC status: up
Output interface: Et0/1, imposed label stack {17 17}
Preferred path: not configured
Default path: active
Next hop: 192.168.23.3
Create time: 00:45:46, last status change time: 00:43:45
Last label FSM state change time: 00:44:45
Signaling protocol: LDP, peer 4.4.4.4:0 up
Targeted Hello: 2.2.2.2(LDP Id) -> 4.4.4.4, LDP is UP
Graceful res
MPLS VC labels: local 17, remote 17
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive disabled, send disabled
Control Word: On (configured: autosense)
networking4u.org [email protected]
PE2#show mpls l2transport vc detail
Local interface: Et0/1 up, line protocol up, Ethernet up
PE2 Destination address: 2.2.2.2, VC ID: 24, VC status: up
Output interface: Et0/0, imposed label stack {16 17}
Preferred path: not configured
Default path: active
Next hop: 192.168.34.3
Create time: 00:47:00, last status change time: 00:45:59
Last label FSM state change time: 00:44:58
Signaling protocol: LDP, peer 2.2.2.2:0 up
Targeted Hello: 4.4.4.4(LDP Id) -> 2.2.2.2, LDP is UP
MPLS VC labels: local 17, remote 17
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive disabled, send disabled
Control Word: On (configured: autosense)
Dataplane:
SSM segment/switch IDs: 4099/4096 (used), PWID: 1
networking4u.org [email protected]
PE1
networking4u.org [email protected]
CE1>
CE1>en
CE1#show ip os int br
CE1 Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 1 0 1.1.1.1/32 1 LOOP 0/0
Et0/0 1 0 172.16.1.1/24 10 BDR 1/1
CE1#
CE1#
CE1#show ip os nei
OSPF between CE1 and CE2
Neighbor ID Pri State Dead Time Address Interface
5.5.5.5 1 FULL/DR 00:00:39 172.16.1.2 Ethernet0/0
CE1#
CE1#show ip route os
networking4u.org [email protected]