From: Mark Lasarko (mlasarko@co.ba.md.us)
Date: Thu Feb 16 2006 - 00:52:29 GMT-3
If you get:
!
access-list 10 permit 212.18.0.0 0.0.254.255
!
Rack1R6(config)#do sh ip ro rip
R 212.18.0.0/24 [120/1] via 54.1.1.254, 00:00:03, Serial0/0
R 212.18.2.0/24 [120/1] via 54.1.1.254, 00:00:03, Serial0/0
!
...and this permits the even routes.
Then all we need to do to allow the odd ones is?
A) Deny the even's then permit the odds
(everything else, if 2 lines are permitted )
~or~
B) Permit the odds and make the mask match
(As done in your last example, done in one line)
HTH,
~M
>>> "Emil Patel" <emilpatel@hotmail.com> 02/15/06 6:28 PM >>>
Here is my config:
router rip
version 2
redistribute eigrp 100 metric 6
network 54.0.0.0
distribute-list 10 in Serial0/0
no auto-summary
!
no ip http server
ip classless
!
!
access-list 10 permit 212.18.1.0 0.0.254.0
Rack1R6#sh ip ro rip
R 212.18.1.0/24 [120/1] via 54.1.1.254, 00:00:08, Serial0/0
R 212.18.3.0/24 [120/1] via 54.1.1.254, 00:00:08, Serial0/0
If access-list is
access-list 10 permit 212.18.0.0 0.0.254.0
Rack1R6#sh ip ro rip
R 212.18.1.0/24 [120/1] via 54.1.1.254, 00:00:06, Serial0/0
R 212.18.0.0/24 [120/1] via 54.1.1.254, 00:00:06, Serial0/0
R 212.18.3.0/24 [120/1] via 54.1.1.254, 00:00:06, Serial0/0
R 212.18.2.0/24 [120/1] via 54.1.1.254, 00:00:06, Serial0/0
If access-list is
access-list 10 permit 212.18.0.0 0.0.254.255
Rack1R6(config)#do sh ip ro rip
R 212.18.0.0/24 [120/1] via 54.1.1.254, 00:00:03, Serial0/0
R 212.18.2.0/24 [120/1] via 54.1.1.254, 00:00:03, Serial0/0
If access-list is
access-list 10 permit 212.18.1.0 0.0.254.255
Rack1R6(config)#do sh ip ro rip
R 212.18.1.0/24 [120/1] via 54.1.1.254, 00:00:00, Serial0/0
R 212.18.3.0/24 [120/1] via 54.1.1.254, 00:00:00, Serial0/0
After the above testing above examples, I am completely confused. Any logic
on permitting odd and even routes?
Emil
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Huizinga, Rene
Sent: Wednesday, February 15, 2006 5:03 PM
To: 'Venkatesh Palani'; Emil Patel
Cc: ccielab@groupstudy.com
Subject: RE: Permitting odd and even routes??
Hi Venkatesh,
Sorry, but I don't believe you're correct. They're asking here to use the
3rd octect as seperator...I read that as the third only, so the correct 2
ACL-entries would then be:
acc 10 perm 218.18.0.0 0.0.254.0 (Even)
acc 10 perm 218.18.1.0 0.0.254.0 (Odd)
Cya
Rene
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Venkatesh Palani
Sent: 15 February 2006 23:57
To: Emil Patel
Cc: ccielab@groupstudy.com
Subject: Re: Permitting odd and even routes??
Hi Emil,
The access-list for even routes is correct, but for the odd routes it is
pretty tricky because when you use 0.0.255.255 you are matching both odd and
even.
so I think we coudl do it two different ways, meanwhile I havent tested them
in the lab so please test them before you use
1. in the above example use 218.18.1.0 0.0.254.255 because the last bit
needs to be 1 always and is not allowed to change
2. use routemap where you want to filter out the even routes thus the
remainning will be odd routes, something liek the one shown below
Route-map odd-routes deny 10
match ip <ACL for the even routes>
Route-map oddroutes permit 20
Could you please check them on ur set up and let me know if it all works :-)
Thank you,
venkatesh
On 2/16/06, Emil Patel <emilpatel@hotmail.com> wrote:
>
> I have following rip routes being learned from the BB routers:
>
>
>
> 218.18.0.0/24
>
> 218.18.1.0/24
>
> 218.18.2.0/24
>
> 218.18.3.0/24
>
>
>
> If I just want allow odd or even numbered routes based on 3rd octet, here
> what I have in my config:
>
>
>
> For odd routes:
>
> Access-list 10 permit 212.18.0.0 0.0.255.255
>
>
>
> For even routes:
>
> Access-list 10 permit 212.18.0.0 0.0.254.255
>
>
>
> Is this correct?
>
>
>
> Emil
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:18 GMT-3