cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
333
Views
0
Helpful
1
Replies

pppoe and route-map

Archil Sokhadze
Level 1
Level 1

in test sample below everithing works correctly as expected  ,

but problem is that if i change route-map dst   "set ip next-hop 200.0.0.2 "  to "set interface fastethernet 1/0"

than i am loosing conection to 222.222.222.222.

reason that i want to change route-map statement is that in reality one of my link is pppoe, 

so i dont exactely know what will be the gateway next time router will take new ip.

i have two options

more prefered 1) leave defaulgt gateway assigned on pppoe and write PBR for second link for which i have gateway ip

less prefered   2) call provider and ask what can be the potential gateways , so that i can put all of them in  "set ip next-hop verify-availibility x.x.x.x track xxx" command.


will be thankful, if  someone can offer me better option.

interface FastEthernet0/0

description LAN

ip address 10.0.0.1 255.255.255.0

ip nat inside

ip policy route-map dst

!

interface FastEthernet0/1

description isp1

ip address 100.0.0.1 255.255.255.0

ip nat outside

!       

interface FastEthernet1/0

description isp2

ip address 200.0.0.1 255.255.255.0

ip nat outside

ip route 0.0.0.0 0.0.0.0 100.0.0.2

!             

ip nat inside source route-map isp1 interface FastEthernet0/1 overload

ip nat inside source route-map isp2 interface FastEthernet1/0 overload

!       

ip access-list extended dst

permit ip 10.0.0.0 0.0.0.255 host 222.222.222.222

ip access-list extended nat

permit ip 10.0.0.0 0.0.0.255 any

!         

route-map isp2 permit 10

match ip address nat

match interface FastEthernet1/0

!       

route-map isp1 permit 10

match ip address nat

match interface FastEthernet0/1

!       

route-map dst permit 10

match ip address dst

set ip next-hop 200.0.0.2

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

duplicated post

Best Regards

Giuseppe

Review Cisco Networking for a $25 gift card