现有三台路由器,环形相连,配置如下:
R1:
interface Ethernet0/0/0
ip address 192.168.12.1 255.255.255.0
#
interface Ethernet0/0/1
ip address 192.168.13.1 255.255.255.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
rip 1
network 1.0.0.0
network 192.168.12.0
network 192.168.13.0
R2
interface Ethernet0/0/0
ip address 192.168.12.2 255.255.255.0
#
interface Ethernet0/0/1
ip address 192.168.23.2 255.255.255.0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
rip 1
network 2.0.0.0
network 192.168.12.0
network 192.168.23.0
maximum load-balancing 1
#
R3
interface Ethernet0/0/0
ip address 192.168.13.3 255.255.255.0
#
interface Ethernet0/0/1
ip address 192.168.23.3 255.255.255.0
NULL0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
rip 1
network 3.0.0.0
network 192.168.23.0
network 192.168.13.0
maximum load-balancing 1
问:这几台路由器,到其他两台路由器之间的网段,有的是无法实现负载均衡的?是那几台?为啥米?
这个适合自己用模拟器搭一下。记住 maximum load-balancing 《1-6 》的作用,即控制本路由器或L3SW上的负载均衡路由条目的条数。模拟证明,减少条目的话,会优选IP地址小的,这个我还没到真机或RFC上验证,先留着。