Comprehensive experiments on routers and switches (2)

Source: Internet
Author: User

Comprehensive Experiment on routers and switches (2) R2 Configuration Policy Routing int l0ip add 100.0.0.1 255.255.255.0int l1ip add 200.0.0.1 255.- list 10 permit 192.168.10.0 255.- list 10 permit 192.168.30.0 0.0.0.255access-lsit 20 permit 192.168.20.0 mask- list 20 permit 192.168.40.0 0.0.255route-map ruijie permit 10 match ip address 10 set interface l0match ip address 20 set interface l1exitint f1/0ip policy route-m Ap ruijieint f1/1ip policy route-map ruijieexit (3) R2 configure nat translation access-list 99 permit 192.168.0.0 nat pool mudi 200.1.1.2 200.1.1.6 netmask limit 255.255.0ip nat inside source list 99 pool mudi overloadint f1/0ip nat insideint f1/1ip nat insideint s1/0ip nat outsideint l0ip nat outsideint l1ip nat outsideexit (acl Configuration S1 \ S2: access-list 101 permit ip 192.168.10.0 0.0.255 192.168.20.0 0.0.255 Access-list 101 permit ip 192.168.10.0 0.0.255 192.168.30.0 0.0.255access-list 101 permit ip 192.168.10.0 0.0.0.255 192.168.40.0 0.0.0.255time-range worktimeperiodic weekdays to 16: 00access-list 101 permit tcp 192.168.20.0 0.0.255 host 192.168.10.101 eq ftp time-range worktimeaccess-list 101 permit tcp 192.168.30.0 0.0.0.255 host 192.168.10.101 eq ftp time-range worktimeaccess-list 101 Permit tcp 192.168.40.0 0.0.0.255 host 192.168.10.101 eq ftp time-range worktimeaccess-list 101 deny tcp any host 192.168.10.101 eq ftpaccess-list 101 permit ip any anyint vlan 10ip access-group 101 inint vlan 20ip access- group 101 inint vlan 30ip access-group 101 inint vlan 40ip access-group 101 inexitR2: time-range worktimeperiodic weekdays 08:00 to 16: 00exitaccess-list 50 deny 192.168.0.0 0.0.2 55.255 time-range worktimeaccess-list 50 deny 172.16.0.0 0.0.255.255 time-range worktimeaccess-list 10 permit anyint f1/0ip access-group 50 inint f1/1ip access-group 50 inexitOK !!!

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.