3Com Switch 8800 Configuration Guide
Chapter 37 BGP/MPLS VPN Configuration
37-88
[PE2] mpls lsr-id 2.2.2.9
[PE2-mpls] lsp-trigger all
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
[PE2] interface Ethernet1/1/0
[PE2-Ethernet1/1/0] mpls
[PE2-Ethernet1/1/0] mpls ldp
[PE2-Ethernet1/1/0] quit
Create a VPN instance for VPN1 on PE2, and bind Ethernet2/1/0 to VPN1.
[PE2] ip vpn-instance vpn1
[PE2-vpn-vpn1] route-distinguisher 300:1
[PE2-vpn-vpn1] vpn-target 100:1 both
[PE2-vpn-vpn1] quit
[PE2] interface Ethernet2/1/0
[PE2-Ethernet2/1/0] ip binding vpn-instance vpn1
[PE2-Ethernet2/1/0] ip address 20.3.1.2 24
[PE2-Ethernet2/1/0] quit
Configure BGP.
Configure CE1:
[CE1] interface Ethernet1/1/0
[CE1-Ethernet1/1/0] ip address 20.2.1.1 24
[CE1-Ethernet1/1/0] quit
[CE1] bgp 65410
[CE1-bgp] import-route direct
[CE1-bgp] group 10 external
[CE1-bgp] peer 20.2.1.2 group 10 as-number 100
[CE1-bgp] quit
Configure CE2:
[CE2] interface Ethernet1/1/0
[CE2-Ethernet1/1/0] ip address 20.1.1.1 24
[CE2-Ethernet1/1/0] quit
[CE2] bgp 65420
[CE2-bgp] import-route direct
[CE2-bgp] group 10 external
[CE2-bgp] peer 20.1.1.2 group 10 as-number 100
[CE2-bgp] quit
Configure CE3:
[CE3] interface Ethernet1/1/0
[CE3-Ethernet1/1/0] ip address 20.3.1.1 24