中超

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

2019-12-04 18:42:25来源:励志吧0次阅读

静态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>

分享到: