ACL Question
MAC_GLASGOW
Inactive Imported Users Posts: 27 ■□□□□□□□□□
in CCNA & CCENT
Hi guys,
got a question for you, if you were assigned the network address
172.168.1.0 and subnetted the network to 172.168.1.0/20
so we have block sizes of 16 and you wanted to block half a subnetwork for example block the first half of 172.168.16.1 - 172.169.16.254 subnetwork
so you wanted the hosts with the ip address range 16.168.16.1 - 16.168.16.127 to be able to access a resouce but have the top half of this subnet to be blocked. What would the ACL be? just a simple source address blocking.
Cheers guys for feedback
got a question for you, if you were assigned the network address
172.168.1.0 and subnetted the network to 172.168.1.0/20
so we have block sizes of 16 and you wanted to block half a subnetwork for example block the first half of 172.168.16.1 - 172.169.16.254 subnetwork
so you wanted the hosts with the ip address range 16.168.16.1 - 16.168.16.127 to be able to access a resouce but have the top half of this subnet to be blocked. What would the ACL be? just a simple source address blocking.
Cheers guys for feedback
Comments
-
sprkymrk Member Posts: 4,884 ■■■□□□□□□□MAC_GLASGOW wrote:got a question for you, if you were assigned the network address 172.168.1.0 and subnetted the network to 172.168.1.0/20MAC_GLASGOW wrote:so we have block sizes of 16 and you wanted to block half a subnetwork for example block the first half of 172.168.16.1 - 172.169.16.254 subnetworkAll things are possible, only believe.
-
PCHoldmann Member Posts: 450First of all, a /20 would be 16.0 - 31.255 and your networks keep changing, but if you wanted to block the top half of a /24, you could use something like
access-list 100 permit ip 172.16.16.0 0.0.0.15 any
This would permit anything from 172.16.16.0 - 127, and deny anything else.There's no place like ^$
Visit me at Route, Switch, Blog -
MAC_GLASGOW Inactive Imported Users Posts: 27 ■□□□□□□□□□Sorry the 169 was a typo.
if you had 172.168.1.0 / 20 - 255.255.255.240
so first subnet address would be 172.168.0.0 and next block would be 172.168.16.0 and so on -
EdTheLad Member Posts: 2,111 ■■■■□□□□□□For just a simple block of the source range 172.168.1.16-31
Everything else will be blocked as there is an implicit deny at the end.
access-list 1 permit 172.168.1.16 0.0.0.15Networking, sometimes i love it, mostly i hate it.Its all about the $$$$ -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□MAC_GLASGOW wrote:Sorry the 169 was a typo.
if you had 172.168.1.0 / 20 - 255.255.255.240
so first subnet address would be 172.168.0.0 and next block would be 172.168.16.0 and so on
Which, by the way, is not all that hard to do.All things are possible, only believe. -
MAC_GLASGOW Inactive Imported Users Posts: 27 ■□□□□□□□□□Sorry dude, just read what I typed I will get back to you tomorrow when hangover and clud wear off lol
-
david_r Member Posts: 112If you are talking about 17.168.16.128/25 or 17.168.16.128 255.255.255.128, It would look like this. 17.168.16.128 0.0.0.127
But you need to allow what you need to allow.
access-list 1 permit 17.168.16.0 0.0.0.127