Jump to content


how to redistribute only one static routes in bgp

how to redistribute only one

  • Please log in to reply
4 replies to this topic

#1 ANILSHARMA

ANILSHARMA

    Newbie

  • Members
  • Pip
  • 47 posts

Posted 09 March 2012 - 04:29 PM

Hi all,

how to redistribute only one static routes in bgp.

We have six static router in my router.

ip route 20.10.11.0 255.255.255.0 Tunnel1
ip route 20.10.11.0 255.255.255.255 20.10.6.1
ip route 20.10.12.0 255.255.255.0 Tunnel1
ip route 20.13.5.0 255.255.255.0 Tunnel3
iip route 20.14.3.0 255.255.255.0 Tunnel2
ip route 20.15.7.0 255.255.255.0 Tunnel4


We need only two router redistribute in bgp

ip route 20.10.11.0 255.255.255.0 Tunnel1
ip route 20.13.5.0 255.255.255.0 Tunnel3


Pls help

#2 Ash90

Ash90

    Advanced Member

  • Members
  • PipPipPip
  • 309 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Cisco Cert.

Posted 09 March 2012 - 05:49 PM

Just remember one rule. If you have to send or receive only a few routes out of many routes available ALWAYS use some kind of rout filtering such as route map or prefix-list.


ip route 20.10.11.0 255.255.255.0 Tunnel1
ip route 20.10.11.0 255.255.255.255 20.10.6.1
ip route 20.10.12.0 255.255.255.0 Tunnel1
ip route 20.13.5.0 255.255.255.0 Tunnel3
iip route 20.14.3.0 255.255.255.0 Tunnel2
ip route 20.15.7.0 255.255.255.0 Tunnel4

router bgp 60055
no synchronization
! redistribute connected (if you like)
redistribute static
neighbor 192.0.2.147 remote-as 60055
neighbor 192.0.2.147 update-source Loopback0
neighbor 192.0.2.148 remote-as 60055
neighbor 192.0.2.148 update-source Loopback0
neighbor 192.0.254.17 remote-as 40077
neighbor 192.0.254.17 prefix-list no-internal out
no auto-summary
!
ip prefix-list no-internal seq 5 permit 20.10.11.0/24
ip prefix-list no-internal seq 10 permit 20.13.5.0/25
!

#3 chrcel

chrcel

    Cisco Voice and Apps Expert

  • Global Moderators
  • PipPipPipPipPip
  • 2121 posts
  • Gender:Male

Posted 10 March 2012 - 09:04 AM

well. I would have preferred doing the filtering during the static route redistribution. by adding a route-map to the redistribute command

#4 Ash90

Ash90

    Advanced Member

  • Members
  • PipPipPip
  • 309 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Cisco Cert.

Posted 10 March 2012 - 08:17 PM

Well! agree with you chrcel!

#5 esbava

esbava

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 16 April 2012 - 08:19 PM

Well, You can tag the static routes which you want to redistribute and mention the tag in the redistribute command...

-bava





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users