Using bgp to advertise vpn routes to the pe, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual
Page 35

24
[MCE-ospf-10] area 0
[MCE-ospf-10-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[MCE-ospf-10-area-0.0.0.0] quit
[MCE-ospf-10] import-route static
# On PE 1, start OSPF process 10, bind the process with VPN instance vpn1, set the domain ID to 10,
and advertise subnet 30.1.1.0 in area 0.
[PE1] ospf 10 router-id 100.100.10.1 vpn-instance vpn1
[PE1-ospf-10] domain-id 10
[PE1-ospf-10] area 0
[PE1-ospf-10-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[PE1-ospf-10-area-0.0.0.0] quit
[PE1-ospf-10] quit
# On PE 1, display the routing table of VPN1.
[PE1] display ip routing-table vpn-instance vpn1
Routing Tables: vpn1
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
30.1.1.0/24 Direct 0 0 30.1.1.2 Vlan30
30.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 O_ASE 150 1 30.1.1.1 Vlan30
The output shows that the static route of VPN 1 has been redistributed to the OSPF routing table of PE 1.
Take similar procedures to configure OSPF process 20 between MCE and PE 1 and redistribute VPN 2’s
routing information from RIP into the OSPF routing table of MCE. The following output shows that PE 1
has learned the private route of VPN 2 through OSPF.
Routing Tables: vpn2
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
40.1.1.0/24 Direct 0 0 40.1.1.2 Vlan40
40.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.0/24 O_ASE 150 1 40.1.1.1 Vlan40
Now, the routing information of the two VPNs has been redistributed into the routing tables on PE 1.
Using BGP to advertise VPN routes to the PE
Network requirements
As shown in
, use an Ethernet switch as the MCE device. Advertise the VPN routes in site 1 and
site 2 to PE 1, so that a VPN’s sites across the MPLS backbone network can communicate with each other
normally.
Use OSPF in both site 1 and site 2. Use eBGP between the MCE and PE 1.