DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-168
DES-7200(config)# ip vrf VPN2
DES-7200(config-vrf)# rd 1:200
DES-7200(config-vrf)# route-target both 1:200
DES-7200(config-vrf)# end
# Associate the CE-connecting interface with VRF
DES-7200(config)# VLAN 30
DES-7200(config)# interface vlan 30
# VLAN is the configuration command used on switch products, and is not applicable to routers
(except for the switching card interface). Routers can use the subinterface to bind VRF.
DES-7200(config-if-vlan 10)# ip vrf forwarding VPN1
DES-7200(config-if-vlan 10)# ip address 192.168.30.1 255.255.255.0
DES-7200(config)# VLAN 40
DES-7200(config)# interface vlan 40
# VLAN is the configuration command used on switch products, and is not applicable to routers.
Routers can use the sub-interface to bind VRF.
DES-7200(config-if-vlan 20)# ip vrf forwarding VPN2
DES-7200(config-if-vlan 20)# ip address 192.168.40.1 255.255.255.0
# Configure BGP protocol to establish MP-IBGP session with PE2
DES-7200# configure terminal
DES-7200(config)# router bgp 1
DES-7200(config-router)# neighbor 172.168.0.1 remote-as 1
DES-7200(config-router)# neighbor 172.168.0.1 update-source loopback 0
DES-7200(config-router)# address-family vpnv4
DES-7200(config-router-af)# neighbor 172.168.0.1 activate
DES-7200(config-router-af)# end
# Exchange routes with CE via OSPF protocol
DES-7200# configure terminal
DES-7200(config)# router ospf 10 VPN1
DES-7200(config-router)# network 192.168.30.0 255.255.255.0 area 0
DES-7200(config-router)# redistribute bgp subnets
DES-7200(config-router)# exit
DES-7200(config)# router bgp 1
DES-7200(config-router)# address-family ipv4 vrf VPN1