01-09-2008 08:39 AM - edited 03-03-2019 08:12 PM
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
01-09-2008 07:00 PM
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.
01-09-2008 07:37 PM
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..
01-10-2008 01:50 AM
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?
01-10-2008 02:20 AM
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
01-10-2008 05:27 AM
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.
01-10-2008 05:35 AM
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 :)
01-10-2008 06:00 AM
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.
01-10-2008 07:17 AM
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.
01-10-2008 07:26 AM
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?
01-10-2008 08:49 AM
I haven't bought the router yet. Wanted to be sure that the set up will work before going ahead and buy one.
01-10-2008 10:45 AM
Buy one with (2) LAN interfaces.
01-10-2008 12:36 PM
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.
01-10-2008 05:25 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide