3com 8807 User Guide

Page of 883
Typical BGP/MPLS VPN Configuration Example
597
[PE1-Vlan-interface310] ip binding vpn-instance vpn1
 
[PE1-Vlan-interface310] ip address 20.2.1.2 24
 
[PE1-Vlan-interface310] quit
 
[PE1] vlan 210
 
[PE1-vlan210] interface vlan-interface 210
 
[PE1-Vlan-interface210] ip binding vpn-instance vpn2
 
[PE1-Vlan-interface210] ip address 20.1.1.2 24
 
[PE1-Vlan-interface210] quit 
# Configure basic MPLS capability on PE2.
[PE2] mpls lsr-id 2.2.2.9
 
[PE2-mpls] lsp-trigger all
 
[PE2-mpls] quit
 
[PE2] mpls ldp
 
[PE2-mpls-ldp] quit
 
[PE2] vlan 110
 
[PE2-vlan110] interface vlan-interface 110
 
[PE2-Vlan-interface110] mpls
 
[PE2-Vlan-interface110] mpls ldp
 
[PE2-Vlan-interface110] quit 
# Create a VPN instance for VPN1 on PE2, and bind the address of the interface of 
VLAN210 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] vlan 210
 
[PE2-vlan210] interface vlan-interface 210
 
[PE2-Vlan-interface210] ip binding vpn-instance vpn1
 
[PE2-Vlan-interface210] ip address 20.3.1.2 24
 
[PE2-Vlan-interface210] quit 
Configure BGP.
# Configure CE1:
[CE1] vlan 310
 
[CE1-vlan310] interface vlan-interface 310
 
[CE1-Vlan-interface310] ip address 20.2.1.1 24
 
[CE1-Vlan-interface310] 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] vlan 210
 
[CE2-vlan210] interface vlan-interface 210
 
[CE2-Vlan-interface210] ip address 20.1.1.1 24
 
[CE2-Vlan-interface210] quit 
# Configure CE3: