3Com Switch 8800 Configuration Guide Chapter 37 BGP/MPLS VPN Configuration

37-87

[PE2-LoopBack0] ip address 2.2.2.9 32
[PE2-LoopBack0] quit
[PE2] interface Ethernet1/1/0
[PE2-Ethernet1/1/0] ip address 192.168.1.2 24
[PE2-Ethernet1/1/0] quit
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
2) Configure basic MPLS capability and create VPN instances. Configure basic MPLS capability on PE1:
[PE1] mpls lsr-id 1.1.1.9
[PE1-mpls] lsp-trigger all
[PE1-mpls] quit
[PE1] mpls ldp
[PE1-mpls-ldp] quit
[PE1] interface Ethernet1/1/0
[PE1-Ethernet1/1/0] mpls
[PE1-Ethernet1/1/0] mpls ldp
[PE1-Ethernet1/1/0] quit
Create VPN instances for VPN1 and VPN2 on PE1, bind Ethernet3/1/0 to VPN1, and bind Ethernet2/1/0 to VPN2.
[PE1] ip vpn-instance vpn1
[PE1-vpn-vpn1] route-distinguisher 100:1
[PE1-vpn-vpn1] vpn-target 100:1 both
[PE1-vpn-vpn1] quit
[PE1] ip vpn-instance vpn2
[PE1-vpn-vpn2] route-distinguisher 100:2
[PE1-vpn-vpn2] vpn-target 100:2 both
[PE1-vpn-vpn2] quit
[PE1] interface Ethernet3/1/0
[PE1-Ethernet3/1/0] ip binding vpn-instance vpn1
[PE1-Ethernet3/1/0] ip address 20.2.1.2 24
[PE1-Ethernet3/1/0] quit
[PE1] interface Ethernet2/1/0
[PE1-Ethernet2/1/0] ip binding vpn-instance vpn2
[PE1-Ethernet2/1/0] ip address 20.1.1.2 24
[PE1-Ethernet2/1/0] quit
Configure basic MPLS capability on PE2: