DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-11
PEs to the CE. At the same time, by redistributing OSPF routes, the BGP module sends the VPN
routing information that is sent to the PE by the CE to other PE peers.
The configuration procedure on the PE is as follows:
Command Function
DES-7200# configure terminal
Enter the global configuration mode.
DES-7200(config)# router ospf
ospf-id vrf-name
Create an OSPF instance and enter the OSPF
configuration mode.
DES-7200(config-router)# network
prefix mask area area-id
Configure an OSPF link.
Ruiije(config-router)# redistribute
bgp subnets
Configure the OSPF module to redistribute BGP
routes.
Ruiije(config-router)# exit
Quit the OSPF configuration mode.
DES-7200(config)# router bgp asn
Enable BGP and enter the BGP configuration
mode.
DES-7200(config-router)#
address-family ipv4 vrf vrf-name
Enter the BGP VRF configuration mode.
DES-7200(config-router-af)#
redistribute ospf ospf-id
Redistribute OSPF routes.
DES-7200(config-router-af)# show
running-config
View all configuration information.
# Run OSPF between a PE and CE to distribute VPN routes.
DES-7200# configure terminal
DES-7200(config)# router ospf 10 vrf1
DES-7200(config-router)# network 192.168.10.0 255.255.255.0 area 0
DES-7200(config-router)# redistribute bgp subnets
DES-7200(config-router)# exit
DES-7200(config-router)# router bgp 1
DES-7200(config-router)# address-family ipv4 vrf vrf1
DES-7200(config-router-af)# redistribute ospf 10