1. 配置思路
1.配置各接口IP。
2.配置OSPF。
3.配置MPLS/MPLS LDP。
4.配置IBGP/MP-BGP。
5.配置VPN路由反射。
6.配置VPN实例。
7.VPN实例配置PE与CE的EBGP。
8.ASBR相连接口使能MPLS。
9.ASBR间配置MP-EBGP。
2.配置步骤
-
-
-
-
-
- 1 配置各接口IP地址
-
-
-
-
#配置CE1。
<Huawei>system-view
[Huawei]sysname CE1
[CE1]interface GigabitEthernet0/0/1
[CE1-GigabitEthernet0/0/1]ip address 10.1.1.1 30
[CE1-GigabitEthernet0/0/1]undo shutdown
[CE1-GigabitEthernet0/0/1]quit
[CE1]interface LoopBack 0
[CE1-LoopBack0]ip address 11.11.11.11 32
#配置PE1。
<Huawei>system-view
[Huawei]sysname PE1
[PE1]interface GigabitEthernet0/0/0
[PE1-GigabitEthernet0/0/0]ip address 12.12.12.1 30
[PE1-GigabitEthernet0/0/0]undo shutdown
[PE1-GigabitEthernet0/0/0]quit
[PE1]interface loopback 0
[PE1-LoopBack0]ip address 1.1.1.1 32
[PE1-LoopBack0]quit
#配置P1。
<Huawei>system-view
[Huawei]sysname P1
[P1]interface GigabitEthernet0/0/0
[P1-GigabitEthernet0/0/0]ip address 12.12.12.2 30
[P1-GigabitEthernet0/0/0]undo shutdown
[P1-GigabitEthernet0/0/0]quit
[P1]interface GigabitEthernet0/0/1
[P1-GigabitEthernet0/0/1]ip address 23.23.23.1 30
[P1-GigabitEthernet0/0/1]undo shutdown
[P1-GigabitEthernet0/0/1]quit
[P1]interface GigabitEthernet0/0/2
[P1-GigabitEthernet0/0/2]ip address 72.72.72.2 30
[P1-GigabitEthernet0/0/2]undo shutdown
[P1-GigabitEthernet0/0/2]quit
[P1]interface loopback 0
[P1-LoopBack0]ip address 2.2.2.2 32
[P1-LoopBack0]quit
#配置RR1。
<Huawei>system-view
[Huawei]sysname RR1
[RR1]interface GigabitEthernet0/0/2
[RR1-GigabitEthernet0/0/2]ip address 72.72.72.1 30
[RR1-GigabitEthernet0/0/2]undo shutdown
[RR1-GigabitEthernet0/0/2]quit
[RR1]interface LoopBack 0
[RR1-LoopBack0]ip address 7.7.7.7 32
# 配置ASBR1。
<Huawei>system-view
[Huawei]sysname ASBR1
[ASBR1]interface GigabitEthernet0/0/0
[ASBR1-GigabitEthernet0/0/0]ip address 34.34.34.1 30
[ASBR1-GigabitEthernet0/0/0]undo shutdown
[ASBR1-GigabitEthernet0/0/0]quit
[ASBR1]interface GigabitEthernet0/0/1
[ASBR1-GigabitEthernet0/0/1]ip address 23.23.23.2 30
[ASBR1-GigabitEthernet0/0/1]undo shutdown
[ASBR1-GigabitEthernet0/0/1]quit
[ASBR1]interface loopback 0
[ASBR1-LoopBack0]ip address 3.3.3.3 32
[ASBR1-LoopBack0]quit
# 配置ASBR2。
<Huawei>system-view
[Huawei]sysname ASBR2
[ASBR2]interface GigabitEthernet0/0/0
[ASBR2-GigabitEthernet0/0/0]ip address 34.34.34.2 30
[ASBR2-GigabitEthernet0/0/0]undo shutdown
[ASBR2-GigabitEthernet0/0/0]quit
[ASBR2]interface GigabitEthernet0/0/1
[ASBR2-GigabitEthernet0/0/1]ip address 45.45.45.1 30
[ASBR2-GigabitEthernet0/0/1]undo shutdown
[ASBR2-GigabitEthernet0/0/1]quit
[ASBR2]interface loopback 0
[ASBR2-LoopBack0]ip address 4.4.4.4 32
[ASBR2-LoopBack0]quit
#配置P2。
<Huawei>system-view
[Huawei]sysname P2
[P2]interface GigabitEthernet0/0/0
[P2-GigabitEthernet0/0/0]ip address 56.56.56.1 30
[P2-GigabitEthernet0/0/0