
一、案例目的:

1.配置静态路由172.16.1.1 ping 192.168.1.1 R1 telnet R4

2.实现静态路由多路经负载均衡

3.实现静态路由热备份

二、案例拓扑图:


三、案例配置

R1 配置

Route>enable

Route#configure teminal

Route(config)#hostname R1

R1(config)#
interface serial 0/0

R1(config)#clock rate 64000

R1(config)#ip address 1.1.1.1 255.255.255.0

R1(config)#no shutdown

R1(config)#loopback 0

R1(config)#ip address 172.16.1.1 255.255.255.0

R1(config)#no shutdown

R1(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2


R2 配置

Route>enable

Route#configure teminal

Route(config)#hostname R2

R2(config)#
interface serial 0/0

R2(config)#clock rate 64000

R2(config)#ip address 2.1.1.1 255.255.255.0

R2(config)#no shutdown

R2(config)#
interface serial 0/1

R2(config)#ip address 1.1.1.2 255.255.255.0

R2(config)#no shutdown

R2(config)#
interface ethernet 0/0

R2(config)#ip address 4.1.1.1 255.255.255.0

R2(config)#no shutdown

R2(config)#ip route 192.168.1.0 255.255.255.0 2.1.1.2

R2(config)#ip route 192.168.1.0 255.255.255.0 4.1.1.2

R2(config)#ip route 3.1.1.0 255.255.255.0 2.1.1.2

R2(config)#ip route 3.1.1.0 255.255.255.0 4.1.1.2

R2(config)#ip route 172.16.1.0 255.255.255.0 1.1.1.1

R2(config)#ip route 3.1.1.0 255.255.255.0 2.1.1.2 10

R3(config)#ip route 192.168.1.0 255.255.255.0 2.1.1.2 10



R3配置

Route>enable

R3(config)#
interface serial 0/0

R3(config)#clock rate 64000

R3(config)#ip address 3.1.1.1 255.255.255.0

R3(config)#no shutdown

R3(config)#
interface serial 0/1

R3(config)#ip address 2.1.1.2 255.255.255.0

R3(config)#no shutdown

R3(config)#
interface ethernet 0/0

R3(config)#ip address 4.1.1.2 255.255.255.0

R3(config)#no shutdown

R3(config)#ip route 192.168.1.0 255.255.255.0 3.1.1.2

R3(config)#ip route 1.1.1.0 255.255.255.0 2.1.1.1

R3(config)#ip route 1.1.1.0 255.255.255.0 4.1.1.1

R3(config)#ip route 172.16.1.0 255.255.255.0 2.1.1.1

R3(config)#ip route 172.16.1.0 255.255.255.0 4.1.1.1


R3(config)#ip route 1.1.1.0 255.255.255.0 2.1.1.1 10

R3(config)#ip route 172.16.1.0 255.255.255.0 2.1.1.1 10



R4 配置

Route>enable

Route#configure teminal

Route(config)#hostname R4

R4(config)#
interface serial 0/1

R4(config)#ip address 3.1.1.2 255.255.255.0

R4(config)#no shutdown

R4(config)#loopback 0

R4(config)#ip address 192.168.1.1 255.255.255.0

R4(config)#no shutdown

R4(config)#ip route 0.0.0.0 0.0.0.0 3.1.1.1



R3#debug ip packet

R3#undebug ip packet

R2#debug ip packet

R2#undebug ip packet
