1. 拓扑

    wKiom1SH9pCQFCkyAAFwnkRx2QU921.jpg

  2. PE1配置

mpls ip


mpls ldp router-id Loopback0


interface Loopback0

 ip address 1.1.1.1 255.255.255.255


interface FastEthernet1/0

 ip address 10.10.10.1 255.255.255.0

 duplex auto

 speed auto

 mpls ip

 

interface FastEthernet1/1

 no ip address

 duplex full

 speed 100

 no keepalive

 no cdp enable

 xconnect 4.4.4.4 1001 encapsulation mpls


router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.1 0.0.0.0 area 0

 network 10.10.10.0 0.0.0.255 area 0

3. PE2配置

mpls ip


mpls ldp router-id Loopback0


interface Loopback0

 ip address 2.2.2.2 255.255.255.255


interface FastEthernet1/0

 ip address 10.10.10.2 255.255.255.0

 duplex auto

 speed auto

 mpls ip

 

interface FastEthernet1/1

 no ip address

 duplex full

 speed 100

 no keepalive

 no cdp enable

 xconnect 4.4.4.4 1001 encapsulation mpls


router ospf 1

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.2 0.0.0.0 area 0

 network 10.10.10.0 0.0.0.255 area 0

4. PE3配置

mpls ip


mpls ldp router-id Loopback0


interface Loopback0

 ip address 3.3.3.3 255.255.255.255


interface FastEthernet1/0

 ip address 10.10.10.3 255.255.255.0

 duplex auto

 speed auto

 mpls ip

 

interface FastEthernet1/1

 no ip address

 duplex full

 speed 100

 no keepalive

 no cdp enable

 xconnect 4.4.4.4 1001 encapsulation mpls


router ospf 1

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.3 0.0.0.0 area 0

 network 10.10.10.0 0.0.0.255 area 0

5. 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 FastEthernet1/0

 ip address 10.10.10.4 255.255.255.0

 duplex auto

 speed auto

 mpls ip


router ospf 1

 router-id 4.4.4.4

 log-adjacency-changes

 network 4.4.4.4 0.0.0.0 area 0

 network 10.10.10.0 0.0.0.255 area 0


l2 vif VPLS manual

 *** 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

6. CE1配置

interface Loopback0

 ip address 192.168.1.1 255.255.255.255


interface FastEthernet0/0

 ip address 10.10.123.1 255.255.255.0

 duplex auto

 speed auto


router eigrp 1

 network 192.168.1.0

 network 0.0.0.0

 no auto-summary

7. CE2配置

interface Loopback0

 ip address 192.168.1.2 255.255.255.255


interface FastEthernet0/0

 ip address 10.10.123.2 255.255.255.0

 duplex auto

 speed auto


router eigrp 1

 network 192.168.1.0

 network 0.0.0.0

 no auto-summary

8. CE3配置

interface Loopback0

 ip address 192.168.1.3 255.255.255.255


interface FastEthernet0/0

 ip address 10.10.123.3 255.255.255.0

 duplex auto

 speed auto


router eigrp 1

 network 192.168.1.0

 network 0.0.0.0

 no auto-summary