The documentation test, the wrong way of thinking based on VPN fault pin break and exclude the 7th chapter. AToM.
Topology map:
Here, R1 to R3 to do atom.
Key configuration:
R1 and R4 are two computers:
R1 Interface f0/0=1.1.1.1/24
R4 Interface f0/0=1.1.1.2/24
R1 as PE-1-R1:
Hostname PE-1-R2
IP CEF
MPLS Label Protocol LDP
Interface Loopback0
IP address 10.1.1.1 255.255.255.255
!
Interface fastethernet0/0
No IP address
Duplex full
Speed auto
Xconnect 10.1.1.3 Encapsulation MPLS
!
Interface fastethernet1/0
IP address 2.1.1.1 255.255.255.0
Duplex full
Speed auto
MPLS Label Protocol LDP
MPLS IP
!
Router OSPF 1
Router-id 10.1.1.1
Log-adjacency-changes
Network 0.0.0.0 255.255.255.255 Area 0
R2 as P-router:
Hostname P-R3
IP CEF
MPLS Label Protocol LDP
!
Interface Loopback0
IP address 10.1.1.2 255.255.255.255
!
Interface fastethernet0/0
IP address 2.1.1.2 255.255.255.0
Duplex full
Speed auto
MPLS Label Protocol LDP
MPLS IP
!
Interface fastethernet1/0
IP address 3.1.1.1 255.255.255.0
Duplex full
Speed auto
MPLS Label Protocol LDP
MPLS IP
!
Router OSPF 1
Router-id 10.1.1.2
Log-adjacency-changes
Network 0.0.0.0 255.255.255.255 Area 0