| 3. 0. 0 
r1/2

在交换机中将上端的两个接口加入到中继口

i nterface FastEthernet1/3 
swi tchport mode trunk 
duplex full 
speed 100 
i nterface FastEthernet1/4 
swi tchport mode trunk 
duplex full 
speed 100


在R1设备中配置IP地址

FastEthernet1/I 
VasttthernetI/2 
FastEthernetI/3 
1921i6%io 
23.0.0.1 
12.0.0.1 
.10 
ursc 
YES manual 
YES manual 
YES manual 
up 
up 
administratively down down

R2中配置IP地址

R? (config-i 
ip int 
Interface 
FastEthernetO/O 
FastEthernetO/1 
Lpgpbac4) 
rp-Address 
13.0.0.2 
12.0.0.2 
1.1.1.1 
0K? 
YES 
YES 
YES 
Method 
manual 
manual 
manual 
status 
up 
administratively dcywn 
up 
Protocol

R3中配置IP地址

sh 
ip int 
Interface 
i'astEthernetO/O 
vastEthernetO/1 
rastEthernet1/0 
vastEthernet1/1 
FastEthernet1/2 
FastErhernet1/3 
FastEthernet1/4 
FastEthernet1/5 
IP-Address 
unassigned 
unassigned 
unassi ned 
192.162.10 
unassi gned 
unassi gned 
13.0.0.1 
0K? Method 
YES unset 
YES unset 
YES manual 
YES manual 
YES unset 
YES unset 
YES manual 
status 
Pro tocol 
administratively down down 
administratively down down 
up

在R1路由器中配置静态路由

ip route 1.1.1.0 255.255.255.0 12.0.O.2 
ip route 1.1.1.0 255.255.255.0 23.0.0.2 10 
ip route 13.0.O.0 255.255.255.0 12.0.0.2 
ip route 13.0.O.0 255.255.255.0 23.0.O.2 10

在R2路由器中配置静态路由

tul I-dup lex 
ip route 192.168.10.0 255.255.255.0 12.0.0.1 
ip route 192.168.10.0 255.255.255.0 13.0.O.1 10

在R3路由器中配置静态路由

ip route 1.1.1.0 255.255.255.0 13.0.O.2 
ip route 12.0.O.0 255.255.255.0 13.0.0.2 
ip route 12.0.O.0 255.255.255.0 23.0.0.1 10


配置stand 的虚拟IP地址  优先级  抢占

interface FastEthernet1/1 
no swi tchport 
ip address 192.168.10.10 255.255.255.0 
duplex full 
speed 100 
standby 1 ip 192.168.10.1 
standby I priority 120 
standby 1 preempt


interface I-astEthernet1/1 
no swi tchport 
ip address 192.168.10.20 255.255.255.0 
duplex full 
speed 100 
standby I ip 192.168.10.1 
standby 1 priority 115 
standby I preempt

Pc中查看

13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
13.0.0.2 
ping 2 
i I tt I = 254 
i ertv_geqE2 ttIz254 
icrrp_seq23 tri 2254 
i ttIz254 
t z 254 
ping 130. O. 2 
i crrv_seqel tt12254 
i = 254 
*254 
=2S4 
i crtv_seqeS tu 2254 
trac 
=gg.ggo 
titre 
titre 
• =99.947 
taxe 
299.973 • 
=109.941 us 
-99.944 
-79.957 
-79.957 z 
tire- 
l. l. 1. l, hops press to Stop 
trace to 
192. 168. 10. 10 
lg.gg2re 29.988 re 
2 23. o. o. 2 
50. 000 59. 941 29. 990 ms 
*13. O. O. 2 99. 974 rus (ICLP type :3, code:3, Destination port ura•eachable)