科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道应用软件静态nat与标准acl 的混合使用5

静态nat与标准acl 的混合使用5

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

静态nat与标准acl 的混合使用

作者:ddvip 来源:ddvip 2009年12月31日

关键字: 思科 路由器

  • 评论
  • 分享微博
  • 分享邮件

静态nat与标准acl 的混合使用5

 

Router(config-if)#

   Router(config-if)#exit

   Router(config)#router rip

   Router(config-router)#net

   Router(config-router)#network 2.0.0.0

   Router(config-router)#network 3.0.0.0

   Router(config-router)#end

   %SYS-5-CONFIG_I: Configured from console by console

   Router#show ip rou

   Router#show ip route

   Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

   D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

   N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

   E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

   i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

   * - candidate default, U - per-user static route, o - ODR

   P - periodic downloaded static route

   Gateway of last resort is not set

   R    1.0.0.0/8 [120/1] via 2.2.2.1, 00:00:24, FastEthernet0/1

   C    2.0.0.0/8 is directly connected, FastEthernet0/1

   C    3.0.0.0/8 is directly connected, FastEthernet0/0

   R    4.0.0.0/8 [120/1] via 2.2.2.1, 00:00:24, FastEthernet0/1

   Router#ping 4.4.4.2

   Type escape sequence to abort.

   Sending 5, 100-byte ICMP Echos to 4.4.4.2, timeout is 2 seconds:

   !!!!!

   Success rate is 100 percent (5/5), round-trip min/avg/max = 81/91/94 ms

   Router#ping 4.4.4.3

   Type escape sequence to abort.

   Sending 5, 100-byte ICMP Echos to 4.4.4.3, timeout is 2 seconds:

   !!!!!

   Success rate is 100 percent (5/5), round-trip min/avg/max = 63/84/94 ms

   Router#

   在pc1 上的测试:

   Packet Tracer PC Command Line 1.0

   PC>ping 3.3.3.2

   Pinging 3.3.3.2 with 32 bytes of data:

   Request timed out.

   Request timed out.

   Request timed out.

   Request timed out.

   Ping statistics for 3.3.3.2:

   Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

   PC>ping 1.1.1.1

   Pinging 1.1.1.1 with 32 bytes of data:

   Request timed out.

   Request timed out.

   Request timed out.

   Request timed out.

   Ping statistics for 1.1.1.1:

   Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

   PC>

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章