From: Haohong Lin (hhlin@xxxxxxxxxx)
Date: Tue Apr 10 2001 - 22:17:41 GMT-3
I tried one more time using the "network 0.0.0.0" clause, the result as your
wish,
miraculous route entry '0.0.0.0' spread out around all router and stand
with
"show ip bgp".
Maybe I had made some mistake last time. thank you again.
Haohong Lin
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Michel Gaspard
Sent: 2001 04 10 17:02
To: hhlin@szskzj.com; ccielab@groupstudy.com
Subject: RE: BGP: default route sourcing
Lin,
I just tried both solution, and they both worked well.
Please find additional info below.
Just one point: the "network 0.0.0.0" will only work if the source routers
knows a route to 0.0.0.0/0 (static, other protocol like OSPF).
Regards,
Michel
R1====R2
0/0 ==>
R1#
sh ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(16), RELEASE SOFTWARE
(fc2)
router bgp 200
network 0.0.0.0 <<<<<<<<
redistribute ospf 1 route-map redis_OS_BGP
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
sh ip ro 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via "ospf 1", distance 110, metric 1, candidate default path
Tag 1, type extern 2, forward metric 1562
Redistributing via ospf 1, bgp 200
Last update from 159.161.10.26 on Serial0, 00:01:27 ago
Routing Descriptor Blocks:
* 159.161.10.26, from 159.161.10.5, 00:01:27 ago, via Serial0
Route metric is 1, traffic share count is 1
R2#
3d00h: RT: add 0.0.0.0/0 via 159.161.10.4, bgp metric [20/1]
3d00h: RT: default path is now 0.0.0.0 via 159.161.10.4
3d00h: RT: new default network 0.0.0.0
djeser#
router bgp 100
bgp log-neighbor-changes
neighbor 159.161.10.4 remote-as 200
neighbor 159.161.10.4 ebgp-multihop 255
neighbor 159.161.10.4 update-source Loopback1
!
sh ip ro 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via "bgp 100", distance 20, metric 1, candidate default path
Tag 200, type external
Last update from 159.161.10.4 00:03:02 ago
Routing Descriptor Blocks:
* 159.161.10.4, from 159.161.10.4, 00:03:02 ago
Route metric is 1, traffic share count is 1
AS Hops 1
> From hhlin@szskzj.com Tue Apr 10 10:12:56 2001
> From: "Haohong Lin" <hhlin@szskzj.com>
> To: "Michel Gaspard" <mgaspard@cisco.com>
> Cc: "CCIELab" <ccielab@groupstudy.com>
> Subject: RE: CCBootCamp Question - Lab2 Section3 Task1
> Date: Tue, 10 Apr 2001 15:45:15 +0800
> Importance: Normal
>
> Hi, Gaspard,
>
> I followed your advice and implement both of method as cisco cd
suggestion.
> the clause "default-infor org" work fine, but "net 0.0.0.0" had no
function.
> Why?
>
>
> regards,
>
> Haohong Lin
>
> -----Original Message-----
> From: Michel Gaspard [mailto:mgaspard@cisco.com]
> Sent: 2001 04 09 23:32
> To: ccielab@groupstudy.com; hhlin@szskzj.com
> Subject: Re: CCBootCamp Question - Lab2 Section3 Task1
>
>
> Lin,
>
>
> Look in:
>
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/np1_r
> /1rprt1/1rbgp.htm#xtocid1108620
>
> "
> To allow the redistribution of network 0.0.0.0 into BGP, use the
> default-information originate router configuration command. To disable
this
> function, use the no form of this command.
>
> The same functionality will result from the network 0.0.0.0 command, using
> the network router configuration command. <<<<<< mmmmmh, that stinks like
a
> CCIE question!! No NDA, just a wild guess......
>
> "
>
> I did the same setup, and until I entered that command nix. Then it come
up
> nicely.
>
> So I understand that BGP will only advertise a defualt route:
> - if it knows about one
> - default-information originate" is present
>
>
>
> > From nobody@groupstudy.com Mon Apr 9 03:52:34 2001
> > From: "Haohong Lin" <hhlin@szskzj.com>
> > To: "CCIELab" <ccielab@groupstudy.com>
> > Subject: CCBootCamp Question - Lab2 Section3 Task1
> > Date: Mon, 9 Apr 2001 09:39:20 +0800
> > Sender: nobody@groupstudy.com
> > Reply-To: "Haohong Lin" <hhlin@szskzj.com>
> >
> > Hi,
> >
> > When I redistribtue OSPF to BGP 3 having no route-map, I have
> > no route entry of "0.0.0.0". In BootCamp's answer pages, there is
> > route-map to filter the route '0.0.0.0', Is that necessary?
> >
> > This is the redistribution expression I used:
> > router bgp 3
> > redistribute ospf 20 metric 10 match internal external 1 external 2
> >
> > R6#sh ip ospf da
> >
> > OSPF Router with ID (12.2.1.1) (Process ID 20)
> >
> >
> > Router Link States (Area 0)
> >
> > Link ID ADV Router Age Seq# Checksum Link
count
> > 12.2.1.1 12.2.1.1 1598 0x80000002 0xD25A 2
> > 172.168.32.1 172.168.32.1 14 (DNA) 0x80000002 0x7F05 4
> >
> > Type-5 AS External Link States
> >
> > Link ID ADV Router Age Seq# Checksum Tag
> > 0.0.0.0 12.2.1.1 1689 0x80000001 0xC7B4 20
> > ^^^^^^^there is a 0.0.0.0 route entry^^^^^^^^^^^^^
> > 77.1.1.0 172.168.32.1 54 (DNA) 0x80000001 0x41A3 0
> > R6#
> > R6#sh ip bgp
> > BGP table version is 13, local router ID is 12.2.1.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
> > *> 12.2.0.0/16 0.0.0.0 10 32768 ?
> > *> 12.3.0.0/16 12.2.1.2 10 32768 ?
> > *> 12.4.0.0/16 12.2.1.2 10 32768 ?
> > *> 41.1.1.0/24 11.1.1.5 300 0 2 1 ?
> > *> 44.1.1.0/24 11.1.1.5 300 0 2 1 i
> > *> 77.1.1.0/24 12.2.1.2 10 32768 ?
> > R6#
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:29:43 GMT-3