D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 2 Configuring BGP IP VPN
2-124
DES-7200(config)# interface gigabitEthernet 1/1
# In case of a switch, configure the interface to RoutedPort interface (not applicable to a
router)
DES-7200(config-if)# no switchport
# 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 172.1.1.2 255.255.255.0
DES-7200(config-if)# no shutdown
# Configure PE-CE route exchanging: Here we will take PE1-CE1 as the example. The
configurations of PE2-CE2 are the same.
## Configure on PE1:
DES-7200(config)# router ospf 100 vrf vpn1
DES-7200(config-router)# network 172.1.1.0 0.0.0.255 area 0
DES-7200(config-router)# redistribute bgp 65001 subnets
DES-7200(config-router)# exit
DES-7200(config)# router bgp 65001
DES-7200(config-router)# address-family ipv4 vrf vpn1
DES-7200(config-router-af)# redistribute ospf 100 vrf vpn1
DES-7200(config-router-af)# exit
DES-7200(config-router)# exit
## Then, configure on CE1:
DES-7200(config)# router ospf 1
DES-7200(config-router)# network 172.1.1.0 0.0.0.255 area 0
DES-7200(config-router)# exit
Enable CSC function
# Enable CSC on PE: Here we will take PE1 as the example. The configurations of PE2 are the
same.
DES-7200(config)# mpls router ldp vpn1
DES-7200(config-mpls-router)# ldp rouer-id interface Loopback 1
DES-7200(config-mpls-router)# advertise-labels for bgp-routes
DES-7200(config-mpls-router)# exit
DES-7200(config)# interface gigabitEthernet 1/1
# In case of a switch, configure the interface to RoutedPort interface (not applicable to a
router)
DES-7200(config-if)# no switchport
# In case of a router, enable fast forwarding on the interface (not applicable to a switch)
DES-7200(config-if)# ip ref