From: Willy Schoots (w.schoots@xxxxxxxxx)
Date: Fri Oct 12 2001 - 14:18:07 GMT-3
In my lab it works as documented with 12.0(8):
--> Here is my bgp config on the router advertising the default:
router bgp 766
network 10.1.0.0 mask 255.255.0.0
neighbor 192.168.1.22 remote-as 765
neighbor 192.168.1.22 default-originate
--> Also here is the routing table, it shows no local 0.0.0.0 route
r1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate
default
U - per-user static route, o - ODR
Gateway of last resort is not set
S 201.0.0.0/24 [1/0] via 192.168.1.22
C 200.1.1.0/24 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
B 10.2.0.0/16 [20/0] via 192.168.1.22, 00:03:16
C 10.1.1.0/27 is directly connected, Serial0
S 10.1.0.0/16 is directly connected, Null0
C 10.1.1.32/27 is directly connected, Serial1
S 10.1.1.66/32 [1/0] via 10.1.1.2
C 192.168.1.0/24 is directly connected, Ethernet0
B 192.168.2.0/24 [20/0] via 192.168.1.22, 00:03:16
r1#
--> You can see it advertises it without any problem
r1#sh ip bgp neighbor 192.168.1.22 adv
BGP table version is 11, local router ID is 200.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Originating default network 0.0.0.0
Network Next Hop Metric LocPrf Weight Path
*> 10.1.0.0/16 0.0.0.0 0 32768 i
--> It is received by the bgp peer
bb#sh ip bgp neighbors 192.168.1.21 received-routes
BGP table version is 3, local router ID is 201.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 0.0.0.0 192.168.1.21 0 766 i
*> 10.1.0.0/16 192.168.1.21 0 0 766 i
Cheers,
Willy Schoots
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Wayne Lewis
Sent: Friday, October 12, 2001 6:56 PM
To: cciegroupstudy
Subject: BGP: neighbor default-originate
Has anyone had luck getting the 'neighbor default-originate' command to
work in BGP? Below in double quotes is what CCO says. I tried this on
different pairs of routers exactly as below with no luck (one pair of
routers use versions 12.2(5) and 12.0(5)T1 and the other pair use 12.0(5)T
and 12.0(9)).
I was only able to get the 0.0.0.0 to propagate using 'ip route 0.0.0.0
0.0.0.0 null0' coupled with 'network 0.0.0.0'.
"To allow a BGP speaker (the local router) to send the default route 0.0.0.0
to a neighbor for use as a default route, use the neighbor default-originate
router configuration command.
This command does not require the presence of 0.0.0.0 in the local router.
In the following example, the local router injects route 0.0.0.0 to the
neighbor 160.89.2.3 unconditionally:
router bgp 109
network 160.89.0.0
neighbor 160.89.2.3 remote-as 200
neighbor 160.89.2.3 default-originate"
Thanks,
Wayne
This archive was generated by hypermail 2.1.4 : Thu Jun 20 2002 - 22:33:18 GMT-3