可以从一定程度上降低故障率和提高网络稳定性。BOW:?vrrp是什么呢?哪里有它的资料可以查阅?
Virtual Router Redundancy Protocol虚拟路由冗余协议RouterOS就支持 QUOTE (bow @ Jan 14 2005, 10:06 PM)
QUOTE (jack_i5 @ Jan 14 2005, 07:37 PM)
可以从一定程度上降低故障率和提高网络稳定性。BOW:?vrrp是什么呢?哪里有它的资料可以查阅?
Virtual Router Redundancy Protocol虚拟路由冗余协议RouterOS就支持
应该怎么做呢?谈谈你的经验~! Configuring Master VRRP routerFirst of all we should create a VRRP instance on this router. We will use the priority of 255 for thisrouter as it should be preferred router. ip vrrp> add interface=local priority=255 ip vrrp> printFlags: X - disabled, I - invalid, M - master, B - backup0 M name="vr1" interface=local vrid=1 priority=255 interval=1preemption-mode=yes authentication=none password="" on-backup=""on-master="" ip vrrp>Next the virtual IP address should be added to this VRRP instance ip vrrp> address add address=192.168.1.1/24 \\... virtual-router=vr1 ip vrrp> address printFlags: X - disabled, A - active# ADDRESS NETWORK BROADCAST VIRTUAL-ROUTER0 192.168.1.1/24 192.168.1.0 192.168.1.255 vr1 ip vrrp>Now this address should appear in /ip address list: ip address> printFlags: X - disabled, I - invalid, D - dynamic# ADDRESS NETWORK BROADCAST INTERFACE0 10.0.0.1/24 10.0.0.0 10.0.0.255 public1 192.168.1.2/24 192.168.1.0 192.168.1.255 local2 D 192.168.1.1/24 192.168.1.0 192.168.1.255 local ip address>Configuring Backup VRRP routerNow we will create VRRP instance with lower priority (we can use the default value of 100), so thisrouter will back up the preferred one: ip vrrp> add interface=local ip vrrp> printFlags: X - disabled, I - invalid, M - master, B - backup0 B name="vr1" interface=local vrid=1 priority=100 interval=1preemption-mode=yes authentication=none password="" on-backup=""on-master="" ip vrrp>Now we should add the same virtual address as was added to the master node:Page 283 of 564 ip vrrp> address add address=192.168.1.1/24 \\... virtual-router=vr1 ip vrrp> address printFlags: X - disabled, A - active# ADDRESS NETWORK BROADCAST VIRTUAL-ROUTER0 192.168.1.1/24 192.168.1.0 192.168.1.255 vr1 ip vrrp>Note that this address will not appear in /ip address list: ip address> printFlags: X - disabled, I - invalid, D - dynamic# ADDRESS NETWORK BROADCAST INTERFACE0 10.1.0.1/24 10.0.0.0 10.0.0.255 public1 192.168.1.3/24 192.168.1.0 192.168.1.255 local ip address>Testing fail overNow, when we will disconnect the master router, the backup one will switch to the master state: ip vrrp> printFlags: X - disabled, I - invalid, M - master, B - backup0 M name="vr1" interface=local vrid=1 priority=100 interval=1preemption-mode=yes authentication=none password="" on-backup=""on-master="" ip vrrp> /ip address printFlags: X - disabled, I - invalid, D - dynamic# ADDRESS NETWORK BROADCAST INTERFACE0 10.1.0.1/24 10.0.0.0 10.0.0.255 public1 192.168.1.3/24 192.168.1.0 192.168.1.255 local2 D 192.168.1.1/24 192.168.1.0 192.168.1.255 local ip vrrp> 可以让两台机器互为热备,会更完美vrrp比cisco的hsrp真是好多了 mikrotik的举例中是双线路备份的例子,好像不是双机备份的例子。 是双机热备 准确地说,应该是双线双机热备。一个外网是10.0.0.1,另一个外网是10.1.0.1。问题是能否单外网双机热备?希望有高手来解答!!! QUOTE (nihaoya @ Jan 17 2005, 05:47 PM)
准确地说,应该是双线双机热备。一个外网是10.0.0.1,另一个外网是10.1.0.1。问题是能否单外网双机热备?希望有高手来解答!!!
当然可以啊两个路由器虚拟出一个网关给用户使用,一个做master,一个做slave,master断了slave就会接替,但虚拟网关不变也就是说用户几乎不受影响 这个到是不错
页:
[1]