1、拓扑 2、PE配置
mpls ip mpls ldp router-id Loopback0 interface Loopback0 ip address 1.1.1.1 255.255.255.255 interface Ethernet0/0 ip address 10.10.10.1 255.255.255.0 mpls ip interface Ethernet0/1 no keepalive no cdp enable xconnect 4.4.4.4 1001 encapsulation mpls router ospf 1 router-id 1.1.1.1 network 1.1.1.1 0.0.0.0 area 0 network 10.10.10.0 0.0.0.255 area 0 PE2配置 mpls ip mpls ldp router-id Loopback0 interface Loopback0 ip address 2.2.2.2 255.255.255.255 interface Ethernet0/0 ip address 10.10.10.2 255.255.255.0 mpls ip interface Ethernet0/1 no keepalive no cdp enable xconnect 4.4.4.4 1001 encapsulation mpls router ospf 1 router-id 2.2.2.2 network 2.2.2.2 0.0.0.0 area 0 network 10.10.10.0 0.0.0.255 area 0 PE3配置 mpls ip mpls ldp router-id Loopback0 interface Loopback0 ip address 3.3.3.3 255.255.255.255 interface Ethernet0/0 ip address 10.10.10.3 255.255.255.0 mpls ip interface Ethernet0/1 no keepalive no cdp enable xconnect 4.4.4.4 1001 encapsulation mpls router ospf 1 router-id 3.3.3.3 network 3.3.3.3 0.0.0.0 area 0 network 10.10.10.0 0.0.0.255 area 0 CSR1000v配置 license boot level premium <先敲此命令后 reboot CSR1000v> mpls ip mpls ldp router-id Loopback0 interface Loopback0 ip address 4.4.4.4 255.255.255.255 interface Gi1 ip address 10.10.10.4 255.255.255.0 mpls ip router ospf 1 router-id 4.4.4.4 network 4.4.4.4 0.0.0.0 area 0 network 10.10.10.0 0.0.0.255 area 0 l2 vfi VPLS manual vpn id 1001 bridge-domain 1001 neighbor 3.3.3.3 encapsulation mpls no-split-horizon neighbor 2.2.2.2 encapsulation mpls no-split-horizon neighbor 1.1.1.1 encapsulation mpls no-split-horizon CE1配置 interface Loopback0 ip address 192.168.1.1 255.255.255.255 interface Ethernet0/0 ip address 10.10.123.1 255.255.255.0 router eigrp 1 network 192.168.1.0 network 0.0.0.0 no auto-summary CE2配置 interface Loopback0 ip address 192.168.1.2 255.255.255.255 interface Ethernet0/0 ip address 10.10.123.2 255.255.255.0 router eigrp 1 network 192.168.1.0 network 0.0.0.0 no auto-summary CE3配置 interface Loopback0 ip address 192.168.1.3 255.255.255.255 interface Ethernet0/0 ip address 10.10.123.3 255.255.255.0 router eigrp 1 network 192.168.1.0 network 0.0.0.0 no auto-summary