[c-nsp] BGP default route only

Stephane MAGAND stmagconsulting at gmail.com
Fri Jul 23 05:58:17 EDT 2010


Hi

sorry for this very simple qestion, but :

i have two cisco routers:

     one big router with the full route table of internet.


I want create a BGP session from the second to the first
but i want sent only the defaut route, not the full table.

On the big, i have:


router bgp XXX
 neighbor 78.xx.xx.xx remote-as 3xxx
 neighbor 78.xx.xx.xx update-source GigabitEthernet0/2.184

 address-family ipv4
  neighbor 78.xx.xx.xx activate
  neighbor 78.xx.xx.xx send-community
  neighbor 78.xx.xx.xx default-originate
  neighbor 78.xx.xx.xx prefix-list C2-in in
  neighbor 78.xx.xx.xx prefix-list annonce-C1 out
  neighbor 78.xx.xx.xx route-map C2-IMPORT in
  neighbor 78.xx.xx.xx maximum-prefix 10



ip prefix-list annonce-C1 seq 100 permit 0.0.0.0/0 le 24
!
!
ip prefix-list C2-in seq 15 permit 85.xx.xx.xx/21 le 24
ip prefix-list C2-in seq 20 permit 93.xx.xx.xx/20 le 24
ip prefix-list C2-in seq 100 deny 0.0.0.0/0 le 32





if i start the bgp session, the C2 receive the full table, not only
the default route.

where is my error ?

thanks
Stephane


More information about the cisco-nsp mailing list