3Com DUA1750-2BAA01 Switch User Manual


 
3Com Switch 8800 Configuration Guide Chapter 37 BGP/MPLS VPN Configuration
37-37
Note:
The configuration on VPN-B is similar to that on VPN-A and only VPN-A configuration is
detailed here.
[PE2] ip vpn-instance vpna
[PE2-vpn-vpna] route-distinguisher 100:1
[PE2-vpn-vpna] vpn-target 100:1 both
[PE2-vpn-vpna] quit
Configure the VLAN interface connecting PE 2 with CE-3 and bind the VLAN interface
to VPN-A.
[PE2] vlan 10
[PE2-vlan10] interface vlan-interface 10
[PE2-vlan-interface10] ip binding vpn-instance vpna
[PE2-vlan-interface10] ip address 20.2.1.2 255.255.255.0
[PE2-vlan-interface10] quit
Configure a user-defined flow template and a link ACL, and then perform the
redirection configuration.
[PE2] flow-template user-defined slot 3 vlanid
[PE2] acl number 4000
[PE2-acl-link-4000] rule 0 permit ingress 10 egress any
[PE2-acl-link-4000] quit
[PE2] interface Ethernet 2/1/1
[PE2-Ethernet2/1/1] port link-type trunk
[PE2-Ethernet2/1/1] flow-template user-defined
[PE2-Ethernet2/1/1] traffic-redirect inbound link-group 4000 rule 0 interface
GigabitEthernet 3/3/3 10 l3-vpn
Import the routes of the private network interface between PE 2 and CE-3.
[PE2] bgp 100
[PE2-bgp] ipv4-family vpn-instance vpna
[PE2-bgp-af-vpn-instance] import-route direct
[PE2-bgp-af-vpn-instance] quit
[PE2-bgp] quit
Create MP-IBGP neighborhood between PE 1 and PE 2 to exchange VPN routing
information between them, enable the IBGP peer in VPNv4 address family view.
[PE2] bgp 100
[PE2-bgp] group 2
[PE2-bgp] peer 1.1.1.9 group 2
[PE2-bgp] peer 1.1.1.9 connect-interface loopback0
[PE2-bgp] ipv4-family vpnv4