D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-148
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 VRF
Create a VRF of " VPNA", define RD value and RT value, and associate VRF with the
corresponding interface.
DES-7200# configure terminal
DES-7200(config)# ip vrf VPNA
DES-7200(config-vrf)# rd 1:100
DES-7200(config-vrf)# route-target both 1:100
DES-7200(config-vrf)# end
# Associate the CE-connecting interface with VRF
DES-7200# configure terminal
DES-7200(config)# interface gigabitethernet 1/0
# In case of a switch, configure the interface to RoutedPort interface (not applicable to a
router)
DES-7200(config-if-GigabitEthernet 1/0)# no switchport
# In case of a router, enable fast forwarding on the interface (not applicable to a switch)
DES-7200(config-if-GigabitEthernet 1/0)# ip ref
DES-7200(config-if-GigabitEthernet 1/0)# ip vrf forwarding VPNA
DES-7200(config-if-GigabitEthernet 1/0)# ip address 192.168.10.1 255.255.255.0
DES-7200(config-if-GigabitEthernet 1/0)# end
# 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.2 remote-as 1
DES-7200(config-router)# neighbor 172.168.0.2 update-source loopback 0
DES-7200(config-router)# address-family vpnv4
DES-7200(config-router-af)# neighbor 172.168.0.2 activate
DES-7200(config-router-af)# end
# Exchange routes with CE via OSPF protocol; configure the domain ID of OSPF instance to 10
DES-7200# configure terminal