cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
692
Views
0
Helpful
13
Replies

PBR to a server

s-seesurrun
Level 1
Level 1

Hi,

I've got a scenario where my users will be on 1.1.1.0/24 and my router ip address is 1.1.1.3/24. I have two servers connected to the router. The FTP server is 192.168.1.1 and the Streaming server is 192.168.1.2. If the user is going to transfer a file using FTP, it should be routed to the FTP server. If a streaming is requested and it should be routed to the Streaming server. If the user will like to browse then it will be routed to another router. Will PBR work for the FTP and streaming, since the next hop is not a router but the server itself? Attached is a topology

13 Replies 13

Edison Ortiz
Hall of Fame
Hall of Fame

The next-hop doesn't have to be a router for the PBR to work. What you are proposing should work without problems.

HTH,

Edison.

s.arunkumar
Level 3
Level 3

Is ur switch layer 2 or layer 3.As i understand ur communication between the servers and users happens through the router,ie intervlan happens via router rather than switch.

If so u can divert the traffic.Just match the access-list for ftp traffic and ur steaming traffic(port no. for the same).Then set the next hop as servers IP.

If the next-hop is not in routing table,try creating a static route to the servers so as to match the next-hop..i have a doubt in that but lets hear waht other says..

Hi,

I'll be using a layer 2 switch. I believe it should work. Will it be easier if I have an additional 2 ethernet ports on the router with the latter being on the same subnet of the servers?

If its l2 switch then the user data is coming till router and then getting routed.

If u are connecting servers directly to two differnet ports on same router then both will be in different subnets.

I think then its easy as packet reaches the router it understand to which network it should go..so no need of pbr then..

arun

Arun,

From my understanding, he wants to redirect traffic based on the application (FTP). You can't do this with regular 'ip routing', you need PBR for this task.

___

Edison.

Yes i understood that..If i understood correctly he mentioned that he plan to put two servers across two ethernet int in an above post.That means two will be in directly connected different subnet.Now both server will have different IP then.So the router can decide at layer 3 itself without check top layer data where to forwards.

Please correct me if i am wrong

tks a lot

arun :)

Layer3 (routing) will only use destination-based routing. I believe the OP wants all FTP sessions to go to the FTP server and not the internet. All streaming related packets to go to the streaming device. All other traffic should go into the internet.

Layer3 routing alone won't do this for you.

__

Edison.

Edison,

You got the set up right. All FTP session will go to the FTP server and streaming to the Streaming server. Any other traffic will go to the internet. So you reckon that PBR will work just fine, even if I have only one ethernet connection between the router and the switch, all the servers connected to the switch but on different subnets. The second ethernet interface on the router will be connected directly to the internet.

I'm assuming you are using trunking on the ethernet port facing the internal switch ?

Are you able to ping those servers from the router?

Can you post the router config?

I haven't bought the router yet. Wanted to be sure that the set up will work before going ahead and buy one.

Buy one with (2) LAN interfaces.

I am getting one with two LAN interfaces and two more slots.

The first interface will be connected to the switch with the other servers and the second one to the internet.

It would give you more choices on the PBR as you can use set interface as a next-hop option within the route-map.

A set ip next-hop will work as long as the next-hop device is in a directly connected network from the device performing the PBR.

__

Edison.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card