Re: POP Quiz - Answers

From: Carlos G Mendioroz (tron@xxxxxxxxxxx)
Date: Fri May 17 2002 - 07:35:52 GMT-3


   
David (H :-)
I have the same problem, but I must admit, it's the first time I see the
table-map command. Still don't have a clear grasp of what it does, or is
supposed to do (very short description at the reference...)

Anyone knows anyplace (online preferred) where I can find some usage
info
for it ?

David Ham wrote:
>
> Thanks David. But by using table-map and automatic-tag would preserve the
> AS-path and origin code when redistributed bgp routes from ospf injecting
> into otherside of bgp domain.
>
> Isn't this the pupose of this execise??
>
> Please comment.
>
> Regards,
>
> David Ham
> Data Specialist
> OPTUS
>
> >From: David Luu <wicked01@ix.netcom.com>
> >Reply-To: David Luu <wicked01@ix.netcom.com>
> >To: "David Ham" <ccieau@hotmail.com>, sinclairj@powertel.com.au
> >CC: ccielab@groupstudy.com
> >Subject: RE: POP Quiz - Answers
> >Date: Thu, 16 May 2002 18:36:11 -0700
> >
> >it works correctly...if you want all the routes from ospf to have an origin
> >code of "i" then use network statements for the other routes in bgp
> >
> >At 11:10 AM 5/17/2002 +1000, David Ham wrote:
> >>Hi Jason,
> >>
> >>I have tried on my lab but I have trouble getting orgin code in.
> >>I thought I should see origin code "i" at the bgp routes that learnt from
> >>ospf but I don't. Am I missing something?
> >>
> >>Here is my config.
> >>
> >>R2 -- R3 --- R1
> >>----------------------------------------------------------------------
> >>R2
> >>--snip----
> >>interface Loopback0
> >>ip address 2.2.2.2 255.255.255.255
> >>
> >>router ospf 1
> >>log-adjacency-changes
> >>redistribute bgp 10 subnets
> >>network 172.16.7.0 0.0.0.255 area 0
> >>!
> >>router bgp 10
> >>no synchronization
> >>table-map set-tag
> >>bgp log-neighbor-changes
> >>network 2.2.2.2 mask 255.255.255.255
> >>redistribute ospf 1 match internal external 1 external 2 route-map tags
> >>no auto-summary
> >>
> >>route-map tags permit 10
> >>set as-path tag
> >>
> >>route-map set-tag permit 10
> >>match as-path 1
> >>set automatic-tag
> >>
> >>ip as-path access-list 1 permit .*
> >>
> >>
> >>----
> >>
> >>R2#sh ip bgp
> >>BGP table version is 5, local router ID is 2.2.2.2
> >>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
> >>*> 1.1.1.1/32 172.16.7.3 1 32768 ?
> >>*> 2.2.2.2/32 0.0.0.0 0 32768 i
> >>*> 172.16.1.0/24 172.16.7.3 70 32768 ?
> >>*> 172.16.7.0/24 0.0.0.0 0 32768 ?
> >>
> >>
> >>--------------------------------------------------------------------
> >>R1
> >>---snip--
> >>
> >>interface Loopback1
> >>ip address 1.1.1.1 255.255.255.255
> >>
> >>router ospf 1
> >>log-adjacency-changes
> >>redistribute bgp 10 subnets
> >>network 172.16.1.0 0.0.0.255 area 0
> >>!
> >>router bgp 10
> >>no synchronization
> >>table-map set-tag
> >>bgp log-neighbor-changes
> >>network 1.1.1.1 mask 255.255.255.255
> >>redistribute ospf 1 match internal external 1 external 2 route-map tags
> >>no auto-summary
> >>
> >>route-map tags permit 10
> >>set as-path tag
> >>!
> >>route-map set-tag permit 10
> >>set automatic-tag
> >>
> >>
> >>--------
> >>R1#sh ip bgp
> >>BGP table version is 7, local router ID is 172.16.240.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
> >>*> 1.1.1.1/32 0.0.0.0 0 32768 i
> >>*> 2.2.2.2/32 172.16.1.3 1 32768 ?
> >>*> 172.16.1.0/24 0.0.0.0 0 32768 ?
> >>*> 172.16.7.0/24 172.16.1.3 70 32768 ?
> >>----------------------------------------------------------------------
> >>Thanks in advance.
> >>Regards,
> >>
> >>David Ham
> >>OPTUS
> >>
> >>>From: Jason Sinclair <sinclairj@powertel.com.au>
> >>>Reply-To: Jason Sinclair <sinclairj@powertel.com.au>
> >>>To: "'Carlos G Mendioroz'" <tron@huapi.ba.ar>, Jason Sinclair
> >>><sinclairj@powertel.com.au>
> >>>CC: Groupstudy ccielab list <ccielab@groupstudy.com>
> >>>Subject: RE: POP Quiz - Answers
> >>>Date: Thu, 16 May 2002 09:41:45 +1000
> >>>
> >>>All,
> >>>
> >>>Please note that I left out the most important part. You also need the
> >>>following:
> >>>
> >>>Router bgp 100
> >>>Table-map autotag
> >>>
> >>>Route-map autotag permit 10
> >>>Set automatic-tag
> >>>
> >>>The difference is that the as-path tag will preserve any as-path info in
> >>>the
> >>>redistribution and the automatic tag will preserve the origin attribute.
> >>>
> >>>As I stated earlier time was an issue this last week, in future quizzes I
> >>>will ensure that I lab them for you. Also, these quizzes are more
> >>>intended
> >>>to make you think about things and how they actually work, rather than
> >>>always having the correct answer. Please let me know if these are of a
> >>>benefit to you.
> >>>
> >>>Regards,
> >>>
> >>>Jason Sinclair CCIE #9100
> >>>Manager, Network Control Centre
> >>>POWERTEL
> >>>Ground Level, 55 Clarence Street,
> >>>SYDNEY NSW 2000
> >>>AUSTRALIA
> >>>office: + 61 2 8264 3820
> >>>mobile: + 61 416 105 858
> >>>* sinclairj@powertel.com.au
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: Carlos G Mendioroz [mailto:tron@huapi.ba.ar]
> >>> Sent: Thursday, 16 May 2002 01:03
> >>> To: Jason Sinclair
> >>> Cc: Groupstudy ccielab list
> >>> Subject: Re: POP Quiz - Answers
> >>>
> >>> Jason,
> >>> one of the requirements you had was:
> >>>
> >>> 5. The origin code for your route must be the
> >>>same
> >>>as
> >>> the original origin code when the route was injected
> >>>into
> >>>BGP
> >>>
> >>> and it seems its not working with your solution, at
> >>>least
> >>>for me:
> >>>
> >>> At rtrC:
> >>> BGP table version is 5, local router ID is 2.2.2.2
> >>> 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
> >>> *> 1.1.1.1/32 172.16.1.1 1
> >>>32768 ?
> >>> *> 2.2.2.2/32 0.0.0.0 0
> >>>32768 i
> >>> *> 172.16.0.0 0.0.0.0 0
> >>>32768 ?
> >>> *> 192.168.1.0 172.16.1.1 128
> >>>32768 ?
> >>>
> >>> The origin code for 2.2.2.2 is "i" for a locally
> >>>generated
> >>>route
> >>> (internal)
> >>> and the one for the remote loopback is "?" for
> >>>incomplete.
> >>>
> >>> It seems to me that redistributing the igp (ospf) and
> >>>connected into
> >>> bgp would do the trick (both would be incomplete then)
> >>>although
> >>> it would not be that interesting...
> >>>
> >>>
> >>> Jason Sinclair wrote:
> >>> >
> >>> > All,
> >>> > Guys,
> >>> >
> >>> > For pop quiz 1 I have the following configs. I have
> >>>not
> >>>labbed them due
> >>> > to time constraints, however I believe they are
> >>>correct.
> >>>If you see any
> >>> > mistakes please advise.
> >>> >
> >>> > Configs are:
> >>> >
> >>> > RtrA
> >>> > Int lo0
> >>> > Ip address 1.1.1.1 255.255.255.255
> >>> >
> >>> > Int s0
> >>> > Ip address 192.168.1.1 255.255.255.0
> >>> >
> >>> > Router ospf 100
> >>> > Network 192.168.1.0 0.0.0.255 area0
> >>> > Redistribute bgp 100 subnets
> >>> >
> >>> > Router bgp 100
> >>> > Network 1.1.1.1 mask 255.255.255.255
> >>> > Redistribute ospf 100 route-map tags
> >>> > No auto-summary
> >>> > No synchronization
> >>> >
> >>> > Route-map tags permit 10
> >>> > Set as-path tag
> >>> >
> >>> > Rtrb
> >>> > Int s0
> >>> > Ip address 192.168.1.2 255.255.255.0
> >>> > Clock rate 64000
> >>> >
> >>> > Int s1
> >>> > Ip address 172.16.1.1 255.255.255.0
> >>> > Clock rate 64000
> >>> >
> >>> > Router ospf 100
> >>> > Network 192.168.1.0 0.0.0.255 area 0
> >>> > Network 172.16.1.0 0.0.0.255 area 0
> >>> >
> >>> > Rtrc
> >>> > Int lo0
> >>> > Ip address 3.3.3.3 255.255.255.255
> >>> >
> >>> > Int s0
> >>> > Ip address 172.16.1.2 255.255.255.0
> >>> >
> >>> > Router ospf 100
> >>> > Network 172.16.1.0 0.0.0.255 area0
> >>> > Redistribute bgp 100 subnets
> >>> >
> >>> > Router bgp 100
> >>> > Redistribute ospf 100 route-map tags
> >>> > Network 3.3.3.3 mask 255.255.255.255
> >>> > No auto-summary
> >>> > No synchronization
> >>> >
> >>> > Route-map tags permit 10
> >>> > Set as-path tag
> >>> >
> >>> > Cheers,
> >>> >
> >>> > Jason Sinclair CCIE #9100
> >>> > Manager, Network Control Centre
> >>> > POWERTEL
> >>> > Ground Level, 55 Clarence Street,
> >>> > SYDNEY NSW 2000
> >>> > AUSTRALIA
> >>> > office: + 61 2 8264 3820
> >>> > mobile: + 61 416 105 858
> >>> > * sinclairj@powertel.com.au
> >>> >
> >>> > -----Original Message-----
> >>> > From: Jason Sinclair
> >>> > [mailto:sinclairj@powertel.com.au]
> >>> > Sent: Wednesday, 8 May 2002 13:32
> >>> > To: 'ccielab@groupstudy.com'
> >>> > Subject: POP Quiz
> >>> >
> >>> > All,
> >>> >
> >>> > I am proposing to regularly post
> >>>little
> >>>scenarios to
> >>> > this forum. If you see
> >>> > any benefit in this, the first is
> >>>below:
> >>> >
> >>> > Quick Scenario 1:
> >>> >
> >>> > A quick scenario - should take 10
> >>>minutes
> >>>to achieve.
> >>> > Topology is:
> >>> >
> >>> > RtrA-----rtrB-------rtrC
> >>> >
> >>> > Rules:
> >>> > 1. You can run BGP on rtrA and
> >>>rtrC,
> >>>but NOT rtrB.
> >>> > 2. Any IGP can be run on rtrA,
> >>>rtrB,
> >>>rtrC.
> >>> > 3. Create a loopback on rtrA and
> >>>rtrC
> >>>and ensure
> >>> > that
> >>> > the opposite
> >>> > route to the loopback is visible to
> >>>the
> >>>remote router
> >>> > via BGP.
> >>> > 4. You cannot peer rtrA and rtrC
> >>>with
> >>>respect to
> >>> > BGP
> >>> > 5. The origin code for your route
> >>>must be the same
> >>> > as
> >>> > the original
> >>> > origin code when the route was
> >>>injected
> >>>into BGP
> >>> > 6. 10 minutes to complete
> >>> >
> >>> > I will post answers in 5 days time.
> >>> >
> >>> > Cheers,
> >>> >
> >>> > Jason Sinclair CCIE #9100
> >>> > Manager, Network Control Centre
> >>> > POWERTEL
> >>> > Ground Level, 55 Clarence Street,
> >>> > SYDNEY NSW 2000
> >>> > AUSTRALIA
> >>> > office: + 61 2 8264 3820
> >>> > mobile: + 61 416 105 858
> >>> > * sinclairj@powertel.com.au
> >>> >
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> Carlos G Mendioroz <tron@huapi.ba.ar> LW7 EQI
> >>>Argentina
> >>>

--
Carlos G Mendioroz  <tron@huapi.ba.ar>  LW7 EQI  Argentina


This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:59 GMT-3