
354
Figure 95 Network diagram
Configuration procedure
1.
Configure CE 1:
# Configure the IP addresses of the interfaces on CE 1.
<CE1> system-view
[CE1] interface gigabitethernet 2/1/1
[CE1-GigabitEthernet2/1/1] ip address 100.1.1.1 24
[CE1-GigabitEthernet2/1/1] quit
[CE1] interface serial 2/1/1
[CE1-Serial2/1/1] ip address 1.1.1.2 24
[CE1-Serial2/1/1] quit
# Configure a default route to PE 1 on CE 1.
[CE1] ip route-static 0.0.0.0 0 1.1.1.1
2.
Configure PE 1:
# Create a VPN instance for VPN 1 and VPN 2 respectively on PE 1 and configure different RDs
and route targets attributes for the VPN instances.
<PE1> system-view
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[PE1-vpn-instance-vpn1] vpn-target 100:1 both
[PE1-vpn-instance-vpn1] quit
[PE1] ip vpn-instance vpn2
[PE1-vpn-instance-vpn2] route-distinguisher 100:2
[PE1-vpn-instance-vpn2] vpn-target 100:2 both
[PE1-vpn-instance-vpn2] quit
# Bind the interface of PE 1 that is connected with CE 1 to VPN instance vpn1.
[PE1] interface serial 2/1/2
[PE1-Serial2/1/2] ip binding vpn-instance vpn1
[PE1-Serial2/1/2] ip address 1.1.1.1 255.255.255.0
[PE1-Serial2/1/2] quit
# Configure a static route and redistribute it into BGP, enabling responses from vpn2 to Host A
can be sent along the correct route in vpn1 of PE 1.