249
Configuring a hub-spoke network
Network requirements
The Spoke-CEs cannot communicate directly. They can communicate only through Hub-CE.
Configure EBGP between the Spoke-CEs and Spoke-PEs and between Hub-CE and Hub-PE to
exchange VPN routing information.
Configure OSPF between the Spoke-PEs and Hub-PE to implement communication between the
PEs, and configure MP-IBGP between them to exchange VPN routing information.
Figure 73 Network diagram
Table 15 Interface and IP address assignment
Device
Interface
IP address
Device
Interface
IP address
Spoke-CE 1
GE1/1/1
10.1.1.1/24 Hub-CE
GE1/1/1 10.3.1.1/24
Spoke-PE 1
Loop0
1.1.1.9/32
GE1/1/2
10.4.1.1/24
GE1/1/1
10.1.1.2/24
Hub-PE Loop0 2.2.2.9/32
POS1/1/0
172.1.1.1/24
POS1/1/0
172.1.1.2/24
Spoke-CE 2
GE1/1/1 10.2.1.1/24
POS1/1/1 172.2.1.2/24
Spoke-PE 2
Loop0
3.3.3.9/32
GE1/1/1
10.3.1.2/24
GE1/1/1
10.2.1.2/24
GE1/1/2
10.4.1.2/24
POS1/1/0
172.2.1.1/24
Configuration procedure
1.
Configure an IGP on the MPLS backbone to ensure IP connectivity within the backbone:
# Configure Spoke-PE 1.
<Spoke-PE1> system-view
[Spoke-PE1] interface loopback 0
[Spoke-PE1-LoopBack0] ip address 1.1.1.9 32
[Spoke-PE1-LoopBack0] quit
Spoke-CE 2
Hub-PE
AS 65420
AS 65410
AS 65430
VPN 1
VPN 1
VPN 1
Hub-CE
Spoke-PE 1
Spoke-PE 2
Spoke-CE 1
Loop0
POS1/1/0
GE1/1/2
GE1/1/1
GE1/1/1
POS1/1/0
POS1/1/1
POS1/1/0
MPLS backbone
GE1/1/1
GE1/1/1
GE1/1/1
GE1/1/1
GE1/1/2
Loop0
Loop0