BGP - limiting subnets and uplinks

Discussion in 'Cisco' started by david@wmol.com, Nov 16, 2004.

  1. Guest

    Hello:

    router bgp XXX
    network 192.168.0.0 mask 255.255.255.0
    network 192.168.1.0 mask 255.255.255.0
    network 10.0.0.0 mask 255.255.255.0
    neighbor 1.1.1.1 ...
    neighbor 2.2.2.2 ...
    neighbor 3.3.3.3 ...


    I know to announce certain blocks to my uplinks, i use:
    neighbor x.x.x.x distribute-list xxx out


    My question is, how would I limit 10.0.0.0 from using the 3.3.3.3 uplink?
    So 192.168.0.0/24 and 192.168.1.0/24 can use all the uplinks, but 10.0.0.0/24 can only use
    1.1.1.1 and 2.2.2.2?

    Thanks
    , Nov 16, 2004
    #1
    1. Advertising

  2. Doan Guest

    On Tue, 16 Nov 2004 wrote:

    > Hello:
    >
    > router bgp XXX
    > network 192.168.0.0 mask 255.255.255.0
    > network 192.168.1.0 mask 255.255.255.0
    > network 10.0.0.0 mask 255.255.255.0
    > neighbor 1.1.1.1 ...
    > neighbor 2.2.2.2 ...
    > neighbor 3.3.3.3 ...
    >
    >
    > I know to announce certain blocks to my uplinks, i use:
    > neighbor x.x.x.x distribute-list xxx out
    >
    >
    > My question is, how would I limit 10.0.0.0 from using the 3.3.3.3 uplink?
    > So 192.168.0.0/24 and 192.168.1.0/24 can use all the uplinks, but 10.0.0.0/24 can only use
    > 1.1.1.1 and 2.2.2.2?
    >
    > Thanks
    >

    You can use PBR or, for simplicity, you can just use static routes for the
    10.0.0.0/24, e.g.
    ip route 10.0.0.0/24 any 1.1.1.1
    ip route 10.0.0.0/24 any 2.2.2.2

    The 10.0.0./24 will then only use 3.3.3.3 when the above two links are
    down. I am assuming that 1.1.1.1, 2.2.2.2 & 3.3.3.3 are your next-hops.

    Doan
    Doan, Nov 16, 2004
    #2
    1. Advertising

  3. Guest

    Doan <> wrote:
    >
    > On Tue, 16 Nov 2004 wrote:
    >
    >> Hello:
    >>
    >> router bgp XXX
    >> network 192.168.0.0 mask 255.255.255.0
    >> network 192.168.1.0 mask 255.255.255.0
    >> network 10.0.0.0 mask 255.255.255.0
    >> neighbor 1.1.1.1 ...
    >> neighbor 2.2.2.2 ...
    >> neighbor 3.3.3.3 ...
    >>
    >>
    >> I know to announce certain blocks to my uplinks, i use:
    >> neighbor x.x.x.x distribute-list xxx out
    >>
    >>
    >> My question is, how would I limit 10.0.0.0 from using the 3.3.3.3 uplink?
    >> So 192.168.0.0/24 and 192.168.1.0/24 can use all the uplinks, but 10.0.0.0/24 can only use
    >> 1.1.1.1 and 2.2.2.2?
    >>
    >> Thanks
    >>

    > You can use PBR or, for simplicity, you can just use static routes for the
    > 10.0.0.0/24, e.g.
    > ip route 10.0.0.0/24 any 1.1.1.1
    > ip route 10.0.0.0/24 any 2.2.2.2
    >
    > The 10.0.0./24 will then only use 3.3.3.3 when the above two links are
    > down. I am assuming that 1.1.1.1, 2.2.2.2 & 3.3.3.3 are your next-hops.
    >
    > Doan
    >
    >
    >


    Well, 1.1.1.1 and 2.2.2.2 are two separate uplinks, so I dont want to do:
    ip route 10.0.0.0/24 any 1.1.1.1
    ip route 10.0.0.0/24 any 2.2.2.2

    Can you give me an example of the PBR?
    , Nov 16, 2004
    #3
  4. Doan Guest

    a123sdg321

    On Tue, 16 Nov 2004 wrote:

    > Doan <> wrote:
    > >
    > > On Tue, 16 Nov 2004 wrote:
    > >
    > >> Hello:
    > >>
    > >> router bgp XXX
    > >> network 192.168.0.0 mask 255.255.255.0
    > >> network 192.168.1.0 mask 255.255.255.0
    > >> network 10.0.0.0 mask 255.255.255.0
    > >> neighbor 1.1.1.1 ...
    > >> neighbor 2.2.2.2 ...
    > >> neighbor 3.3.3.3 ...
    > >>
    > >>
    > >> I know to announce certain blocks to my uplinks, i use:
    > >> neighbor x.x.x.x distribute-list xxx out
    > >>
    > >>
    > >> My question is, how would I limit 10.0.0.0 from using the 3.3.3.3 uplink?
    > >> So 192.168.0.0/24 and 192.168.1.0/24 can use all the uplinks, but 10.0.0.0/24 can only use
    > >> 1.1.1.1 and 2.2.2.2?
    > >>
    > >> Thanks
    > >>

    > > You can use PBR or, for simplicity, you can just use static routes for the
    > > 10.0.0.0/24, e.g.
    > > ip route 10.0.0.0/24 any 1.1.1.1
    > > ip route 10.0.0.0/24 any 2.2.2.2
    > >
    > > The 10.0.0./24 will then only use 3.3.3.3 when the above two links are
    > > down. I am assuming that 1.1.1.1, 2.2.2.2 & 3.3.3.3 are your next-hops.
    > >
    > > Doan
    > >
    > >
    > >

    >
    > Well, 1.1.1.1 and 2.2.2.2 are two separate uplinks, so I dont want to do:
    > ip route 10.0.0.0/24 any 1.1.1.1
    > ip route 10.0.0.0/24 any 2.2.2.2
    >
    > Can you give me an example of the PBR?
    >

    I don't understand why you don't want to use the above since both uplinks
    will be used by 10.0.0.0/24. As for PBR, try this link:
    http://www.cisco.com/en/US/tech/tk365/tk80/technologies_tech_note09186a008009481d.shtml

    Doan
    Doan, Nov 18, 2004
    #4
    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. Bill F
    Replies:
    11
    Views:
    1,397
    Gert Doering
    Feb 14, 2004
  2. David Hill

    BGP - limiting outgoing

    David Hill, Oct 8, 2004, in forum: Cisco
    Replies:
    3
    Views:
    555
  3. tony

    uplinks and trunks

    tony, Oct 14, 2006, in forum: Cisco
    Replies:
    11
    Views:
    982
    BernieM
    Oct 21, 2006
  4. Patrick Cervicek
    Replies:
    0
    Views:
    779
    Patrick Cervicek
    Aug 7, 2007
  5. Replies:
    4
    Views:
    1,401
    Trendkill
    Aug 29, 2008
Loading...

Share This Page