From: xander (xander@xxxxxx)
Date: Wed Apr 11 2001 - 10:38:11 GMT-3
Hello All,
Why don't you put default network into IGP and simply redistribute it
to BGP? Like this:
ip route 0.0.0.0 0.0.0.0 null0 (or getting default from somewhere else)
router ospf 1
default-information originate always metric 50 metric-type 1
route-map DEFAULT permit 10
match next-hop 10
route-map DEFAULT deny 20
match ip add 20
access-list 10 permit host 192.168.1.1
access-list 20 deny any
router bgp 1
<you do not need to put network 0.0.0.0 here>
redistribute ospf 1 route-map DEFAULT
-----------
BTW, avoid using network 0.0.0.0 in any bgp configuration, or use it
VERY CAREFULLY
HL> I tried one more time using the "network 0.0.0.0" clause, the result as you
r
HL> wish,
HL> miraculous route entry '0.0.0.0' spread out around all router and stand
HL> with
HL> "show ip bgp".
HL> Maybe I had made some mistake last time. thank you again.
HL> Haohong Lin
HL> -----Original Message-----
HL> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
HL> Michel Gaspard
HL> Sent: 2001 04 10 17:02
HL> To: hhlin@szskzj.com; ccielab@groupstudy.com
HL> Subject: RE: BGP: default route sourcing
HL> Lin,
HL> I just tried both solution, and they both worked well.
HL> Please find additional info below.
HL> Just one point: the "network 0.0.0.0" will only work if the source routers
HL> knows a route to 0.0.0.0/0 (static, other protocol like OSPF).
HL> Regards,
HL> Michel
HL> R1====R2
0/0 ==>>
HL> R1#
HL> sh ver
HL> Cisco Internetwork Operating System Software
HL> IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(16), RELEASE SOFTWARE
HL> (fc2)
HL> router bgp 200
HL> network 0.0.0.0 <<<<<<<<
HL> redistribute ospf 1 route-map redis_OS_BGP
HL> neighbor 2.2.2.2 remote-as 100
HL> neighbor 2.2.2.2 ebgp-multihop 255
HL> neighbor 2.2.2.2 update-source Loopback0
HL> no auto-summary
HL> !
HL> sh ip ro 0.0.0.0
HL> Routing entry for 0.0.0.0/0, supernet
HL> Known via "ospf 1", distance 110, metric 1, candidate default path
HL> Tag 1, type extern 2, forward metric 1562
HL> Redistributing via ospf 1, bgp 200
HL> Last update from 159.161.10.26 on Serial0, 00:01:27 ago
HL> Routing Descriptor Blocks:
HL> * 159.161.10.26, from 159.161.10.5, 00:01:27 ago, via Serial0
HL> Route metric is 1, traffic share count is 1
HL> R2#
HL> 3d00h: RT: add 0.0.0.0/0 via 159.161.10.4, bgp metric [20/1]
HL> 3d00h: RT: default path is now 0.0.0.0 via 159.161.10.4
HL> 3d00h: RT: new default network 0.0.0.0
HL> djeser#
HL> router bgp 100
HL> bgp log-neighbor-changes
HL> neighbor 159.161.10.4 remote-as 200
HL> neighbor 159.161.10.4 ebgp-multihop 255
HL> neighbor 159.161.10.4 update-source Loopback1
HL> !
HL> sh ip ro 0.0.0.0
HL> Routing entry for 0.0.0.0/0, supernet
HL> Known via "bgp 100", distance 20, metric 1, candidate default path
HL> Tag 200, type external
HL> Last update from 159.161.10.4 00:03:02 ago
HL> Routing Descriptor Blocks:
HL> * 159.161.10.4, from 159.161.10.4, 00:03:02 ago
HL> Route metric is 1, traffic share count is 1
HL> 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
HL> suggestion.
>> the clause "default-infor org" work fine, but "net 0.0.0.0" had no
HL> 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:
>>
>>
HL> 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
HL> 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
HL> a
>> CCIE question!! No NDA, just a wild guess......
>>
>> "
>>
>> I did the same setup, and until I entered that command nix. Then it come
HL> 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
HL> 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#
-- WBW, xander mailto:xander@adt.ru CCNA, CCNP+VoiceAccess, CCIE very soon :-)...
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:29:44 GMT-3