SmartSwitch Router User Reference Manual
101
Chapter 7: VRRP Configuration Guide
Configuration of Router R1
The following is the configuration file for Router R1 in
Figure 6
.
Router R1’s IP address on interface test is 10.0.0.1. There are three virtual routers on this
interface:
•
VRID=1
– IP address=10.0.0.1/16
•
VRID=2
– IP address=10.0.0.2/16
•
VRID=3
– IP address=10.0.0.3/16
Since the IP address of virtual router
VRID=1
is the same as the interface’s IP address
(10.0.0.1), then the router automatically becomes the address owner of virtual router
VRID=1
.
A priority is associated with each of the virtual routers. The priority determines whether
the router will become the Master or the Backup for a particular virtual router. Priorities
can have values between 1 and 255. When a Master router goes down, the router with the
next-highest priority takes over the virtual router. If more than one router has the next-
highest priority, the router that has the highest-numbered interface IP address becomes
the Master.
If a router is the address owner for a virtual router, then its priority for that virtual router
is 255 and cannot be changed. If a router is
not
the address-owner for a virtual-router, then
its priority for that virtual router is 100 by default, and can be changed by the user.
Since Router R1 is the owner of the IP address associated with virtual router
VRID=1
, it has
a priority of 255 (the highest) for virtual router
VRID=1
. Lines 8 and 9 set Router R1’s
priority for virtual routers
VRID=2
and
VRID=3
at 200. If no other routers in the VRRP
configuration have a higher priority, Router R1 will take over as Master for virtual routers
VRID=2
and
VRID=3
, should Router R2 or R3 go down.
1: interface create ip test address-netmask 10.0.0.1/16 port et.1.1
!
2: ip-redundancy create vrrp 1 interface test
3: ip-redundancy create vrrp 2 interface test
4: ip-redundancy create vrrp 3 interface test
!
5: ip-redundancy associate vrrp 1 interface test address 10.0.0.1/16
6: ip-redundancy associate vrrp 2 interface test address 10.0.0.2/16
7: ip-redundancy associate vrrp 3 interface test address 10.0.0.3/16
!
8: ip-redundancy set vrrp 2 interface test priority 200
9: ip-redundancy set vrrp 3 interface test priority 200
!
10: ip-redundancy start vrrp 1 interface test
11: ip-redundancy start vrrp 2 interface test
12: ip-redundancy start vrrp 3 interface test
Содержание SmartSwitch Router
Страница 1: ...SmartSwitch Router User Reference Manual 9032578 04...
Страница 12: ...Notice 12 SmartSwitch Router User Reference Manual...
Страница 28: ...Preface 28 SmartSwitch Router User Reference Manual...
Страница 68: ...Chapter 3 Bridging Configuration Guide 68 SmartSwitch Router User Reference Manual...
Страница 74: ...Chapter 4 SmartTRUNK Configuration Guide 74 SmartSwitch Router User Reference Manual...
Страница 84: ...Chapter 5 DHCP Configuration Guide 84 SmartSwitch Router User Reference Manual...
Страница 108: ...Chapter 7 VRRP Configuration Guide 108 SmartSwitch Router User Reference Manual...
Страница 207: ...SmartSwitch Router User Reference Manual 207 Chapter 12 Multicast Routing Configuration Guide...
Страница 208: ...Chapter 12 Multicast Routing Configuration Guide 208 SmartSwitch Router User Reference Manual...
Страница 222: ...Chapter 13 IP Policy Based Forwarding Configuration Guide 222 SmartSwitch Router User Reference Manual...
Страница 232: ...Chapter 14 Network Address Translation Configuration Guide 232 SmartSwitch Router User Reference Manual...
Страница 254: ...Chapter 16 IPX Routing Configuration Guide 254 SmartSwitch Router User Reference Manual...
Страница 270: ...Chapter 17 Access Control List Configuration Guide 270 SmartSwitch Router User Reference Manual...
Страница 282: ...Chapter 18 Security Configuration Guide 282 SmartSwitch Router User Reference Manual...
Страница 294: ...Chapter 19 QoS Configuration Guide 294 SmartSwitch Router User Reference Manual...
Страница 298: ...Chapter 20 Performance Monitoring Guide 298 SmartSwitch Router User Reference Manual...
Страница 338: ...Chapter 22 WAN Configuration Guide 338 SmartSwitch Router User Reference Manual...