beautypg.com

H3C Technologies H3C S12500-X Series Switches User Manual

Page 160

background image

149

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.666/2.075/2.710/0.406 ms

4.

Establish EBGP peer relationships between the PEs and CEs, and redistribute VPN routes into BGP:
# Configure Spoke-CE 1.

system-view

[Spoke-CE1] bgp 65410

[Spoke-CE1-bgp] peer 10.1.1.2 as-number 100

[Spoke-CE1-bgp] address-family ipv4

[Spoke-CE1-bgp-ipv4] peer 10.1.1.2 enable

[Spoke-CE1-bgp-ipv4] import-route direct

[Spoke-CE1-bgp-ipv4] quit

[Spoke-CE1-bgp] quit

# Configure Spoke-CE 2.

system-view

[Spoke-CE2] bgp 65420

[Spoke-CE2-bgp] peer 10.2.1.2 as-number 100

[Spoke-CE2-bgp] address-family ipv4

[Spoke-CE2-bgp-ipv4] peer 10.2.1.2 enable

[Spoke-CE2-bgp-ipv4] import-route direct

[Spoke-CE2-bgp-ipv4] quit

[Spoke-CE2-bgp] quit

# Configure Hub-CE.

system-view

[Hub-CE] bgp 65430

[Hub-CE-bgp] peer 10.3.1.2 as-number 100

[Hub-CE-bgp] peer 10.4.1.2 as-number 100

[Hub-CE-bgp] address-family ipv4

[Hub-CE-bgp-ipv4] peer 10.3.1.2 enable

[Hub-CE-bgp-ipv4] peer 10.4.1.2 enable

[Hub-CE-bgp-ipv4] import-route direct

[Hub-CE-bgp-ipv4] quit

[Hub-CE-bgp] quit

# Configure Spoke-PE 1.

[Spoke-PE1] bgp 100

[Spoke-PE1-bgp] ip vpn-instance vpn1

[Spoke-PE1-bgp-vpn1] peer 10.1.1.1 as-number 65410

[Spoke-PE1-bgp-vpn1] address-family ipv4

[Spoke-PE1-bgp-ipv4-vpn1] peer 10.1.1.1 enable

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

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

[Spoke-PE1-bgp-vpn1] quit

[Spoke-PE1-bgp] quit

# Configure Spoke-PE 2.

[Spoke-PE2] bgp 100

[Spoke-PE2-bgp] ip vpn-instance vpn1

[Spoke-PE2-bgp-vpn1] peer 10.2.1.1 as-number 65420

[Spoke-PE2-bgp-vpn1] address-family ipv4