DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-163
DES-7200(config)# VLAN 10
DES-7200(config)# interface vlan 10
# 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.10.2 255.255.255.0
DES-7200(config)# ip vrf VPN2
DES-7200(config-vrf)# exit
DES-7200(config)# VLAN 20
DES-7200(config)# interface vlan 20
# 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.20.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.10.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.20.0 255.255.255.0 area 0
DES-7200(config-router)# capability vrf-lite
PE1:
# Configure Loopback interface
DES-7200# configure terminal
DES-7200(config)# interface loopback 0
DES-7200(config-if-Loopback 0)# ip address 172.168.0.1 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