beautypg.com

Ospf vpn extension – H3C Technologies H3C S12500-X Series Switches User Manual

Page 161

background image

150

[Spoke-PE2-bgp-ipv4-vpn1] peer 10.2.1.1 enable

[Spoke-PE2-bgp-ipv4-vpn1] import-route direct

[Spoke-PE2-bgp-ipv4-vpn1] quit

[Spoke-PE2-bgp-vpn1] quit

[Spoke-PE2-bgp] quit

# Configure Hub-PE.

[Hub-PE] bgp 100

[Hub-PE-bgp] ip vpn-instance vpn1-in

[Hub-PE-bgp-vpn1-in] peer 10.3.1.1 as-number 65430

[Hub-PE-bgp-vpn1-in] address-family ipv4

[Hub-PE-bgp-ipv4-vpn1-in] peer 10.3.1.1 enable

[Hub-PE-bgp-ipv4-vpn1-in] import-route direct

[Hub-PE-bgp-ipv4-vpn1-in] quit

[Hub-PE-bgp-vpn1-in] quit

[Hub-PE-bgp] ip vpn-instance vpn1-out

[Hub-PE-bgp-vpn1-out] peer 10.4.1.1 as-number 65430

[Hub-PE-bgp-vpn1-out] address-family ipv4

[Hub-PE-bgp-ipv4-vpn1-out] peer 10.4.1.1 enable

[Hub-PE-bgp-ipv4-vpn1-out] import-route direct

[Hub-PE-bgp-ipv4-vpn1-out] quit

[Hub-PE-bgp-vpn1-out] quit

[Hub-PE-bgp] quit

After completing the configurations, execute the display bgp peer ipv4 vpn-instance command on
the PEs. The output shows that a BGP peer relationship has been established between a PE and a

CE and has reached the Established state.

5.

Establish an MP-IBGP peer relationship between the Spoke-PEs and Hub-PE:
# Configure Spoke-PE 1.

[Spoke-PE1] bgp 100

[Spoke-PE1-bgp] peer 2.2.2.9 as-number 100

[Spoke-PE1-bgp] peer 2.2.2.9 connect-interface loopback 0

[Spoke-PE1-bgp] address-family vpnv4

[Spoke-PE1-bgp-vpnv4] peer 2.2.2.9 enable

[Spoke-PE1-bgp-vpnv4] quit

[Spoke-PE1-bgp] quit

# Configure Spoke-PE 2.

[Spoke-PE2] bgp 100

[Spoke-PE2-bgp] peer 2.2.2.9 as-number 100

[Spoke-PE2-bgp] peer 2.2.2.9 connect-interface loopback 0

[Spoke-PE2-bgp] address-family vpnv4

[Spoke-PE2-bgp-vpnv4] peer 2.2.2.9 enable

[Spoke-PE2-bgp-vpnv4] quit

[Spoke-PE2-bgp] quit

# Configure Hub-PE.

[Hub-PE] bgp 100

[Hub-PE-bgp] peer 1.1.1.9 as-number 100

[Hub-PE-bgp] peer 1.1.1.9 connect-interface loopback 0

[Hub-PE-bgp] peer 3.3.3.9 as-number 100