DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-144
DES-7200(config-router)# address-family vpnv4
DES-7200(config-router-af)# neighbor 2.2.2.2 active
DES-7200(config-router-af)# neighbor 2.2.2.2 send-community both
DES-7200(config-router-af)# exit
DES-7200(config-router)# address-family ipv4 vrf vpn1
DES-7200(config-router-af)# redistribute ospf 10 vrf vpn1
DES-7200(config-router-af)# exit
DES-7200(config-router)# exit
## Configure route exchanging between PE and CE
DES-7200(config)# router ospf 10 vrf vpn1
DES-7200(config-router)# network 192.168.1.0 0.0.0.255 area 0
DES-7200(config-router)# redistribute bgp 100 subnets
DES-7200(config-router)# exit
Configure CE. Here we will take CE1 as the example. The configurations of CE2 are the same.
DES-7200(config)# interface gigabitEthernet 0/0
# In case of a router, enable fast forwarding on the interface (not applicable to a switch)
DES-7200(config-if)# ip ref
DES-7200(config-if)# ip address 192.168.1.2 255.255.255.0
DES-7200(config-if)# no shutdown
DES-7200(config-if)# exit
DES-7200(config)# router ospf 1
DES-7200(config-router)# network 192.168.1.0 0.0.0.255 area 0
DES-7200(config-router)# exit
2.5.12.5 Verification
# On PE, check routing table entries. Here we will take PE1 as the example. The next-hop
interface of route 2.2.2.2/32 is Tunnel 0.
DES-7200# show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default
Gateway of last resort is no set
C 10.1.0.0/16 is directly connected, gigabitEthernet 0/0
C 10.1.0.1/32 is local host.