ACL,NAT实验

要求:Pc1可以trlnetR1,但是不能pingR1

PC1可以pingR2,但是不能trlnetR2Pc2所有要求与Pc1相反

<R1>system-view 

<R2>system-view....配静态 。。。之后:

[R1]

[R1-aaa]local-user WYK privilege level 15 password cipher 123

[R1-aaa]local-user WYK service-type telnet

[R1]user-interface vty 0 4

[R1-ui-vty0-4]authentication-mode aaa

[R1]q

[R1]acl 3000

[R1-acl-adv-3000]rule deny ip source 192.168.1.3 0.0.0.0 destination 192.168.1.1 0.0.0.0

[R1-acl-adv-3000]rule deny icmp source 192.168.1.3 0.0.0.0 destination 192.168.2.2 0.0.0.0

[R2]

[R2-aaa]local-user WYK2 privilege level 15 password cipher 123

[R2-aaa]local-user WYK2 service-type telnet

[R2]user-interface vty 0 4

[R2-ui-vty0-4]authentication-mode aaa

[R2]q

[R2]acl 3000

[R2-acl-adv-3000]rule deny ip source 192.168.1.4 0.0.0.0 destination 192.168.2.2 0.0.0.0

[R2-acl-adv-3000]rule deny icmp source 192.168.1.4 0.0.0.0 destination 192.168.1.1 0.0.0.0

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-11 19:12:01       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-11 19:12:01       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-11 19:12:01       57 阅读
  4. Python语言-面向对象

    2024-07-11 19:12:01       68 阅读

热门阅读

  1. 2024.7.10 刷题总结

    2024-07-11 19:12:01       26 阅读
  2. 什么是逻辑运算中的短路效应?

    2024-07-11 19:12:01       22 阅读
  3. 开发指南043-自定义注解

    2024-07-11 19:12:01       24 阅读
  4. C语言 比较两个字符串

    2024-07-11 19:12:01       20 阅读
  5. Andt Desgin Vue Pro 项目添加前缀访问解决

    2024-07-11 19:12:01       17 阅读
  6. MDA协议

    2024-07-11 19:12:01       23 阅读
  7. Spring Boot中集成DJL运行Python PyTorch模型:MNIST实战

    2024-07-11 19:12:01       18 阅读
  8. GraphSAGE项目练手

    2024-07-11 19:12:01       22 阅读
  9. el-dialog弹框里面的组件第二次打开create不生效

    2024-07-11 19:12:01       19 阅读