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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port based policy routing

Status
Not open for further replies.

gpetrom

Technical User
Jan 12, 2005
47
Hi everyone

I have a 836 router and two adsl routers dlink.Ok lets name adsl routers adsl1 and adsl2 i want to check from the clients
what port are using and then forward the packets to adsl1 or adsl2. For example i want port 21 to be routed in adsl1 and http to adsl2.

Can anyone help me with an example?

Thanks everyone in advanced

Sorry if my english are bad
 
It sounds like you need to implement Policy Based Routing (PBR) on your 836. The following link goes into a lot more detail about it with configuration examples:


Based on your post, it would seem all you would need is a policy like as follows where adsl1 is 1.1.1.1 and adsl2 is 2.2.2.2:

access-list 100 permit tcp any any eq 21
access-list 101 permit tcp any any eq 80

interface ethernet 1
ip policy route-map adsl

route-map adsl permit 10
match ip address 100
set ip next-hop 1.1.1.1

route-map adsl permit 20
match ip address 101
set ip next-hop 2.2.2.2
 
Hi kiscokid

Thanks for replying you where very helpfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top