GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
Re: Prefix-list posted 09/27/2008
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


my bad. I want to use only one line. it is possible doing that with
prefix-list ?

On Sat, Sep 27, 2008 at 6:58 PM, ZZ <zurabz@xxxxxxxxx> wrote:

> Try this one first
>
> ip prefix-list ABC seq 7 deny 200.20.4.0/24 <http://200.20.4.0/22R4#sh>
> ip prefix-list ABC seq  8 deny 200.20.5.0/24 <http://200.20.4.0/22R4#sh>
> ip prefix-list ABC seq 10 permit 0.0.0.0/0 le 32
> <http://200.20.4.0/22R4#sh> <http://200.20.4.0/22R4#sh>
>
>   On Sat, Sep 27, 2008 at 6:53 PM, Mohamed Tandou <dtandou@xxxxxxxxx>wrote:
>
>>  When i do that everything is coming thru. See
>>
>> R4#sh ip bgp
>> BGP table version is 124, local router ID is 11.11.4.4
>> Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> internal,
>>               r RIB-failure, S Stale
>> Origin codes: i - IGP, e - EGP, ? - incomplete
>>    Network          Next Hop            Metric LocPrf Weight Path
>> *> 150.3.11.0/24    0.0.0.0                  0         32768 i
>> *> 192.168.100.254/32
>>                     11.11.5.5                0    100      0 (4002) 21
>> 111 i
>> *> 198.18.1.0       150.3.11.254             0             0 254 i
>> *> 200.20.1.0       150.3.11.254             0             0 254 i
>> *> 200.20.2.0       150.3.11.254             0             0 254 i
>> *> 200.20.3.0       150.3.11.254             0             0 254 i
>> *> 200.20.4.0       150.3.11.254             0             0 254 i
>> *> 200.20.5.0       150.3.11.254             0             0 254 i
>> *> 200.20.6.0       150.3.11.254             0             0 254 i
>> *> 200.20.7.0       150.3.11.254             0             0 254 i
>> *> 200.20.8.0       150.3.11.254             0             0 254 i
>> *> 200.20.9.0       150.3.11.254             0             0 254 i
>> *> 200.20.10.0      150.3.11.254             0             0 254 i
>>
>> On Sat, Sep 27, 2008 at 6:41 PM, ZZ <zurabz@xxxxxxxxx> wrote:
>>
>>> You are not allowing everything else. At the end there is explicit deny
>>> any.
>>>
>>> try this
>>>
>>> ip prefix-list ABC seq 5 deny 200.20.4.0/22
>>> <http://200.20.4.0/22R4#sh> <http://200.20.4.0/22R4#sh>
>>> ip prefix-list ABC seq 10 permit 0.0.0.0/0 le 32
>>> <http://200.20.4.0/22R4#sh> <http://200.20.4.0/22R4#sh>
>>>
>>>
>>>   On Sat, Sep 27, 2008 at 6:36 PM, Mohamed Tandou <dtandou@xxxxxxxxx>wrote:
>>>
>>>>  GS,
>>>> i want to use prefix-list to filter the following network  200.20.5.0and
>>>> 200.20.6.0 from my neighbor
>>>> this is how it looks before i applied filtering
>>>>
>>>> R4#sh ip bgp
>>>> BGP table version is 80, local router ID is 11.11.4.4
>>>> Status codes: s suppressed, d damped, h history, * valid, > best, i -
>>>> internal,
>>>>              r RIB-failure, S Stale
>>>> Origin codes: i - IGP, e - EGP, ? - incomplete
>>>>   Network          Next Hop            Metric LocPrf Weight Path
>>>> *> 150.3.11.0/24    0.0.0.0                  0         32768 i
>>>> *> 192.168.100.254/32
>>>>                    11.11.5.5                0    100      0 (4002) 21
>>>> 111 i
>>>> *> 198.18.1.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.1.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.2.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.3.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.4.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.5.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.6.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.7.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.8.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.9.0       150.3.11.254             0             0 254 i
>>>> *> 200.20.10.0      150.3.11.254             0             0 254 i
>>>>
>>>> When i configured filtering everything is being denied.
>>>>
>>>> router bgp 4001
>>>>  no synchronization
>>>>  bgp router-id 11.11.4.4
>>>>  bgp log-neighbor-changes
>>>>  neighbor 150.3.11.254 remote-as 254
>>>>  neighbor 150.3.11.254 prefix-list ABC in
>>>>  no auto-summary
>>>>
>>>> ip prefix-list ABC seq 5 deny 200.20.4.0/22
>>>> R4#sh ip bgp
>>>> BGP table version is 91, local router ID is 11.11.4.4
>>>> Status codes: s suppressed, d damped, h history, * valid, > best, i -
>>>> internal,
>>>>              r RIB-failure, S Stale
>>>> Origin codes: i - IGP, e - EGP, ? - incomplete
>>>>   Network          Next Hop            Metric LocPrf Weight Path
>>>> *> 150.3.11.0/24    0.0.0.0                  0         32768 i
>>>> *> 192.168.100.254/32
>>>>                    11.11.5.5                0    100      0 (4002) 21
>>>> 111 i
>>>>
>>>> Thanks
>>>>
>>>> Moh
>>>>
>>>>
>>>> Blogs and organic groups at http://www.ccie.net
>>>>
>>>> _______________________________________________________________________
>>>> Subscription information may be found at:
>>>> http://www.groupstudy.com/list/CCIELab.html