Topology:
Configuration:
---------------PE1------------------------
MPLS Label Range 200 299
MPLS Label Protocol LDP
MPLS LDP Router-id Loopback0
Interface Loopback0
IP address 192.168.1.1 255.255.255.255
No shut
!
Interface FASTETHERNET0/1
IP address 23.1.1.2 255.255.255.0
No shut
MPLS IP
!
!
router OSPF 100
Router-id 2.2.2.2
Log-adjacency-changes
Network 23.1.1.0 0.0.0.255 Area 0
Network 192.168.1.1 0.0.0.0 Area 0
---------------------P----------------------
MPLS Label Range 300 399
MPLS Label Protocol LDP
MPLS LDP Router-id Loopback0
!
Interface Loopback0
IP address 192.168.1.2 255.255.255.255
No shut
Interface fastethernet0/0
IP address 34.1.1.3 255.255.255.0
No shut
MPLS IP
!
Interface FASTETHERNET0/1
IP address 23.1.1.3 255.255.255.0
No shut
MPLS IP
!
!
router OSPF 100
Router-id 3.3.3.3
Log-adjacency-changes
Network 23.1.1.0 0.0.0.255 Area 0
Network 34.1.1.0 0.0.0.255 Area 0
Network 192.168.1.2 0.0.0.0 Area 0
-----------------PE2---------------------
MPLS Label Range 400 499
MPLS Label Protocol LDP
MPLS LDP Router-id Loopback0
!
Interface Loopback0
IP address 192.168.1.3 255.255.255.255
No shut
Interface fastethernet0/0
IP address 34.1.1.4 255.255.255.0
MPLS IP
No shut
router OSPF 100
Router-id 4.4.4.4
Log-adjacency-changes
Network 34.1.1.0 0.0.0.255 Area 0
Network 192.168.1.3 0.0.0.0 Area 0
------------------CE1-----------------------
Interface fastethernet0/0
IP address 192.168.100.100 255.255.255.0
No shut
------------------CE2------------------
Interface FASTETHERNET0/1
IP address 192.168.100.105 255.255.255.0
No shut
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/