Topology

Task 1 Link to heading

Configure in ISP:

  • OSPF 1 Area 0 on all routers.
  • BGP on R1 and R3, using Lo0 to form peering.
  • MPLS on all routers.

Configuration Link to heading

hostname R1
int l0
    ip add 1.1.1.1 255.255.255.255
int f0/0
    no shut
    ip add 192.168.12.1 255.255.255.0
int f0/1
    no shut
    ip add 192.168.14.1 255.255.255.0

int f1/0
    no shut
    ip add 192.168.16.1 255.255.255.0

int f1/1
    no shut
    ip add 192.168.18.1 255.255.255.0

router ospf 1
    net 1.1.1.1 0.0.0.0 area 0
    net 192.168.12.0 0.0.0.255 area 0

router bgp 123
    neighbor 3.3.3.3 remote-as 123
    neighbor 3.3.3.3 update-source l0

int f0/0
    mpls ip
hostname R2

int f0/0
    no shut
    ip add 192.168.12.2 255.255.255.0

int f0/1
    no shut
    ip add 192.168.23.2 255.255.255.0

router ospf 1
    net 192.168.12.0 0.0.0.255 area 0
    net 192.168.23.0 0.0.0.255 area 0

int range f0/0-1
    mpls ip
hostname R3

int l0
    ip add 3.3.3.3 255.255.255.255

int f0/0
    no shut
    ip add 192.168.23.3 255.255.255.0

int f0/1
    no shut
    ip add 192.168.35.3 255.255.255.0

int f1/0
    no shut
    ip add 192.168.37.3 255.255.255.0

int f1/1
    no shut
    ip add 192.168.39.3 255.255.255.0

router ospf 1
    net 3.3.3.3 0.0.0.0 area 0
    net 192.168.23.0 0.0.0.255 area 0

router bgp 123
    neighbor 1.1.1.1 remote-as 123
    neighbor 1.1.1.1 update-source l0

int f0/0
    mpls ip

Verification Link to heading

R1#show ip bgp
BGP router identifier 1.1.1.1, local AS number 123
BGP table version is 1, main routing table version 1

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
3.3.3.3         4          123       2       2        1    0    0 00:00:18        0

R1#show mpls int
Interface              IP            Tunnel   BGP Static Operational
FastEthernet0/0        Yes (ldp)     No       No  No     Yes

Task 2 Link to heading

Configure in Customer A:

  • Create VRF A on router R1 and R3 (RD = 1:1, RT = 10:10).
  • Configure Static route on all routers.
  • Redistribute Static to MP-BGP

Configuration Link to heading

The exchange of IPv4 routes between BGP neighbors is enabled by default.

=> no bgp default ipv4-unicast disables the default exchange.

=> Neighbors that need to receive IPv4 routes have to be activated for route exchange.

R1(config)#

ip vrf A
    rd 1:1
    route-target 10:10

int f0/1
    ip vrf forward A
    ip add 192.168.14.1 255.255.255.0

ip route vrf A 4.4.4.4 255.255.255.255 192.168.14.4

router bgp 123
    no bgp default ipv4-unicast
    address-family vpnv4
        neighbor 3.3.3.3 activate
        neighbor 3.3.3.3 send-community extended

    address-family ipv4 vrf A
        redistribute static
R3(config)#

ip vrf A
    rd 1:1
    route-target 10:10

int f0/1
    ip vrf forward A
    ip add 192.168.35.3 255.255.255.0

ip route vrf A 5.5.5.5 255.255.255.255 192.168.35.5

router bgp 123
    no bgp default ipv4-unicast
    address-family vpnv4
        neighbor 1.1.1.1 activate
        neighbor 1.1.1.1 send-community extended

    address-family ipv4 vrf A
        redistribute static
hostname R4

int l0
    ip add 4.4.4.4 255.255.255.255

int f0/0
    no shut
    ip add 192.168.14.4 255.255.255.0

ip route 5.5.5.5 255.255.255.255 192.168.14.1
hostname R5

int l0
    ip add 5.5.5.5 255.255.255.255

int f0/0
    no shut
    ip add 192.168.35.5 255.255.255.0

ip route 4.4.4.4 255.255.255.255 192.168.35.3

Verification Link to heading

R1#show ip bgp vpnv4 vrf A
BGP table version is 4, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *>  4.4.4.4/32       192.168.14.4             0         32768 ?
 *>i 5.5.5.5/32       3.3.3.3                  0    100      0 ?

R4#ping 5.5.5.5 source 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 500/662/784 ms

Task 3 Link to heading

Configure in Customer B:

  • Create VRF B on router R1 and R3 (RD = 2:2, RT = 20:20).
  • Configure MPLS VPN to connect 2 sides R4 and R5.
  • Configure EIGRP 100 on all routers.
  • Redistribute EIGRP to MP-BGP.
  • Redistribute only 1 route Lo0 from MP-BGP to EIGRP (using route-map).

Configuration Link to heading

R1(config)#

ip vrf B
    rd 2:2
    route-target 20:20

int f1/0
    ip vrf forward B
    ip add 192.168.16.1 255.255.255.0

router eigrp 100
    address-family ipv4 vrf B autonomous-system 100
        no auto
        net 192.168.16.0 0.0.0.255

router bgp 123
    address-family ipv4 vrf B
        redistribute eigrp 100

ip access-list standard CUSTB
    permit host 7.7.7.7

route-map CUSTB_REDISTRIBUTE permit 10
    match ip add CUSTB

router eigrp 100
    address-family ipv4 vrf B autonomous-system 100
        default-metric 100000 10 255 1 1500
        redistribute bgp 123 route-map CUSTB_REDISTRIBUTE
R3(config)#

ip vrf B
    rd 2:2
    route-target 20:20

int f1/0
    ip vrf forward B
    ip add 192.168.37.3 255.255.255.0

router eigrp 100
    address-family ipv4 vrf B autonomous-system 100
        no auto
        net 192.168.37.0 0.0.0.255

router bgp 123
    address-family ipv4 vrf B
        redistribute eigrp 100

ip access-list standard CUSTB
    permit host 6.6.6.6

route-map CUSTB_REDISTRIBUTE permit 10
    match ip add CUSTB

router eigrp 100
    address-family ipv4 vrf B autonomous-system 100
        default-metric 100000 10 255 1 1500
        redistribute bgp 123 route-map CUSTB_REDISTRIBUTE
hostname R6

int l0
    ip add 6.6.6.6 255.255.255.255

int f0/0
    no shut
    ip add 192.168.16.6 255.255.255.0

router eigrp 100
    no auto
    net 6.6.6.6 0.0.0.0
    net 192.168.16.0 0.0.0.255
hostname R7

int l0
    ip add 7.7.7.7 255.255.255.255

int f0/0
    no shut
    ip add 192.168.37.7 255.255.255.0

router eigrp 100
    no auto
    net 7.7.7.7 0.0.0.0
    net 192.168.37.0 0.0.0.255

Verification Link to heading

R1#show ip bgp vpnv4 vrf B
     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 2:2 (default for vrf B)
 *>  6.6.6.6/32       192.168.16.6        156160         32768 ?
 *>i 7.7.7.7/32       3.3.3.3             156160    100      0 ?
 *>  192.168.16.0     0.0.0.0                  0         32768 ?
 *>i 192.168.37.0     3.3.3.3                  0    100      0 ?

R6#show ip route eigrp
      7.0.0.0/32 is subnetted, 1 subnets
D        7.7.7.7 [90/158720] via 192.168.16.1, 00:00:31, FastEthernet0/0

R6#ping 7.7.7.7 source 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
Packet sent with a source address of 6.6.6.6
!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 520/599/700 ms

Task 4 Link to heading

Configure in Customer C:

  • Create VRF C on router R1 and R3 (RD = 3:3, RT = 30:30).
  • Configure MPLS VPN to connect 2 sides R8 and R9.
  • Configure OSPF 100 Area 0 on all routers.
  • Redistribute OSPF to MP-BGP.
  • Redistribute only 1 route Lo0 from MP-BGP to OSPF (using route-map).

Configuration Link to heading

R1(config)#

ip vrf C
    rd 3:3
    route-target 30:30

int f1/1
    ip vrf forward C
    ip add 192.168.18.1 255.255.255.0

router ospf 100 vrf C
    net 192.168.18.0 0.0.0.255 area 0

router bgp 123
    address-family ipv4 vrf C
        redistribute ospf 100

ip access-list standard CUSTC
    permit host 9.9.9.9

route-map CUSTC_REDISTRIBUTE permit 10
    match ip add CUSTC

router ospf 100 vrf C
    redistribute bgp 123 route-map CUSTC_REDISTRIBUTE subnets
R3(config)#

ip vrf C
    rd 3:3
    route-target 30:30

int f1/1
    ip vrf forward C
    ip add 192.168.39.3 255.255.255.0

router ospf 100 vrf C
    net 192.168.39.0 0.0.0.255 area 0

router bgp 123
    address-family ipv4 vrf C
        redistribute ospf 100

ip access-list standard CUSTC
    permit host 8.8.8.8

route-map CUSTC_REDISTRIBUTE permit 10
    match ip add CUSTC

router ospf 100 vrf C
    redistribute bgp 123 route-map CUSTC_REDISTRIBUTE subnets
hostname R8

int l0
    ip add 8.8.8.8 255.255.255.255

int f0/0
    no shut
    ip add 192.168.18.8 255.255.255.0

router ospf 100
    net 8.8.8.8 0.0.0.0 area 0
    net 192.168.18.0 0.0.0.255 area 0
hostname R9

int l0
    ip add 9.9.9.9 255.255.255.255

int f0/0
    no shut
    ip add 192.168.39.9 255.255.255.0

router ospf 100
    net 9.9.9.9 0.0.0.0 area 0
    net 192.168.39.0 0.0.0.255 area 0

Verification Link to heading

R1#show ip bgp vpnv4 all
     Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf A)
 *>  4.4.4.4/32       192.168.14.4             0         32768 ?
 *>i 5.5.5.5/32       3.3.3.3                  0    100      0 ?
Route Distinguisher: 2:2 (default for vrf B)
 *>  6.6.6.6/32       192.168.16.6        156160         32768 ?
 *>i 7.7.7.7/32       3.3.3.3             156160    100      0 ?
 *>  192.168.16.0     0.0.0.0                  0         32768 ?
 *>i 192.168.37.0     3.3.3.3                  0    100      0 ?
Route Distinguisher: 3:3 (default for vrf C)
 *>  8.8.8.8/32       192.168.18.8             2         32768 ?
 *>i 9.9.9.9/32       3.3.3.3                  2    100      0 ?
 *>  192.168.18.0     0.0.0.0                  0         32768 ?
 *>i 192.168.39.0     3.3.3.3                  0    100      0 ?

R8#show ip route ospf
      9.0.0.0/32 is subnetted, 1 subnets
O IA     9.9.9.9 [110/3] via 192.168.18.1, 00:00:21, FastEthernet0/0

R8#ping 9.9.9.9 source 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 9.9.9.9, timeout is 2 seconds:
Packet sent with a source address of 8.8.8.8
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 544/750/924 ms