route-maps (again)

Discussion in 'Cisco' started by HangaS, May 8, 2008.

  1. HangaS

    HangaS Guest

    Hi


    I'm trying to create some rules to route trafic to some GW depending
    either on the source address or destination address

    For the source address matching I can use route-maps


    access-list 1 permit x.x.1.1 0.0.0.0
    access-list 1 permit x.x.1.4 0.0.0.0
    access-list 1 permit x.x.1.3 0.0.0.0
    access-list 1 deny any

    route-map SERVER permit 10
    match ip address 1
    set ip next-hop x.y.z.254

    and then apply this map to the interface


    now, for the destination matching the only way I could get it to work
    is through static routing

    ip route a.b.c.d1 255.255.255.255 x.y.z.254
    ip route a.b.c.d2 255.255.255.255 x.y.z.254
    ip route a.b.c.d3 255.255.255.255 x.y.z.254
    ip route a.b.c.d4 255.255.255.255 x.y.z.254

    Ok this solves it for now, but what I realy wanted was to use some
    sort of access lists for both destination
    or origin (I can live with a list for IN and other for OUT) but
    wanted to be able to apply it to a single interface, which is not
    possible with global static routing.

    Any tips on can I do this?

    Thanks
     
    HangaS, May 8, 2008
    #1
    1. Advertising

  2. HangaS

    HangaS Guest

    I got it.
    I guess I was just needing a break after fighing with the thing for
    hours trying many stratagies in the wrong direction.

    extendend access-list were real friends in this case.
     
    HangaS, May 8, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Captain
    Replies:
    5
    Views:
    672
    Ivan Ostres
    Jun 28, 2004
  2. Rob

    Creative timed route-maps?

    Rob, Feb 5, 2005, in forum: Cisco
    Replies:
    6
    Views:
    401
  3. Phil

    Route Maps with HSRP

    Phil, Oct 19, 2005, in forum: Cisco
    Replies:
    1
    Views:
    805
    Vincent C Jones
    Oct 20, 2005
  4. Ralph Fox

    MSN maps vs. Google maps

    Ralph Fox, Jul 30, 2007, in forum: NZ Computing
    Replies:
    0
    Views:
    583
    Ralph Fox
    Jul 30, 2007
  5. Replies:
    9
    Views:
    5,156
    Scott Perry
    Aug 7, 2008
Loading...

Share This Page