Basic VRF

Posted: November 5, 2012 in Cisco, Networking

R1 (Sebagai PE Router) :

ip vrf to-r2
rd 2:2
!
ip vrf to-r3
rd 3:3
!
ip vrf to-r4
rd 4:4
!

interface FastEthernet0/0
ip vrf forwarding to-r2
ip address 172.16.234.1 255.255.255.252
!
interface FastEthernet0/1
ip vrf forwarding to-r3
ip address 172.16.234.1 255.255.255.252

interface FastEthernet1/0
ip vrf forwarding to-r4
ip address 172.16.234.1 255.255.255.252

Config ip p2p (R2-R3-R4) sama :

R4(config-router)#do sh run int f0/0
Building configuration…

Current configuration : 99 bytes
!
interface FastEthernet0/0
ip address 172.16.234.2 255.255.255.252

Verify ip route tiap router CE (R2,R3,R4)

R1#sh ip route vrf to-r2

Routing Table: to-r2
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 1 subnets
C 172.16.234.0 is directly connected, FastEthernet0/0
R1#sh ip route vrf to-r3

Routing Table: to-r3
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 1 subnets
C 172.16.234.0 is directly connected, FastEthernet0/1
R1#sh ip route vrf to-r4

Routing Table: to-r4
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 1 subnets
C 172.16.234.0 is directly connected, FastEthernet1/0

Verify ping from R1 to Router CE (R2,R3,R4)

R1#ping vrf to-r2 172.16.234.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.234.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/40/72 ms
R1#ping vrf to-r3 172.16.234.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.234.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/54/116 ms
R1#ping vrf to-r4 172.16.234.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.234.2, timeout is 2 seconds:
!!.!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 68/85/132 ms

Salam,

Wiwid

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s