Lo0(1.1.1.1/32)--------R2 (23.23.23.1/24)S0/2/2------R3 (23.23.23.2/24)S0/2/0
R3(e0/1/0) (172.16.180.87/24)------pc (172.16.180.187/24)
--------------------------------------------------------------------------------------------
H3C>
%Dec 11 19:46:27:344 2010 H3C SHELL/4/LOGIN: Console login from con0
<H3C>
<H3C>sys
sys
System View: return to User View with Ctrl+Z.
[H3C]
[H3C]sy R2
sy R2
[R2]
[R2]int s0/2/0
int s0/2/0
[R2-Serial0/2/0]
[R2-Serial0/2/0]ip add 23.23.23.1 24
ip add 23.23.23.1 24
[R2-Serial0/2/0]
[R2-Serial0/2/0]undo shutdown
undo shutdown
Interface Serial0/2/0 is not shut down
[R2-Serial0/2/0]
[R2-Serial0/2/0]int lo0
int lo0
[R2-LoopBack0]
[R2-LoopBack0]ip add 1.1.1.1 32
ip add 1.1.1.1 32
[R2-LoopBack0]
[R2-LoopBack0]undo shutdown
undo shutdown
Interface LoopBack0 is not shut down
[R2-LoopBack0]
[R2-LoopBack0]rip 1
rip 1
[R2-rip-1]
[R2-rip-1]v 2
v 2
[R2-rip-1]
[R2-rip-1]un sum
un sum
[R2-rip-1]
[R2-rip-1]net 0.0.0.0
net 0.0.0.0
[R2-rip-1]
[R2-rip-1]dis ip ro
dis ip ro
Routing Tables: Public
Destinations : 3 Routes : 3
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
[R2-rip-1]
[R2-rip-1]q
q
[R2]
[R2]dis ip int brief
dis ip int brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address
Ethernet0/1/0 up down unassigned
LoopBack0 up up(s) 1.1.1.1
Serial0/2/0 down down 23.23.23.1
Serial0/2/1 down down unassigned
Serial0/2/2 up up unassigned
[R2]
[R2]int s0/2/0
int s0/2/0
[R2-Serial0/2/0]
[R2-Serial0/2/0]undo shutdown
undo shutdown
Interface Serial0/2/0 is not shut down
[R2-Serial0/2/0]
[R2-Serial0/2/0]dis ip int brief
dis ip int brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address
Ethernet0/1/0 up down unassigned
LoopBack0 up up(s) 1.1.1.1
Serial0/2/0 down down 23.23.23.1
Serial0/2/1 down down unassigned
Serial0/2/2 up up unassigned
[R2-Serial0/2/0]
[R2-Serial0/2/0]ping 1.1.1.1
ping 1.1.1.1
PING 1.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=26 ms
Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=32 ms
Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=63 ms
Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/24/63 ms
[R2-Serial0/2/0]ping 23.23.23.1
ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 23.23.23.1 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[R2-Serial0/2/0]ip add 23.23.23.1 24
ip add 23.23.23.1 24
% Warning: Address already exists!
[R2-Serial0/2/0]
[R2-Serial0/2/0]ping 23.23.23.1
ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 23.23.23.1 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[R2-Serial0/2/0]shutdown
shutdown
[R2-Serial0/2/0]
[R2-Serial0/2/0]int s0/2/2
int s0/2/2
[R2-Serial0/2/2]
[R2-Serial0/2/2]ip add 23.23.23.1 24
ip add 23.23.23.1 24
% Error: The IP address you entered overlaps with another interface!
[R2-Serial0/2/2]
[R2-Serial0/2/2]int s0/2/0
int s0/2/0
[R2-Serial0/2/0]
[R2-Serial0/2/0]no ip add 23.23.23.1 24
no ip add 23.23.23.1 24
^
% Unrecognized command found at '^' position.
[R2-Serial0/2/0]
[R2-Serial0/2/0]undo ip add 23.23.23.1 24
undo ip add 23.23.23.1 24
[R2-Serial0/2/0]
[R2-Serial0/2/0]dis ip int brief
dis ip int brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address
Ethernet0/1/0 up down unassigned
LoopBack0 up up(s) 1.1.1.1
Serial0/2/0 *down down unassigned
Serial0/2/1 down down unassigned
Serial0/2/2 up up unassigned
[R2-Serial0/2/0]
[R2-Serial0/2/0]int s0/2/2
int s0/2/2
[R2-Serial0/2/2]
[R2-Serial0/2/2]ip add 23.23.23.1 24
ip add 23.23.23.1 24
[R2-Serial0/2/2]
[R2-Serial0/2/2]
%Dec 11 19:55:13:375 2010 R2 IFNET/4/UPDOWN:
Protocol PPP IPCP on the interface Serial0/2/2 is UP
[R2-Serial0/2/2]
[R2-Serial0/2/2]ping 23.23.23.2
ping 23.23.23.2
PING 23.23.23.2: 56 data bytes, press CTRL_C to break
Reply from 23.23.23.2: bytes=56 Sequence=1 ttl=255 time=109 ms
Reply from 23.23.23.2: bytes=56 Sequence=2 ttl=255 time=49 ms
Reply from 23.23.23.2: bytes=56 Sequence=3 ttl=255 time=16 ms
Reply from 23.23.23.2: bytes=56 Sequence=4 ttl=255 time=15 ms
Reply from 23.23.23.2: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 23.23.23.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/41/109 ms
[R2-Serial0/2/2]q
q
[R2]
[R2]ping 172.16.180.187
ping 172.16.180.187
PING 172.16.180.187: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 172.16.180.187 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[R2]ping 172.16.180.187
ping 172.16.180.187
PING 172.16.180.187: 56 data bytes, press CTRL_C to break
Reply from 172.16.180.187: bytes=56 Sequence=1 ttl=127 time=78 ms
Reply from 172.16.180.187: bytes=56 Sequence=1 ttl=127 time=443 ms (DUP!)
Reply from 172.16.180.187: bytes=56 Sequence=2 ttl=127 time=60 ms
Reply from 172.16.180.187: bytes=56 Sequence=2 ttl=127 time=280 ms (DUP!)
Reply from 172.16.180.187: bytes=56 Sequence=3 ttl=127 time=80 ms
Reply from 172.16.180.187: bytes=56 Sequence=3 ttl=127 time=311 ms (DUP!)
Reply from 172.16.180.187: bytes=56 Sequence=4 ttl=127 time=44 ms
Reply from 172.16.180.187: bytes=56 Sequence=4 ttl=127 time=280 ms (DUP!)
Reply from 172.16.180.187: bytes=56 Sequence=5 ttl=127 time=65 ms
--- 172.16.180.187 ping statistics ---
5 packet(s) transmitted
9 packet(s) received
4 duplicates
0.00% packet loss
round-trip min/avg/max = 44/126/443 ms
----------------------------------------------------------------------
<H3C>
%Dec 11 19:48:06:687 2010 H3C SHELL/4/LOGIN: Console login from con0
<H3C>
<H3C>sy
sy
System View: return to User View with Ctrl+Z.
[H3C]
[H3C]sy R3
sy R3
[R3]
[R3]
[R3]
[R3]int s0/2/0
int s0/2/0
[R3-Serial0/2/0]
[R3-Serial0/2/0]ip add 23.23.23.2 24
ip add 23.23.23.2 24
[R3-Serial0/2/0]
[R3-Serial0/2/0]undo shutdown
undo shutdown
Interface Serial0/2/0 is not shut down
[R3-Serial0/2/0]
[R3-Serial0/2/0]int e0/1/0
int e0/1/0
[R3-Ethernet0/1/0]
[R3-Ethernet0/1/0]ip add 172.16.180.87 24
ip add 172.16.180.87 24
[R3-Ethernet0/1/0]
[R3-Ethernet0/1/0]
%Dec 11 19:48:57:297 2010 R3 IFNET/4/UPDOWN:
Line protocol on the interface Ethernet0/1/0 is UP
[R3-Ethernet0/1/0]
[R3-Ethernet0/1/0]undo shutdown
undo shutdown
Interface Ethernet0/1/0 is not shut down
[R3-Ethernet0/1/0]
[R3-Ethernet0/1/0]q
q
[R3]
[R3]rip 1
rip 1
[R3-rip-1]
[R3-rip-1]v 2
v 2
[R3-rip-1]
[R3-rip-1]un sum
un sum
[R3-rip-1]
[R3-rip-1]net 0.0.0.0
net 0.0.0.0
[R3-rip-1]
[R3-rip-1]q
q
[R3]
[R3]ping 23.23.23.1
ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 23.23.23.1 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[R3]dis ip ro
dis ip ro
Routing Tables: Public
Destinations : 4 Routes : 4
Destination/Mask Proto Pre Cost NextHop Interface
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.180.0/24 Direct 0 0 172.16.180.87 Eth0/1/0
172.16.180.87/32 Direct 0 0 127.0.0.1 InLoop0
[R3]
[R3]ping 23.23.23.1
ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out^Z
Request time out
Request time out
Request time out
--- 23.23.23.1 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[R3]
[R3]
[R3]dis ip int brief
dis ip int brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address
Ethernet0/1/0 up up 172.16.180.87
Serial0/2/0 up up 23.23.23.2
Serial0/2/1 down down unassigned
Serial0/2/2 down down unassigned
[R3]
[R3]
%Dec 11 19:55:13:469 2010 R3 IFNET/4/UPDOWN:
Protocol PPP IPCP on the interface Serial0/2/0 is UP
[R3]
[R3]ping 23.23.23.1
ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Reply from 23.23.23.1: bytes=56 Sequence=1 ttl=255 time=143 ms
Reply from 23.23.23.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 23.23.23.1: bytes=56 Sequence=3 ttl=255 time=35 ms
Reply from 23.23.23.1: bytes=56 Sequence=4 ttl=255 time=15 ms
Reply from 23.23.23.1: bytes=56 Sequence=5 ttl=255 time=90 ms
--- 23.23.23.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/62/143 ms
[R3]
------------------------------------------------------
c:\route add 0.0.0.0 mask 0.0.0.0 172.16.180.187(默任路由)
C:\>route print
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 0c 29 30 39 63 ...... AMD PCNET Family PCI Ethernet Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.180.87 172.16.180.187 1
0.0.0.0 0.0.0.0 172.16.180.254 172.16.180.187 30
测示
C:\>ping 23.23.23.1
Pinging 23.23.23.1 with 32 bytes of data:
Reply from 23.23.23.1: bytes=32 time=33ms TTL=254
Reply from 23.23.23.1: bytes=32 time=12ms TTL=254
Reply from 23.23.23.1: bytes=32 time=11ms TTL=254
Reply from 23.23.23.1: bytes=32 time=11ms TTL=254
Ping statistics for 23.23.23.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 11ms, Maximum = 33ms, Average = 16ms