Announcement

Collapse
No announcement yet.

Cisco :: Route traffic on the basis of source subnets

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cisco :: Route traffic on the basis of source subnets

    Hi there,

    Guys I really need your help..

    Actually I have Cisco 2800 series router that has two fast Ethernet interfaces, one of them is defined as internal network and the other one is as external. In our network there almost 15 subnets, and have two external links.
    I want to route some selected VLANs to first external link, and rest of them should go through second external link.

    For example:

    172.30.0.0/24
    172.30.1.0/24
    172.30.2.0/24
    172.30.3.0/24
    172.30.4.0/24
    172.30.5.0/24
    172.30.6.0/24
    (The above VLANs should be routed to router A which is my first ISP)


    172.30.7.0/24
    172.30.8.0/24
    172.30.9.0/24
    172.30.10.0/24
    172.30.11.0/24
    172.30.12.0/24
    172.30.13.0/24
    172.30.14.0/24
    172.30.15.0/24
    (The above VLANs should be routed to router B which is my second ISP)

    All VLANS are connected to fast Ethernet 0/0, and both ISPs will be connected to fast Ethernet 0/1

    My internal network has no issues; on external interface (fast Ethernet 0/1) I have defined networks for both ISPs (because I am having static pool of IPs)

    Now my main question is how I can configure my Cisco router to route traffic on the basis of source subnets.

    Ip route command is used to route traffic on destination basis. I am getting extremely confused in this thing.

    Please help me out!

  • #2
    Re: Cisco :: Route traffic on the basis of source subnets

    Hi,

    Have a look at configuring PBR (Policy Based Routing)
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment


    • #3
      Re: Cisco :: Route traffic on the basis of source subnets

      Its seems to be relevant... can anybody gives some more information about this..

      Thanks

      Comment


      • #4
        Re: Cisco :: Route traffic on the basis of source subnets

        microguy86

        I am not sure how much more information you want. L4ndy provided a pretty good link on how to do PBR's. For you scenario you would create two access-lists. One is going to be for the networks you want to route out of router A and then another that you want to route out of router B. Your access-list should be defined as "ip any any". Then create a route-map that uses the "match clause" that basically says "if there is a match for access-list 100 set the next hop router to router A". This is just an example but read through the documentation. It explains things fairly well.

        Maybe this link will be a little more digestable.

        http://www.cisco.com/en/US/tech/tk36...8047915d.shtml

        Ryan

        Comment


        • #5
          Re: Cisco :: Route traffic on the basis of source subnets

          Let me clear up the scenario..

          I have defined internal interface as "ip nat inside" and external as "ip nat outside"
          can you please tell me that can policy based routing be used with NATing on the same router?

          Comment


          • #6
            Re: Cisco :: Route traffic on the basis of source subnets

            Not sure what type of Natting you are using but you can use route maps with Nat.

            1. http://www.cisco.com/en/US/docs/ios/...e/ftnatrt.html

            2. http://supportwiki.cisco.com/ViewWik...ith_route-maps

            Comment

            Working...
            X