Redistribution between VRF

Source: Internet
Author: User

This blog post will describe how to use VRF on a single router to redistribute EIGRP routes in both directions. EIGRP is in multiple domains (this is obviously not a good design).

This is a way to redistribute different VRF routes across a single router, but routing protocols are not limited to EIGRP, and the redistribution between EIGRP and EIGRP,OSPF and OSPF,EIGRP and OSPF is no problem, as the author tests. This article demonstrates only EIGRP as an example.


The topology is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/C4/wKiom1W9oCGgNuAZAAIsGPHwFpA289.jpg "title=" Topology.png "alt=" wkiom1w9ocggnuazaaisgphwfpa289.jpg "/> Basic configuration is as follows:

R1 (config) #int s1/1r1 (config-if) #ip add 12.1.1.1 255.255.255.0r1 (config-if) #no shutR1 (config-if) #int lo 0r1 (config-if ) #ip Add 1.1.1.1 255.255.255.0
R2 (config) #int s1/0r2 (config-if) #ip add 12.1.1.2 255.255.255.0r2 (config-if) #no shutR2 (config-if) #int S1/1R2 ( CONFIG-IF) #ip Add 23.1.1.2 255.255.255.0r2 (config-if) #no shut
R3 (config) #int s1/0r3 (config-if) #ip add 23.1.1.3 255.255.255.0r3 (config-if) #no shutR3 (config-if) #int lo 0r3 (config-if ) #ip Add 3.3.3.3 255.255.255.0


Enable EIGRP separately on R1 and R3:

R1:

Router EIGRP network 1.1.1.0 0.0.0.255 network 12.1.1.0 0.0.0.255 no auto-summary

R3:

Router EIGRP network 3.3.3.0 0.0.0.255 network 23.1.1.0 0.0.0.255 no auto-summary

Enable VRF on the R2, s1/0 interface into the "EIGRP100" VRF, the S1/1 interface into the "EIGRP200" VRF and enable EIGRP to establish a neighbor relationship with R1 and R3, respectively.

IP vrf EIGRP100 Rd 100:100ip Vrf EIGRP200 Rd 200:200
Interface serial1/0 IP VRF forwarding EIGRP100 IP address 12.1.1.2 255.255.255.0interface SERIAL1/1 IP vrf forwarding eigr P200 IP Address 23.1.1.2 255.255.255.0
Router EIGRP 6000 no auto-summary!            address-family IPv4 VRF EIGRP200 network 23.1.1.0 0.0.0.255//announce route no auto-summary Autonomous-system 200 Be sure to specify the as number in the VRF, or you will not be able to establish neighbor exit-address-family! address-family IPv4 VRF EIGRP100 network 12.1.1.0 0.0.0.255 no auto-summary autonomous-system exit-address-family


View Neighbor Relationships

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/C1/wKioL1W9o1-CjQC8AAIBwb-iTG8477.jpg "title=" Figure 3.png "alt=" Wkiol1w9o1-cjqc8aaibwb-itg8477.jpg "/>

To configure redistribution:

Configure the import and export of Route-target in the VRF, if it is multiple VRF, be sure to note the entry.

IP VRF EIGRP100

Rd 100:100

Route-target Export 100:100

Route-target Import 200:200

!

IP VRF EIGRP200

Rd 200:200

Route-target Export 200:200

Route-target Import 100:100

Configure BGP to pass routing information through BGP.

Router BGP 5000

No synchronization

BGP Router-id 2.2.2.2//This configuration is only to ensure that BGP is working properly, the router does not need to have this address

BGP log-neighbor-changes

No auto-summary

!

address-family IPv4 VRF EIGRP200

Redistribute EIGRP 200

No auto-summary

No synchronization

Exit-address-family

!

address-family IPv4 VRF EIGRP100

Redistribute EIGRP 100

No auto-summary

No synchronization

Exit-address-family

After the configuration is complete, look at the BGP table to see if the route has been re-distributed into BGP.


2#show IP BGP vpnv4 All

BGP table version is a, local router ID is 2.2.2.2

Status Codes:s suppressed, D damped, H history, * valid, > Best, I-internal,

R Rib-failure, S Stale

Origin codes:i-IGP, E-EGP,? -Incomplete


Network Next Hop Metric locprf Weight Path

Route distinguisher:100:100 (default for VRF EIGRP100)

*> 1.1.1.0/24 12.1.1.1 2297856 32768?

*> 3.3.3.0/24 23.1.1.3 2297856 32768?

*> 12.1.1.0/24 0.0.0.0 0 32768?

*> 23.1.1.0/24 0.0.0.0 0 32768?

Route distinguisher:200:200 (default for VRF EIGRP200)

*> 1.1.1.0/24 12.1.1.1 2297856 32768?

*> 3.3.3.0/24 23.1.1.3 2297856 32768?

*> 12.1.1.0/24 0.0.0.0 0 32768?

*> 23.1.1.0/24 0.0.0.0 0 32768?

Configure EIGRP to redistribute BGP routes into EIGRP.

Router EIGRP 6000

!

address-family IPv4 VRF EIGRP200

Redistribute BGP metric 1000 100 255 1 1500

!

address-family IPv4 VRF EIGRP100

Redistribute BGP metric 1000 100 255 1 1500


View routes for R1 and R3, and whether to learn about each other's routes, respectively:

routing table for R1:

R1#show IP route

1.0.0.0/24 is subnetted, 1 subnets

C 1.1.1.0 is directly connected, Loopback0

3.0.0.0/24 is subnetted, 1 subnets

D EX 3.3.3.0 [170/3097600] via 12.1.1.2, 00:23:54, SERIAL1/1

23.0.0.0/24 is subnetted, 1 subnets

D EX 23.1.1.0 [170/3097600] via 12.1.1.2, 00:23:54, SERIAL1/1

12.0.0.0/24 is subnetted, 1 subnets

C 12.1.1.0 is directly connected, SERIAL1/1

routing table for R3:

R3#show IP route

1.0.0.0/24 is subnetted, 1 subnets

D EX 1.1.1.0 [170/3097600] via 23.1.1.2, 00:24:06, serial1/0

3.0.0.0/24 is subnetted, 1 subnets

C 3.3.3.0 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C 23.1.1.0 is directly connected, serial1/0

12.0.0.0/24 is subnetted, 1 subnets

D EX 12.1.1.0 [170/3097600] via 23.1.1.2, 00:24:06, serial1/0

Ping test:

r1#ping 3.3.3.3 Source 1.1.1.1


Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

Packet sent with a source address of 1.1.1.1

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 24/60/80 ms


This article is from "Yang Sen's It Road" blog, please be sure to keep this source http://senyang.blog.51cto.com/3427514/1680960

Redistribution between VRF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.