03-29-2021 11:56 PM
Hello
I want to configure a PBR such that traffic going from a particular host to internet must match PBR, everything else should route via routing table.
How can I achieve this?
Solved! Go to Solution.
03-30-2021 12:47 AM
Hello,
below is a sample config, assuming your host is 192.168.10.2. Important parts are marked in bold:
interface GigabitEthernet0/1
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 192.168.10.1 255.255.255.0
ip policy route-map PBR
duplex auto
speed auto
media-type rj45
!
router eigrp 1
network 0.0.0.0
!
route-map PBR permit 10
match ip address 101
set interface GigabitEthernet0/0
!
access-list 101 deny ip host 192.168.10.2 host 10.10.10.20
access-list 101 deny ip host 192.168.10.2 host 10.20.20.20
access-list 101 permit ip host 192.168.10.2 any
03-30-2021 12:12 AM
if you use the the keyword "PBR" you will find many answers to your question; like in:
in short:
- define the desired traffic (host/subnet and protocol) using an ACL (access-list) that matches this traffic
- for traffic matching this ACL define rules that define the different treatment like routing via another path
- for all other networks do nothing special, so normal routing will occur.
03-30-2021 12:20 AM - edited 03-30-2021 12:42 AM
Thank you.
I am new to this and I configured a PBR using the document already, it works for one source to one destination, but what I am unable to configure is
If source is x.x.x.x/32 and destination is 10.10.10.0/24 - ignore (use routing table)
if source is x.x.x.x/32 and destination is 10.20.20.0/24 - ignore (use routing table)
if source is x.x.x.x/32 and destination is any - use PBR
Thank you in advance for your prompt response.
03-30-2021 12:47 AM
Hello,
below is a sample config, assuming your host is 192.168.10.2. Important parts are marked in bold:
interface GigabitEthernet0/1
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 192.168.10.1 255.255.255.0
ip policy route-map PBR
duplex auto
speed auto
media-type rj45
!
router eigrp 1
network 0.0.0.0
!
route-map PBR permit 10
match ip address 101
set interface GigabitEthernet0/0
!
access-list 101 deny ip host 192.168.10.2 host 10.10.10.20
access-list 101 deny ip host 192.168.10.2 host 10.20.20.20
access-list 101 permit ip host 192.168.10.2 any
03-30-2021 12:49 AM
Thank you so much! I configured and this works like expected! Thanks again.
03-30-2021 12:35 AM - edited 03-30-2021 12:40 AM
.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide