Network ID matching of the parity ACL

Source: Internet
Author: User


The network number of the parity ACL matches the network number of the experiment TOPO: www.2cto.com. The experiment requires that: with ACL, route-map and re-release, R1 can only learn the network number of odd digits or even digits, that is, the x of 192.168.x.0 is odd or even. step 1: configure the IP addresses of each vro and confirm that the direct interface can be pinged. tutorial Step 2: configure the RIP and OSPF protocols, and the network has the correct network interface, and pay attention to the use of passive-interface experiment Step 3: Configure re-release on R2, confirm that the network can be learned to all networks through republishing. analysis of question requirements: www.2cto.com R1 can only learn the network number of the odd number or even number of R3. split the subnets into binary values and observe the rule 192.168.1.0/24 192.168.0000 0001.0/24192.168.2.0/24 192.168.0000 0010.0/24192.168.3.0/24 192.168.0000 0011.0/24192.168.4.0/24 192.168.0000 0100.0/24192.168.5.0/24 192.168.0000 0101.0/24192.168.6.0/24 192.168.0000 0110.0/24192.168.7.0/24 192.168.0000 0111.0/24192.168.8.0/24 192.168.0000 1000.0/24, if x of 192.168.x.0/24 is an even number, the 24th bits are 0. If the value is odd, the 24th bits are 1, therefore, according to this rule, the 0 of the ACL is completely matched. 1 indicates that the matching rule is ignored. The following two ACLs can be written to match the 24th bits. network number used for even digits: access-list 1 permit 192.168.0.0 0.0.254.0192.168.0000 2.16.0000.000.1111 1110.0 network number used for odd digits: acces S-list 2 permit 192.168.1.0 0.0.254.0192.168.0000 0001.0000.000.1111 1110.0 experiment practice 1: Configure on R2 to test the matching of even bits: access-list 1 permit 192.168.0.0 0.0.254.0! Route-map parity-acl permit 10 match ip address 1! Router ospf 1 redistribute rip subnets route-map parity-acl view the route table on R1 and find that there is only an even number of network numbers: O E2 192.168.8.0/24 [110/20] via 172.16.1.2, 00:00:38, serial1/1O E2 192.168.4.0/24 [110/20] via 172.16.1.2, 00:00:38, Serial1/1O E2 192.168.6.0/24 [110/20] via 172.16.1.2, 00:00:38, serial1/1O E2 192.168.2.0/24 [110/20] via 172.16.1.2, 00:00:38, Serial1/1 experiment practice 2: no drops the configured acl and route-map, and configures it on R2, test odd-digit matching access-list 2 permi T 192.168.1.0 0.0.254.0! Route-map parity-acl permit 10 match ip address 2! Router ospf 1 redistribute rip subnets route-map parity-acl view the route table on R1 and find that there is only a network number of odd digits: O E2 192.168.5.0/24 [110/20] via 172.16.1.2, 00:00:27, serial1/1O E2 192.168.7.0/24 [110/20] via 172.16.1.2, 00:00:27, Serial1/1O E2 192.168.1.0/24 [110/20] via 172.16.1.2, 00:00:27, serial1/1O E2 192.168.3.0/24 [110/20] via 172.16.1.2, 00:00:27, Serial1/1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.