R1<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#no ip domain loo
R1(config)#line console 0
R1(config-line)#exec-tim 0 0
R1(config-line)#logg syn
R1(config-line)#exit
R1(config)#inter s1/1
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no sh
00:02:24: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
00:02:25: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R1(config-if)#exit
R1(config)#inter s1/2
R1(config-if)#ip add 1.1.6.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#
00:02:56: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
R1(config)#
00:02:57: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up
R1(config)#inter fa0/0
R1(config-if)#ip add 1.1.3.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#
00:03:42: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
00:03:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config)#

 

 

R2

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R2

R2(config)#no ip domain loo

R2(config)#line console 0

R2(config-line)#exec-time 0 0

R2(config-line)#logg syn

R2(config-line)#exit

R2(config)#inter s1/0

R2(config-if)#ip add 1.1.1.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#

00:08:46: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

R2(config-if)#

00:08:47: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R2(config-if)#exit

R2(config)#inter s1/1

R2(config-if)#ip add 1.1.2.1 255.255.255.0

R2(config-if)#no sh

R2(config-if)#exit

R2(config)#

00:09:24: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up

R2(config)#

00:09:25: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up

R2(config)#inter s1/2

R2(config-if)#ip add 1.1.5.1 255.255.255.0

R2(config-if)#no sh

R2(config-if)#exit

R2(config)#i

00:10:00: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up

R2(config)#ip

00:10:01: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up

R2(config)#inter fa0/0

R2(config-if)#ip add 1.1.3.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#

00:10:42: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

00:10:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exit

R2(config)#

 

R3

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R3

R3(config)#no ip domain loo

R3(config)#line console 0

R3(config-line)#exec-time 0 0

R3(config-line)#logg syn

R3(config-line)#exit

R3(config)#inter s1/0

R3(config-if)#ip add 1.1.2.2 255.255.255.0

R3(config-if)#no sh

R3(config-if)#exit

00:13:49: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

00:13:50: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

R3(config)#inter s1/2

R3(config-if)#ip address 1.1.4.1 255.255.255.0

R3(config-if)#no sh

00:17:54: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up

00:17:55: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up

R3(config-if)#exit

R3(config)#interface fa0/0

R3(config-if)#ip address 1.1.3.3 255.255.255.0

R3(config-if)#no sh

R3(config-if)#exit

R3(config)#

00:18:37: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

00:18:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config)#

 

R4

Router>en

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R4

R4(config)#no ip domain loo

R4(config)#line consol 0

R4(config-line)#exec-time 0 0

R4(config-line)#logg syn

R4(config-line)#inter

R4(config-line)#exit         

R4(config)#interface s1/1

R4(config-if)#ip addre

R4(config-if)#ip address 1.1.6.2 255.255.255.0

R4(config-if)#no sh

R4(config-if)#exit

00:30:22: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up

00:30:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up

R4(config)#inter s1/2

R4(config-if)#ip addre 1.1.4.2 255.255.255.0

R4(config-if)#no sh

R4(config-if)#exit

00:30:48: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up

00:30:49: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up

R4(config)#inter s1/2

R4(config-if)#ip address 1.1.5.2 255.255.255.0

R4(config-if)#no sh

R4(config-if)#exit

R4(config)#inter s1/3

R4(config-if)#ip add

R4(config-if)#ip address 1.1.4.2 255.255.255.0

R4(config-if)#no sh

R4(config-if)#exit

R4(config)#

00:32:22: %LINK-3-UPDOWN: Interface Serial1/3, changed state to up

R4(config)#

00:32:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/3, changed state to up

R4(config)#inter fa0/0

R4(config-if)#ip address 1.1.3.4 255.255.255.0

R4(config-if)#no sh

R4(config-if)#exit

R4(config)#

00:33:01: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

00:33:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R4(config)#

 

 

 

 在每个Router上添加RIP

RX(config)#router rip

RX(config-router)#network 1.0.0.0

RX(config-router)#exit

RX(config)#end

 

 最后用PING来测试网络连通性

R4#ping 1.1.1.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/24/56 ms

R4#ping 1.1.1.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 28/33/40 ms

R4#ping 1.1.2.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/24 ms

R4#ping 1.1.2.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/59/72 ms

R4#ping 1.1.3.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/24/52 ms

R4#ping 1.1.3.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/20 ms

R4#ping 1.1.4.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/11/20 ms

R4#ping 1.1.4.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/48/64 ms

R4#ping 1.1.5.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/14/20 ms

R4#ping 1.1.5.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 28/56/96 ms

R4#ping 1.1.6.1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/20 ms

R4#ping 1.1.6.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/72 ms

R4#ping 1.1.3.2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/15/24 ms

R4#ping 1.1.3.3

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/32 ms

R4#ping 1.1.3.4

 

Type escape sequence to abort.

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

!!!!!

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

R4#