DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-167
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
(except for the switching card interface). 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.2 255.255.255.0
# Configure to run OSPF protocol with PE for two VRFs
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)# capability vrf-lite
DES-7200(config)# router ospf 10 VPN2
DES-7200(config-router)# network 192.168.40.0 255.255.255.0 area 0
DES-7200(config-router)# capability vrf-lite
PE2:
# Configure Loopback interface
DES-7200# configure terminal
DES-7200(config)# interface loopback 0
DES-7200(config-if-Loopback 0)# ip address 172.168.0.2 255.255.255.255
# Configure Trunk link between PE and CE
DES-7200(config)# interface gigabitethernet 1/2
DES-7200(config-if-GigabitEthernet 1/2)# switchport mode trunk
DES-7200(config-if-GigabitEthernet 1/2)# end
# Configure VRF
Create two VRFs of "VPN1" and "VPN2" to represent different services, and associate VRF with
the corresponding interface.
DES-7200# configure terminal
DES-7200(config)# ip vrf VPN1
DES-7200(config-vrf)# rd 1:100
DES-7200(config-vrf)# route-target both 1:100
DES-7200(config-vrf)# end
DES-7200# configure terminal