|
|
< Day Day Up > |
|
Static PE-CE Routing Overview, Configuration, and VerificationStatic PE to CE routing is one of the most common routing techniques used in MPLS VPN deployments. Static PE-CE routing is an optimal solution for sites either having a single PE-CE connection or limited number of subnets in the customer edge (CE) network or both. Static PE to CE routing also prevents the customer or the service provider from intentionally or accidentally flooding each other with false routing information. The service provider therefore retains control over customer routing. Static PE-CE routing might increase the provider's operational and administrative overheads to maintain static routes. This is because static PE-CE routing does not provide dynamic rerouting and therefore requires additional configuration for every new prefix on the PE routers and possibly on the CE router in the absence of a default route. Static PE-CE routing involves the following: On a CE router:
The following are the advantages of using static PE-CE routing:
The following are the disadvantages of using static PE-CE routing:
Configuration Flowchart to Implement Static PE-CE RoutingFigure 4-1 shows the configuration flowchart to implement static PE-CE routing on PE routers. Figure 4-1. Configuration Flowchart to Configure Static PE-CE Routing
Note Refer to Chapter 3, "Basic MPLS Overview and Configuration," for a configuration flowchart to define VRF and its attribute. Configuring Static PE-CE RoutingThe network topology in Figure 4-2 depicts an ATM-based MPLS VPN provider network providing MPLS VPN services to Customer A sites, Site 1 and Site 2. The MPLS provider network comprises PE1-AS1 and PE2-AS1 as PE routers. P1-AS1 and P2-AS1 are LS1010 switches and function as provider routers. The MPLS VPN provider network is running OSPF as the IGP routing protocol on PE1-AS1, P1-AS1, P2-AS1, and PE2-AS1. PE routers PE1-AS1 and PE2-AS1 are configured for MP-iBGP connectivity. Figure 4-2. Provider Network Implementing Static PE-CE Routing
Customer A wants to have connectivity between the Site 1 network (172.16.10.0/24) and Site 2 network (172.16.20.0/24). Site 1 and Site 2 belong to the same VPN, VPN-A. Site 1 and Site 2 comprise CE routers CE1-A and CE2-A, which are connected to PE1-AS1 and PE2-AS1, respectively. A static default route is configured on CE1-A and CE2-A routers. The MPLS VPN provider network plans to deploy static PE-CE routing on PE routers PE1-AS1 and PE2-AS1. Prior to configuring static PE-CE routing, ensure that IP addresses are preconfigured and VRFs defined on PE router. Example 4-1 provides the configuration related to defining VRF and its attributes on PE routers for static PE-CE routing. Example 4-1. Define VRF VRF-STATIC on PE Routers PE1-AS1 and PE2-AS1PE1-AS1(config)#ip vrf VRF-STATIC PE1-AS1(config-vrf)# rd 1:100 PE1-AS1(config-vrf)#route-target both 1:100 PE1-AS1(config-vrf)#interface FastEthernet0/0 PE1-AS1(config-if)# ip vrf forwarding VRF-STATIC PE1-AS1(config-if)# ip address 172.16.1.1 255.255.255.252 __________________________________________________________________________ PE2-AS1(config)#ip vrf VRF-STATIC PE2-AS1(config-vrf)# rd 1:100 PE2-AS1(config-vrf)# route-target both 1:100 PE2-AS1(config-vrf)#interface Ethernet1/0 PE2-AS1(config-if)# ip vrf forwarding VRF-STATIC PE2-AS1(config-if)# ip address 172.16.2.1 255.255.255.252 The steps to configure static PE-CE routing are as follows:
Static PE-CE Routing—Final Device Configurations for CE Routers (CE1-A and CE2-A)Example 4-4 shows CE router configurations for CE1-A and CE2-A. Example 4-4. CE1-A and CE2-A Router Configurationhostname CE1-A ! interface Loopback0 ip address 172.16.10.1 255.255.255.0 ! interface FastEthernet0/0 description connected to PE1-AS1 ip address 172.16.1.2 255.255.255.252 ! ip route 0.0.0.0 0.0.0.0 172.16.1.1 __________________________________________________________________________ hostname CE2-A ! interface Loopback0 ip address 172.16.20.1 255.255.255.0 ! interface Ethernet0/0 description connected to PE2-AS1 ip address 172.16.2.2 255.255.255.255.252 ! ip route 0.0.0.0 0.0.0.0 172.16.2.1 Static PE-CE Routing—Final Device Configuration for Provider Routers (P1-AS1 and P2-AS1)Example 4-5 shows the configuration for LS1010 ATM switches performing the function of provider routers P1-AS1 and P2-AS1 in the MPLS VPN provider network. Example 4-5. P1-AS1 and P2-AS1 Router Configurationhostname P1-AS1 ! mpls label protocol ldp mpls ldp router-id Loopback0 ! interface Loopback0 ip address 10.10.10.200 255.255.255.255 ! interface ATM4/0/0 description connected to P2-AS1 ip address 10.10.10.5 255.255.255.252 mpls ip ! interface ATM4/0/2 description connected to PE1-AS1 ip address 10.10.10.2 255.255.255.252 mpls ip ! router ospf 1 network 10.0.0.0 0.255.255.255 area 0 __________________________________________________________________________ hostname P2-AS1 ! mpls label protocol ldp mpls ldp router-id Loopback0 ! interface Loopback0 ip address 10.10.10.201 255.255.255.255 ! interface ATM4/0/0 description connected to P1-AS1 ip address 10.10.10.6 255.255.255.252 mpls ip ! interface ATM4/0/1 description connected to PE2-AS1 ip address 10.10.10.9 255.255.255.252 mpls ip ! router ospf 1 network 10.0.0.0 0.255.255.255 area 0 Static PE-CE Routing—Final Device Configurations for PE Routers (PE1-AS1 and PE2-AS1)Example 4-6 shows final configurations for PE1-AS1 and PE2-AS1 routers for static PE-CE routing. Example 4-6. PE1-AS1 and PE2-AS1 Router Configurationshostname PE1-AS1 ! ip cef ! ip vrf VRF-STATIC rd 1:100 route-target export 1:100 route-target import 1:100 ! mpls label protocol ldp mpls ldp router-id Loopback0 ! interface Loopback0 ip address 10.10.10.101 255.255.255.255 ! interface FastEthernet0/0 ip vrf forwarding VRF-STATIC ip address 172.16.1.1 255.255.255.252 ! interface ATM2/0 no ip address no atm ilmi-keepalive ! interface ATM2/0.1 mpls description Connection to P1-AS1 ip address 10.10.10.1 255.255.255.252 mpls ip ! router ospf 1 network 10.0.0.0 0.255.255.255 area 0 ! router bgp 1 no synchronization neighbor 10.10.10.102 remote-as 1 neighbor 10.10.10.102 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 10.10.10.102 activate neighbor 10.10.10.102 send-community extended no auto-summary exit-address-family ! address-family ipv4 vrf VRF-STATIC redistribute static redistribute connected no auto-summary no synchronization exit-address-family ! ip classless ip route vrf VRF-STATIC 172.16.10.0 255.255.255.0 172.16.1.2 __________________________________________________________________________ hostname PE2-AS1 ! ip cef ! ip vrf VRF-STATIC rd 1:100 route-target export 1:100 route-target import 1:100 ! mpls label protocol ldp mpls ldp router-id Loopback0 ! interface Loopback0 ip address 10.10.10.102 255.255.255.255 ! interface Ethernet1/0 description connected to CE2-A ip vrf forwarding VRF-STATIC ip address 172.16.2.1 255.255.255.252 ! interface ATM2/0 no ip address ! interface ATM2/0.1 mpls description connected to P2-AS1 ip address 10.10.10.10 255.255.255.252 mpls ip ! router ospf 100 network 10.10.0.0 0.0.255.255 area 0 ! router bgp 1 no synchronization neighbor 10.10.10.101 remote-as 1 neighbor 10.10.10.101 update-source Loopback0 no auto-summary ! address-family vpnv4 neighbor 10.10.10.101 activate neighbor 10.10.10.101 send-community extended no auto-summary exit-address-family ! address-family ipv4 vrf VRF-STATIC no auto-summary no synchronization redistribute static network 172.16.2.0 mask 255.255.255.252 exit-address-family ! ip classless ip route vrf VRF-STATIC 172.16.20.0 255.255.255.0 172.16.2.2 Verification of Static PE-CE RoutingThe steps to verify static PE-CE routing are as follows:
|
|
|
< Day Day Up > |
|