vrrp vrid 1 virtual-ip 12.1.1.1 AR2在vrrp组1中做备用,只用配置组1的ip就可以了
vrrp vrid 2 virtual-ip 12.1.1.2 与AR1上配置大致相同,只是AR2在组2中配置为主,使用真实接口ip,默认优先级变为255
vrrp vrid 2 priority 101 使用真实接口ip,默认优先级变为255,可以不用配置vrrp vrid 2 priority 101
vrrp vrid 2 preempt-mode timer delay 2 配置AR1在组1中允许抢占,时间为延迟2s
ospf enable 1 area 0.0.0.0
#
PC1上的配置
PC1>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe78:2427
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 12.1.1.100
Subnet mask.......................: 255.255.255.0
Gateway...........................: 12.1.1.1
Physical address..................: 54-89-98-78-24-27
DNS server........................:
PC1>
PC2上的配置
PC2>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe78:2427
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 12.1.1.200
Subnet mask.......................: 255.255.255.0
Gateway...........................: 12.1.1.2
Physical address..................: 54-89-98-78-24-27
DNS server........................:
PC2>
PC1>tracert 100.1.1.1
在PC1、2分别使用tracert查看流量是否负载分担
traceroute to 100.1.1.1, 8 hops max
(ICMP), press Ctrl+C to stop
1 12.1.1.1 31 ms 47 ms 47 ms
2 100.1.1.1 31 ms 47 ms 62 ms
PC1>
PC2>tracert 100.1.1.1
traceroute to 100.1.1.1, 8 hops max
(ICMP), press Ctrl+C to stop
1 12.1.1.2 47 ms 46 ms 47 ms
2 100.1.1.1 63 ms 31 ms 47 ms
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-59729-4.html
只能说你自己缺脑子
想不听老美的话有点难