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

37-84

II. Network diagram
MPLS Network
PE
vpn2
vpn1
Multi-VPN-Instance CE
ospf100
vpn1
ospf300
vpn2
VLAN201
10.1.1.2/24
VLAN204
20.2.1.2/24
VLAN202
10.2.1.2/24
VLAN203
20.1.1.2/24
MPLS Network
PE
vpn2
vpn1
Multi-VPN-Instance CE
ospf100
vpn1
ospf300
vpn2
VLAN201
10.1.1.2/24
VLAN204
20.2.1.2/24
VLAN202
10.2.1.2/24
VLAN203
20.1.1.2/24
Figure 37-18 Network diagram for OSPF multi-instance CE configuration
III. Configuration procedure
1) Configuring CE router Configure instance vpn1
[CE] ip vpn-instance vpn1
[CE-vpn-vpn1] route-distinguisher 100:1
[CE-vpn-vpn1] vpn-target 100:1 export-extcommunity
[CE-vpn-vpn1] vpn-target 100:1 import-extcommunity
Configure instance vpn2
[CE] ip vpn-instance vpn2
[CE-vpn-vpn2] route-distinguisher 200:1
[CE-vpn-vpn2] vpn-target 200:1 export-extcommunity
[CE-vpn-vpn2] vpn-target 200:1 import-extcommunity
Configure VLAN201
[CE] vlan 201
[CE-vlan201] port gigabitethernet 2/1/1
[CE-vlan201] quit
[CE] interface Vlan-interface 201
[CE-Vlan-interface201] ip binding vpn-instance vpn1
[CE-Vlan-interface201] ip address 10.1.1.2 255.255.255.0
Configure VLAN202
[CE] vlan 202
[CE-vlan202] port gigabitethernet 2/1/2
[CE-vlan202] quit
[CE] interface Vlan-interface 202
[CE-Vlan-interface202] ip binding vpn-instance vpn1
[CE-Vlan-interface202] ip address 10.2.1.2 255.255.255.0
[CE-Vlan-interface202] ospf cost 100
Configure VLAN203