Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Policy routing , Need Help

Status
Not open for further replies.

rcasta

Technical User
Joined
Aug 8, 2002
Messages
211
Location
CA
Hello,

when trying to configure policy routing, and say that packets from host A go to ip nexthop a.b.c.d , is nexthop could possible be a loopback interface that is configured in the other end router ?

You see, I have 4 T1's with the same ISP1 plus another T1 link but with another ISP2.

What I want is to set host A to send its traffic thru ISP1, we are running BGP by means of a loopback for balancing purposes.

So, can I use "set ip next-hop loopback_ISP1" ????

Or policy routing will work on connected interfaces only ?

cheers !!!
 
It is possible to use a loopback as a valid address for an interface. My question is what are all the routing protocols you are using. What would be really helpful is a dump of the configs. You could replace the actuall ip addresses with X's. xxx.xxx.xxx.xxx mmm.mmm.mmm.mmm
And delete all your password encrypts

This way one can see more clearly what you have configured and what the best steps are to take.
 
Sure, here are the highlights :

interface GigabitEthernet0/0.1
description To LAN
encapsulation dot1Q 10
ip address 10.2.25.24 255.255.255.192
ip nat inside
ip policy route-map changenh

route-map changenh, permit, sequence 10
Match clauses:
ip address (access-lists): 120
Set clauses:
ip next-hop _i_want_this_one_to_be_far_end_loopback

access-list 120 permit ip host 172.16.53.92 10.0.0.0 0.255.255.255

router bgp 65534
neighbor 192.168.254.1 description ISP
neighbor 192.168.254.1 ebgp-multihop 2
neighbor 192.168.254.1 update-source Loopback0

ip route 192.168.254.1 255.255.255.255 Serial1/0:1
ip route 192.168.254.1 255.255.255.255 Serial1/1:1
ip route 192.168.254.1 255.255.255.255 Serial1/2:1
ip route 192.168.254.1 255.255.255.255 Serial1/3:1

!Please note that ip address 192.168.254.1 is my ISP's loopback address, and there is where I want to route traffic out for host 172.16.53.92 only (bear in mind that I have a 2nd ISP, though I "need" to route traffic from this particular machine for requisition purposes.)

cheers!!!
 
Ok, if I understand the question correctly; You want HostA to go to ISP1 and not ISP2 and that is the main goal here?

If my assumption in what you have asked is correct then we don't really have to concern ourselves with the loopback address.

I would say perform a map based on the interface. USING:

router(config-route-map)#set interface {type} [NUMBER]

The set interface command provides a list of interfaces through which the packets can be routed, If more than one interface is specified (that is), the first interface that is found up is used to forward the packets.
However, if there is no explicit route for the destination address of the packet in the routing table (example, if packet is a broadcast or sent to unknown address) the set inter command has no effect. So, I'm not too positive you want to use this method.
If this isn't any help then let me know.

We'll go over it more in depth then post it.
 
Thnx for answering, you see, up to that point you mentioned in your prior reply everything goes fine, though, what I need is that traffic goes not only thru the 1st active interface but thru the 4 I hold with ISP1 to load balance traffic that comes from hostA.

thank you so much !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top