Configure EIGRP and Verify Path Control Using Policy Based Routing PBR
Configure EIGRP and Verify Path Control Using Policy Based Routing PBR
Configure EIGRP and Verify Path Control Using Policy Based Routing PBR
PNETLAB Store
PNETLab.com
Lab Topology:
Please use the following topology to complete this lab exercise:
Lab Objective:
The objective of lab exercise is for you to learn and understand step-by-step config EIGRP and
Configure and verify policy-based routing.
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task:
1. Configure loopbacks and assign addresses
2. Routing EIGRP
3. Verify the current path
4. Configure PBR to provide path control
5. Test the policy
Solution:
Task 1: Configure loopbacks and assign addresses
On R1:
hostname R1
!
interface Lo0
ip address 192.168.1.1 255.255.255.0
!
interface e0/0
ip address 172.16.12.1 255.255.255.0
bandwidth 128
no shutdown
!
Interface e0/1
ip address 172.16.13.1 255.255.255.0
bandwidth 64
no shutdown
On R2:
hostname R2
!
interface Lo0
ip address 192.168.2.1 255.255.255.0
!
Interface e0/0
ip address 172.16.12.2 255.255.255.0
bandwidth 128
no shutdown
!
Interface e0/1
ip address 172.16.23.1 255.255.255.0
bandwidth 128
no shutdown
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R3:
hostname R3
!
interface Lo0
ip address 192.168.3.1 255.255.255.0
!
interface e0/1
ip address 172.16.13.3 255.255.255.0
bandwidth 64
no shutdown
!
Interface
ip address e0/0172.16.23.3 255.255.255.0
bandwidth 128
no shutdown
!
Interface e0/2
ip address 172.16.34.3 255.255.255.248
bandwidth 64
no shutdown
On R4:
hostname R4
!
interface Lo0
ip address 192.168.4.1 255.255.255.128
!
interface Lo1
ip address 192.168.4.129 255.255.255.128
!
Interface e0/0
ip address 172.16.34.4 255.255.255.0
bandwidth 64
no shutdown
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
no auto-summary
R3(config-std-nacl)# exit
R3(config-route-map)# exit
Match clauses:
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Set clauses:
ip next-hop 172.16.13.1
R3(config)# exit
Verification:
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R3:
*Oct 23 04:39:42.466: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, policy reject
ed -- normal forwarding
*Oct 23 04:39:42.467: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, policy reject
ed -- normal forwarding
*Oct 23 04:39:42.468: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, FIB policy re
jected(no match) - normal forwarding
R3#
*Oct 23 04:39:51.475: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, FIB policy re
jected(no match) - normal forwarding
*Oct 23 04:39:51.477: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, FIB policy re
jected(no match) - normal forwarding
*Oct 23 04:39:51.478: IP: s=192.168.4.1 (Ethernet0/2), d=192.168.1.1, len 28, FIB policy re
jected(no match) - normal forwarding
On R3:
*Oct 23 04:37:07.009: IP: s=192.168.4.129 (Ethernet0/2), d=192.168.1.1, len 28, policy matc
h
*Oct 23 04:37:07.009: IP: route map R3-to-R1, item 10, permit
*Oct 23 04:37:07.009: IP: s=192.168.4.129 (Ethernet0/2), d=192.168.1.1 (Ethernet0/1), len 2
8, policy routed
*Oct 23 04:37:07.009: IP: Ethernet0/2 to Ethernet0/1 172.16.13.1
*Oct 23 04:37:07.009: IP: s=192.168.4.129 (Ethernet0/2), d=192.168.1.1, len 28, policy matc
h
*Oct 23 04:37:07.009: IP: route map R3-to-R1, item 10, permit
*Oct 23 04:37:07.009: IP: s=192.168.4.129 (Ethernet0/2), d=192.168.1.1 (Ethernet0/1), len 2
8, policy routed
*Oct 23 04:37:07.009: IP: Ethernet0/2 to Ethernet0/1 172.16.13.1
7
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R3, display the policy and matches using the show route-map command:
R3#show route-map
route-map R3-to-R1, permit, sequence 10
Match clauses:
ip address (access-lists): PBR_ACL
Set clauses:
ip next-hop 172.16.13.1
Nexthop tracking current: 0.0.0.0
172.16.13.1, fib_nh:0,oce:0,status:0