Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

PBR to a server

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
Hall of Fame Super Bronze

Re: PBR to a server

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.

Bronze

Re: PBR to a server

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..

New Member

Re: PBR to a server

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?

Bronze

Re: PBR to a server

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

Hall of Fame Super Bronze

Re: PBR to a server

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.

Bronze

Re: PBR to a server

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 :)

Hall of Fame Super Bronze

Re: PBR to a server

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.

New Member

Re: PBR to a server

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.

Hall of Fame Super Bronze

Re: PBR to a server

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?

New Member

Re: PBR to a server

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

Hall of Fame Super Bronze

Re: PBR to a server

Buy one with (2) LAN interfaces.

New Member

Re: PBR to a server

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.

Hall of Fame Super Bronze

Re: PBR to a server

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.

134
Views
0
Helpful
13
Replies
CreatePlease login to create content