Show ip int e0/0 可以查看接口ip特性
Proxy ARP is enabled 代理arp功能,可以实现pc自动需要网关的应答。
gateway(config-if)#no ip proxy-arp
Router(config)#host r1
r1(config)#no ip domain-loo
r1(config)#line con 0
r1(config-line)#exec-time 0 0
r1(config-line)#loggin sy
r1(config-line)#exit
r1(config)#int f0/0
r1(config-if)#no shut
r1(config-if)#
r1(config-if)#int f0/1
r1(config-if)#no shut
r1(config-if)#do ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:
.!!!!
ess rate is 80 percent (4/5), round-trip min/avg/max = 30/37/40 ms
r1(config-if)#do ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:
.!!!!
ess rate is 80 percent (4/5), round-trip min/avg/max = 40/40/40 ms
r1(config-if)#do show arp
Protocol Address Age (min) Hardware Addr Type Interface
0 ARPA 0/0
- ARPA 0/0
0 ARPA 0/1
- ARPA 0/1
此时两边的pc是可以ping通,r1通过路由表进行转发。
r1(config)#do 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
ccna第五天 来自淘豆网m.daumloan.com转载请标明出处.