拓扑
实验步骤
1.PE以及P设备建立底层IGP
2.PE以及P设备开启mpls和ldp
3.PE之间建立IPv6邻居
6.PE将直连路由引入MP-BGP IPv6
实验配置
基础环境配置忽略,只演示重要步骤
PE以及P设备建立底层IGP
AR1
ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 12.1.1.0 0.0.0.255
AR2
ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 0.0.0.0 255.255.255.255
AR3
area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 23.1.1.0 0.0.0.255
PE以及P设备开启mpls和ldp
AR1
mpls lsr-id 1.1.1.1 # mpls # mpls ldp # interface Ethernet1/0/1 undo shutdown ip address 12.1.1.1 255.255.255.0 mpls mpls ldp
AR2
mpls lsr-id 2.2.2.2 # mpls # mpls ldp # interface GigabitEthernet0/0/1 ip address 23.1.1.2 255.255.255.0 mpls mpls ldp
AR3
mpls lsr-id 3.3.3.3 # mpls # mpls ldp # interface Ethernet1/0/1 undo shutdown ip address 23.1.1.3 255.255.255.0 mpls mpls ldp
PE之间建立IPv6邻居\PE将直连路由引入MP-BGP IPv6
AR1
bgp 100 undo default ipv4-unicast peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 # ipv4-family unicast undo synchronization undo peer 3.3.3.3 enable # ipv6-family unicast undo synchronization import-route direct peer 3.3.3.3 enable peer 3.3.3.3 label-route-capability ### 赋予打标签的能力
AR3
bgp 100 undo default ipv4-unicast peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack0 # ipv4-family unicast undo synchronization undo peer 1.1.1.1 enable # ipv6-family unicast undo synchronization import-route direct peer 1.1.1.1 enable peer 1.1.1.1 label-route-capability