Doubt about an address. Pls Help
applepie
Member Posts: 2 ■□□□□□□□□□
in CCNA & CCENT
In the answer to this question if the mask to be denied is 255.255.0.0, as shown in the given info: 172.16.0.0/16, In the answer why do they use the inverse mask 0.0.255.255?
18. Which of the following configures interface ethernet 0 to deny inbound packets originated from subnet 172.16.0.0/16?
access-list 1 deny 172.16.0.0 0.0.255.255
access-list 1 permit any
interface ethernet 0
ip access-group 1 in
18. Which of the following configures interface ethernet 0 to deny inbound packets originated from subnet 172.16.0.0/16?
access-list 1 deny 172.16.0.0 0.0.255.255
access-list 1 permit any
interface ethernet 0
ip access-group 1 in
Comments
-
keenon Member Posts: 1,922 ■■■■□□□□□□the 0.0 requires it to check those bits when using the 255 it excludes the bits from being checked.
so if u want to ID 172.16.x.x 0(ID this bit). 0(ID this bit). 255 (no ID). 255 (no ID)Become the stainless steel sharp knife in a drawer full of rusty spoons