Book now with code EOY2025
forbesl wrote: Sorry, but that ain't gonna work like you think it will.
sprkymrk wrote: To find the wildcard mask for a range, you take the higher minus the lower: 192.168.2.70 -192.168.2.10 0.0.0.60 access-list 1 permit 192.168.2.10 0.0.0.60 It's been a while for me, so hopefully a more able Cisco person can confirm this.
forbesl wrote: You won't be able to permit only that range of IP addresses because in doing so you're trying to cross a subnet mask boundary.
sprkymrk wrote: forbesl wrote: You won't be able to permit only that range of IP addresses because in doing so you're trying to cross a subnet mask boundary. Okay, but what is the correct way? :
ed_the_lad wrote: You would need 192.168.2.0 0.0.0.127 10 = 00001010 70 = 01001100 The 1 at the left signifies the wildcard so for a range of addresses you need to include the 1 and all bits to the right of the one.
ed_the_lad wrote: sprkymrk wrote: forbesl wrote: You won't be able to permit only that range of IP addresses because in doing so you're trying to cross a subnet mask boundary. Okay, but what is the correct way? : You would need 192.168.2.0 0.0.0.127 10 = 00001010 70 = 01001100 The 1 at the left signifies the wildcard so for a range of addresses you need to include the 1 and all bits to the right of the one.
ed_the_lad wrote: ....i could have given an exact match.
brAun wrote: This is my solution i am not sure if this is right, please correct me if i am wrong : 1. deny host 0 - 7 2. deny host 8 and 9 3. permit host 0 - 63 4. permit host 64 - 71 5. deny host 71 wildcard mask 1. access list deny 192.168.2.0 0.0.0.7 2.access list deny 192.168.2.0 0.0.0.9 3.access list permit 192.168.2.0 0.0.0.63 4.access list permit 192.168.2.0 0.0.0.71 5.access list deny 192.168.2.71 0.0.0.0 i couldn't find 1 wildcard mask that could permit a range of host 10 - 70. so i think u need five access lists to make that happen. please correct me if i am wrong. as i really want to know if any better solution. Thanks
brAun wrote: but i think line 2 is correct, u can use either my line 2 or deny 192.168.2.8 0.0.0.1.
sprkymrk wrote: Okay, but what is the correct way? You still haven't told us.:
sprkymrk wrote: It's been a while for me, so hopefully a more able Cisco person can confirm this.
wildcard bits. 0= exact match, 1=any/ignore 00000000.00000000.00000000.00100000 mean all, except the 27th bit must match
macwhizard wrote: Thanks guys. i really need to know how this wildcard thing work. it seems really confusing. wildcard bits. 0= exact match, 1=any/ignore 00000000.00000000.00000000.00100000 mean all, except the 27th bit must match for eg. default wildcard mask of 192.168.0.0 /24 is 0.0.0.255 but if i use blocksize 64 (binary x.x.x.00111111 1+2+4+8+16+32 = 63) with ip's configured using default mask /24deny 192.168.0.0 0.0.0.63, and permit any, does it mean, it will deny hosts 192.168.0.192 onwards (bin x.x.x.11000000 is exact match) and only allow hosts x.x.x.1 to 191 ?. if wrong, please explain with binary examples.
ed_the_lad wrote: If you put permit any at the start it wouldnt matter want comes next all is allowed.
ed_the_lad wrote: .... if you did deny 192.168.0.0 0.0.1.0, the 1 = 00000001 therefore you would deny addresses 192.168.0.x and 192.168.1.x
Use code EOY2025 to receive $250 off your 2025 certification boot camp!